In sublists created with the server widget module ...
# suitescript
m
In sublists created with the server widget module (suitelet) and a linked client script, is it possible to change a sublist value based on a fieldChanged trigger without the field to change being of the display type “entry” (or entry combined with disabled)? I just want a regular inline field to display the product of two other fields, like the total cost based on cost per unit and number of units, where “number of units” is editable for the user and I want the total cost field to be updated based on what they enter. I’m fully able to calculate the new value and I can log it in the console, but I haven’t found a way to actually update the sublist field unless I set FieldDisplayType in the suitelet to “entry”, or “entry” chained with “disabled”, but neither of those are viable options in this case. Does anyone know if there’s a way?
n
I cannot say definitively, It's been a while but I have it in mind you can alter the column display type on fieldChange, make your update and flip it back all in the client script. I just cannot recall if you fiddle with the "ENTRY" value of displaytype. I'll see if I can dig out the code I wrote that did it, probably about 4 years ago...
m
I’ll look into this and see if I can figure something out! If you happen to find any code where you did it then I’d be super grateful but if not I’ll see what I can do 😄