Add choice options to database driven drop down?

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
ppbedz
Experienced User
Posts: 147
Joined: Tue Jun 17, 2014 4:00 pm
First Name: Patti
Last Name: Bednarz
Company Name: McGard
State / Province: New York
Country: United States
Contact:

Add choice options to database driven drop down?

Post by ppbedz »

Hi,

I have a data-base driven drop-down that lists employees based on the userid in our employee master file. I would like to add 2 more userids to the list that are NOT in the employee master file. I know I can accomplish by creating a view, or using a "program field" to build the choices and values. I was wondering if there is any way to code some sort of implied "union" with the data-base driven selection parameters? ie. show me all userids in the employee master file plus add "useridabc" and "useridjlk" to the list.

Thank you,
Patti
SeanTyree
Profound User
Posts: 76
Joined: Fri Jan 11, 2013 6:11 pm
First Name: Sean
Last Name: Tyree
Company Name: US HealthWorks
State / Province: California
Zip / Postal Code: 91355
Country: United States
Contact:

Re: Add choice options to database driven drop down?

Post by SeanTyree »

Hi Patti,

I haven't tried this inside of a drop-down widget, but here is an SQL statement that would provide the results you are looking for:
SELECT USERID FROM USERS union
values 'useridabc' union
values 'useridjlk'

Sean
ppbedz
Experienced User
Posts: 147
Joined: Tue Jun 17, 2014 4:00 pm
First Name: Patti
Last Name: Bednarz
Company Name: McGard
State / Province: New York
Country: United States
Contact:

Re: Add choice options to database driven drop down?

Post by ppbedz »

Hi Sean,

Yes, I could create a view that does what you suggest. However, I was hoping to incorporate using the widget properties instead.

Thank you...

Patti
SeanTyree
Profound User
Posts: 76
Joined: Fri Jan 11, 2013 6:11 pm
First Name: Sean
Last Name: Tyree
Company Name: US HealthWorks
State / Province: California
Zip / Postal Code: 91355
Country: United States
Contact:

Re: Add choice options to database driven drop down?

Post by SeanTyree »

Patti,

Another option would be to use a Universal Display File as the source for the drop-down data.
There is an example of this in the documentation:
http://www.profoundlogic.com/docs/displ ... splay+File

Sean
ppbedz
Experienced User
Posts: 147
Joined: Tue Jun 17, 2014 4:00 pm
First Name: Patti
Last Name: Bednarz
Company Name: McGard
State / Province: New York
Country: United States
Contact:

Re: Add choice options to database driven drop down?

Post by ppbedz »

Thanks Sean. I will read through the documentation.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests