I'm having a client script deployed to the invento...
# suitescript
c
I'm having a client script deployed to the inventory detail form. This script is using a JSON to translate to one or more inventory detail lines. This is working fine for a single line but for some reason my commitLine('inventoryassignment') isn't working although the currentRecord.isDynamic is true. Clicking the 'Add' button using jQuery also doesn't work, my logic just keeps on overwriting the existing line. Any thoughts?
b
what does the code look like
c
Untitled.js
After the script has did his job, I can actually commitLines and add stuff through 1.0 API in the browser. It feels like some timing issue or maybe a SS2.0 thing
b
c
Cheers! That seems to be working
r
Is this done in the CS side? I always had the impression that the
inventorydetail
subrecord can only be manipulated server side
c
It's a client side deployed to the inventory detail popup form yes
I made a custom suitelet to select lots after which the inventory detail popup is automatically called, filled and closed / saved so the user doesn't have to fill in the inventory details themself
141 Views