Passing parameters to listbuilder lookupinfo simpledatalist
I am trying to pass the page context into the simpledatalist lookupinfo for a field in a listbuilder. I am able to hardcode a guid as the Value, but when I try to pass the same value from the page context I get an error saying to select a valid record. I am using the following syntax:
<OutputField Name="CAMPAIGNPRIORITYSUBPRIORITY" Caption="Campaign priority - subpriority" DataType="String">
<LookupInfo>
<SimpleDataList SimpleDataListID="e3e9e22a-85f2-4a77-ba74-25b391252dab" >
<c:Params>
<c:Param ID="CAMPAIGNID">
<c:Value>3f5dc520-f5f7-4c0c-892d-0fae6b81ede7</c:Value>
</c:Param>
</c:Params>
</SimpleDataList>
</LookupInfo>
</OutputField>
Comments
-
You included a hard-coded example; could you include the page context example too?
You should be able to replace your hard-coded guid with either
Form!ContextID
or possibly one of these (I will update my answer if I find a working example, this is off the top of my head):
Page.Fields!CONTEXTRECORDID
Page.Fields!RECORDID
Page.Fields!ID0 -
The syntax that works in other places, eg. captions, is =Globals.CurrentRecordID, but it errors out in the simpledatalist parameter.
0 -
@Harry Frank I know this is an old thread, but did you ever figure this out? I'm trying to do something similar and I keep getting “Unable to load simple data list. Error converting data type nvarchar to uniqueidentifier.” Like you, if I hard code a GUID, it works fine. I've tried feeding it every variation on Form!ContextID to no avail.
<OutputField Name="REGISTRATIONOPTION" Caption="Registration option" DataType="String" >
<LookupInfo>
<SimpleDataList SimpleDataListID="1f496a58-7e9d-4dc8-a420-f1aaa26a643b" >
<c:Params>
<c:Param ID="EVENTID">
<c:Value>FORM!CONTEXTID</c:Value>
</c:Param>
</c:Params>
</SimpleDataList>
</LookupInfo>
</OutputField>0 -
@Mitchell Gibbs nope, never figured it out. Sorry I can't help more
0 -
@Harry Frank Thanks. I'm wondering if it's a bug or a listbuilder limitation. Using a parameterized Simple Data List as a lookup for a Form field seems to work fine, but in an Output Field of a listbuilder, it seems to always feed the literal value.
0
Categories
- All Categories
- 6 Blackbaud Community Help
- 206 bbcon®
- 1.4K Blackbaud Altru®
- 394 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 358 Blackbaud eTapestry®
- 2.5K Blackbaud Financial Edge NXT®
- 646 Blackbaud Grantmaking™
- 561 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 934 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.4K Blackbaud Raiser's Edge NXT®
- 3.6K SKY Developer
- 242 ResearchPoint™
- 118 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 238 The Tap (Just for Fun)
- 33 Blackbaud Community Challenges
- 28 PowerUp Challenges
- 3 (Open) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 778 Community News
- 2.9K Jobs Board
- 53 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)

