cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AndyOSB
Level: Powered On

Add Item to drop down list

Hello,

 

I have a drop down list that is populated from a sharepoint list called TBL_ActiveJobList.  I want to inject another item into the drop down that is not on the share point list.

 

For example:

 

Work Order Drop down:

 

111555

111556

111557

New Order <----  This is what I want to have show up on the drop down that is not on the share point list.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Add Item to drop down list

Have you considered using a Collection to store the values from TBL_ActiveJobList and then add 'New Order' to the Collection?

 

You then use your collection as the datasource for the drop down.

 

Of course, you would need some logic to refresh the collection for when new orders are added. Perhaps a refresh button and/or each time you enter the screen (OnVisible) that contains the drop down.

4 REPLIES 4
Super User
Super User

Re: Add Item to drop down list

Have you considered using a Collection to store the values from TBL_ActiveJobList and then add 'New Order' to the Collection?

 

You then use your collection as the datasource for the drop down.

 

Of course, you would need some logic to refresh the collection for when new orders are added. Perhaps a refresh button and/or each time you enter the screen (OnVisible) that contains the drop down.

AndyOSB
Level: Powered On

Re: Add Item to drop down list

that worked!

Highlighted
agneum
Level 8

Re: Add Item to drop down list

Seems like such a pointless workaround to add custom items to your list.


Why cant 

 

[ *yourdatasourceitems*, "yourcustomitem"]  syntax work?

cooper33
Level 8

Re: Add Item to drop down list

Hi, can you elaborate on this syntax? Haven't seen it before and not sure what it's called