Discussion
2
Replies
5938
Views
Tech Mahindra
Posted: October 22, 2015
Last activity: October 22, 2015
Closed
Dynamic selection using dropdown control
Hello,
I understand that cascading dynamic select control has been deprecated in 7x version (replaced with pxDropdown). Can you please help me how to implement Dynamic selection using drop down control in 7x.
Typical implementation requirement, Country, it's corresponding "States" and the "Cities" available in the respective states.
Looking forward to your prompt response.
Thanks
Vinay
You can implement a dynamic selection using the new DropDown as well. One way could be to use a report definition that takes a parameter. So the first dropdown have a report "GetStatesFromCountry" that takes a country as paramter and saves the value into pxState. The second DropDown uses report GetCitysForState and takes Country and State as parameter and you pass pxCountry and pxState to it. The same things can de done with data pages as well. Depending on how you define your datapages you might even be able to do this without parameters.
It is pretty like the way itworked before.
With an AutoSelect you can do pretty cool stuff as well where the user can enter a state and get a list of cities or start typing the city and get all cities starting (or containing ) the letters he/she types.
Hope this helps