Page 1 of 2
drop down, select, scroll, select ability
Posted: Thu Jan 23, 2014 10:50 pm
by Nalini
Hello, how can I create a double drop down button. I have a form and I want users to select county but they have to select state first. So they select state, then that selection shows them list of counties in that state, then they select 1. Entry will go to appery db and is part of a larger form.
In my db, I have a collection of with variables state, county
drop down, select, scroll, select ability
Posted: Thu Jan 23, 2014 11:53 pm
by maxkatz
What's a double drop down? Are you referring to something like this: http://docs.appery.io/tutorials/build... ?
drop down, select, scroll, select ability
Posted: Fri Jan 24, 2014 1:34 am
by Nalini
drop down, select, scroll, select ability
Posted: Fri Jan 24, 2014 4:44 pm
by Nalini
This was not very helpful. I have 'state' & 'county' data stored in collection A. In my UI form, I want to click on drop-down, select state, then have counties show up. Select county and have that populate NEW collection B. Is that possible?
drop down, select, scroll, select ability
Posted: Fri Jan 24, 2014 7:37 pm
by Maryna Brodina
Hello! Yes, it's possible - on change value event of first select invoke service to retrieve counties for selected in first select state. Service response map to the second select.
drop down, select, scroll, select ability
Posted: Fri Jan 24, 2014 7:57 pm
by Nalini
Can you give me a little more detail? On drop down list, change value doesn't give me the option to 'invoke service'
drop down, select, scroll, select ability
Posted: Fri Jan 24, 2014 8:51 pm
by Maryna Brodina
Take a look at the screenshot
drop down, select, scroll, select ability
Posted: Fri Jan 24, 2014 9:46 pm
by Nalini
so first invoke list service to find states, then second invoke list service to find counties? Can you point me to a tutorial on this. Your instructions are cryptic!
drop down, select, scroll, select ability
Posted: Sat Jan 25, 2014 1:40 pm
by Nalini
Please point me to the tutorial on this. Your responses are cryptic and very frustrating...
drop down, select, scroll, select ability
Posted: Sat Jan 25, 2014 2:15 pm
by Illya Stepanov
Hi - yes you're right, on event of the first mobile select (state) -- 'value change' - invoke the service 'countries'. Make mapping of the results to the appropriate select fields.