These are chat archives for jdubray/sam

7th
Jun 2018
zevenbergm
@zevenbergm
Jun 07 2018 15:01
Hi all, I'm wondering what is the best practice of syncing user inputs to the model. At the moment, I do something like this: <input ... onChange="actions.fieldUpdate(event, '${ fieldId }')" /> This is working fine if the data structure is simple. However, how to keep it simple if you've a more complex data structure, like: Sales order with an array of sales line. Each sales lines has again an object with delivery address. The structure looks like this in JSON: { salesOrder: { salesLines: [{ deliveryAddress: { street: '' }}] }}. Do you guys have any ideas/suggestions?