Question in an itemFullfillment Transaction regard...
# suitescript
r
Question in an itemFullfillment Transaction regarding the sublistId 'item' and a fieldId that is "view in Fulfillment only" flag set. It seems, I cannot use the fieldId string (or even the suffixed "disp") to retrieve the value. The goal is to set a configuration from a Sales Order that is then pulled out in a subsequent Client Script in the Fulfillment transaction.
I've tried a variety of the hitc typescript calls on getSublistValue, getSublistText getSublistField with no luck. Disabling the "view only" checkbox on the field does allow the script to pull correctly. Seems like there must be a way to get it.
s
the 'hitc typescript' part of that last statement is irrelevant. I'm not familiat with a 'view in Fulfillment only' field setting. What is the name of the field you are trying to retrieve?
b
settle for changing the display type of the field to disabled on fulfillments
r
Hmm, disabled might work, but this is a sublist field and not a screen field.
The id of the field is custcol_option1 When I have the flag in "Applies To" set to "Item Fulfillment - View from Order Only" The field in the NetSuite Field Explorer shows custcol_option1disp
b
dont use
View from Order Only
r
If I understand, this would have the field enabled initially at load. Then the userEvent script to disable the field? If the field is not part of the fulfillment view, is it still accessible to the ClientScript?
b
the field needs to be setup so that it applies to item fulfillments
r
OK, I did this in my UserEvent script to modify the form.
Thanks for the pointer