Posted: 24 Dec 2016 12:44 EST Last activity: 25 Dec 2016 17:00 EST
Populate a drop down using data page as source
I need to populate a drop down using data page as source . I have sourced the data page with an activity , on running the data page I am getting the values in a Page list.How can I use these values in property(Control-Dropdown),source as data page?
The data page should be of type "List"( instead of type "page") and copy the values from Tempcntry.pxResults to Datapage directly No need to create another property AllCountryList. No need to change section configuration here.
another approach(Not Sure of this) is keeping data page,property as is and you have to make following changes to ur seciton
1.mention D_CountryData.AllCountryList in the pages classes tab of the section
2.And refer D_CountryData.AllCountryList as source of the dropdown.
Please try the above two approaches and let me know if you have any issues.
I tried the first approach but I am not able to copy values from Tempcntry.pxResults to page(D_CountryData).It's throwing error "Invalid expression or reference: The Left hand side of a Property-Set cannot be a constant value".So,I copied the values to D_CountryData.AllCountryList.Even though drop down values are not populating.
In the first approach have you changed data page to type " list "??
Then in the activity you have to use page copy from Tempcntry.pxResults to D_countrydata.pxResults.
Or property-set from Tempcntry.pxResults to D_countrydata.pxResults.