Hi, seems like I cannot edit a subrecord (shipping...
# suitescript
g
Hi, seems like I cannot edit a subrecord (shipping address of a sales order) in a client script (saveRecord). What is my best option to combine sending a API call, having a popup and updating the shipping address??
b
use ss1 to set your shipping address instead
its one of the things that can be done in ss1 that cant in ss2
g
I can mix the 2 in one script?
@battk I did it like this var salesorder = window.nlapiLoadRecord('salesorder', saleID)         salesorder.setFieldValue('shipcity', 'San Mateo')         salesorder.setFieldValue('shipstate', 'CA')         salesorder.setFieldValue('shipzip', '94403')         window.nlapiSubmitRecord(salesorder) still getting record changed error
b
You will always have issues with record changed errors if you change the current record by loading and saving it
Its the equivalent to opening the record in a new window and making changes there
the documentation will in general tell you that subrecords are not supported clientside, but it does work for now
g
Thanks so much