Does anyone have code already built that they could share? I just need to pull an order custom list (descriptor and code only) into a dropdown.
See this post. They used it for a listbox, but you should be able to do this for a drop down as well.
If you need help coding it to get a comma separated list, we can probably write something up for you real quick.
Thanks:) I do need help getting it in a comma separated list, that is where I am stuck...any help you can offer would be greatly appreciated.
Thank you!!!
Here is the function I just wrote up for this:
{fn CustList(list) { local ret = "" local list_arr = getfield(ORDER_CUST_LIST(list), "|", "") for i = 1, i <= size(list_arr), i = i + 1 do if (ret <> "") then ret = ret + "," endif local temp = getfield(list_arr[i], "^", "") ret = ret + replacestr(temp[2], ",", ";") + " (" + replacestr(temp[3], ",", ";") + ")" endfor return ret }}
Just call it with the name of the custom list as the parameter (i.e. CustList("my list here")). Note that I replaced all commas in the description of the orders with semi-colons. This is so the drop down list doesn't confuse the comma for a new item in the drop down. The drop down list also does not support "\," which can be used in the List box. Let me know if you have any questions.
BLESS YOU! It works beautifully, thanks so much for your help.