hi i want to reference the filter by options on Pr...
# suitescript
r
hi i want to reference the filter by options on Print picking tickets... in another suitelet.. what should i put in 'source' of addField???
Copy code
form.addField({
               id: 'filterby',
               label: 'FILTER BY',
               type: serverWidget.FieldType.SELECT,
               source: 'availfilter' //internalid for field??
           })
b
wrong approach, you will be doing mostly everything yourself here
r
i cant source filterby?? but i can source 'location'
b
the options available for the source are the same options you get when you create a custom field in the ui
r
well thats true
but still i was hoping i could source directly, is ther no way?
b
no, and its not like you are going to set its internal id on a record
you can use whatever internal ids you want for your select options if you arent going to be using it to set something in netsuite
r
right
otherwise i would
a
FYI: To replicate the native Print Picking Ticket interface you need advanced knowledge of Suitelets, NetSuite and javascript, the SuiteScript API is not enough…