Hello All how can I set value to this costestimat...
# suitescript
g
Hello All how can I set value to this costestimatetype field with these values on the image
c
Do you want to set it on items or transactions?
g
on items via script
c
Have you enabled the GP feature? If you search the help for "Setting Up Gross Profit" it tells you the prerequisites etc
g
how about when I want to set the value from the transaction lineitems
b
what have you tried?
g
I tried this line of code
poRec.setSublistValue({sublistId: 'item', fieldId:'costestimatetype', line: i, value:'PURCHORDERRATE'});
the lineitem on the Salesord with cost estimate type field doesnt seem to have internalids on its values
b
try dynamic mode
dynamic mode allows the use of Field.getSelectOptions to check what your options are
g
its empty and i dont understand why
b
can you set and save the field in the ui?
g
yes i can
b
what does your code look like