Question
7
Replies
6901
Views
TCS
Posted: December 5, 2016
Last activity: March 22, 2017
Closed
Solved
Dynamic dropdown
We have a scenario in which two drop downs are there.
First dropdown is State (property name-State)
Second dropdown is City(property name-City). If I select one state I need to get corresponding Cities in that state. How to acheive this.
I tried to do this using report definition but I am not able to acheive this. Anyone please help me.
Here I am attaching the document.
Hi Vinod,
Here is a simple example. I have 2 pxDropDown controls. The first is showing a list of countries and the second a list of states / regions.
Here is the source configuration of the second drop down which is populated based on the selection in the first. I take the value from the first dropdown (actually the property is called .DropDown) and pass thjs as a parameter to the D_State data page that I am using as the source for this drop down.
The D_StateList data page has the selectedCountry parameter from above configured...
...which is in turn passed to the report defintion which is the source of my data page.
Parameter configured on report:
The report has a filter defined based on this parameter.
And the end result....
Please implement the above and let us know if face any issues.