Buy Now
Sign in

How to load data into a dropbox

rslyra , February 15 2020, 01:03
R
rslyra 110
February 15 2020, 01:03 #391187
I need to fill the dropbox options with data from a table.
I read data from the table using a Read Data block, read_pai. The model name is dtpai. Retrieve org_id and org_name.

But what should I put in the checkbox options to use this data?

The form loaded the data, but does not show it in the dropbox.
I tried:
{var:read_pai.dtpai.org_id}={var:read_pai.dtpai.org_nome}
{var:read_pai.dtpai}
{var:read_pai}
Thanks all.
healyhatman 9
February 16 2020, 05:54 #391198
Did you set return type to "an array of key/value pairs" ?
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
R
rslyra 110
February 16 2020, 12:49 #391200
Oohh. No, I didn't.

Thanks, now is working fine.
Once more, thanks
R
rslyra 110
February 16 2020, 18:21 #391204
Hi, it's me again.
One more thing.
I have a list of departments, to fill with the senior departament.
Like this:
1= Departament XX
2= Departament VVV
3= Departament ZZZ
]
But I need to insert a line to define the TOPs departments. Like this:
0=Top department
How I can do that?
healyhatman 9
February 16 2020, 20:30 #391206
Exactly like that
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
R
rslyra 110
February 16 2020, 22:25 #391209
Simple.

Yes, just like that.

Thanks again.