UI Model Help with a Simple Data List Field
I'm trying to do a bit of UI Model work where I programatically populate a simple datalist field in a collection.
I've got it working for a search list field using this code:
But I am not sure how to get it to work for a Simple Data List field.
I suspect it's because the dropdown list needs to be loaded first but .. I'm just not sure how to do that.
I've got it working for a search list field using this code:
UNCOneQueryInstanceCriteriaEditFormGIVINGDESIGNATIONSUIModel newobj = this.GIVING_DESIGNATIONS.Value.AddNew();
newobj.VALUE.Value = (Guid)reader["ID"];
newobj.VALUE.UpdateDisplayText();
But I am not sure how to get it to work for a Simple Data List field.
I've tried a couple different iterations of that second line but to no avail... it's expecting a string... this last one passes in the value string the same way the simple data list returns the items appear in the label. I also tried passing in the ID (after converting it to a string) but that didn't work either.
UNCOneQueryInstanceCriteriaEditFormSPECIALCODESUIModel newobj = this.SPECIALCODES.Value.AddNew();
newobj.VALUE.Value = reader["SPECIALCODE"].ToString() + " - " + reader["DESCRIPTION"].ToString();
newobj.VALUE.UpdateDisplayText();
I suspect it's because the dropdown list needs to be loaded first but .. I'm just not sure how to do that.
0
Comments
-
I think you need to refresh the simple data list after updating your parameter value being passed in to trigger the dropdown list to refresh. Try:
simpleDataList.ResetDataSource();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®
- 357 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)
