Hey, I'm in a beforeLoad and the setSublistValue i...
# suitescript
s
Hey, I'm in a beforeLoad and the setSublistValue is not working. Is there something I need to do to trigger it to update the value?
t
I think this might be where you would use selectLine and setCurrentSublistValue functions
s
It says those do not exists because the record is not loaded in dynamic mode
t
Well then are you getting an error message or something?
s
If I use selectLine I get that error
t
I mean with setSublistValue
s
But because I'm in a beforeLoad, the record's mode is set to standard by default
t
or does it just not work
s
No error, it just doesn't update the form
b
is this on create of the record?
s
Yeah, this is on creation
and it's creation through the UI (specifically fulfilling a sales order)
@battk Have you ran into this before as well?
b
beforeLoads that set fields basically end up setting the default value of the field
im unsure how that works for sublists
s
so it's possibly being reset
b
what are you using code wise
did a quick check and i was able to set fields normally, though there arent that many on my item fulfillments
147 Views