Hi Guys, I have an issue right here, so I create a...
# general
a
Hi Guys, I have an issue right here, so I create a new inventory adjustment but with other record id in the url. within the script i load the other record id and getlinecount and set 2 line items in it to the line items in inventory adjustment. but there is only one item set to the line items of inventory adjustment.. anyone know how to solve this??
b
what does the code look like
a
SelectLine, setCurrentSublistValue and commitLine. In pageinit client script
b
actual code required
a
I will screenshot the code when i back home
Copy code
currentRec.selectNewLine({
                  sublistId: "inventory",
                });
                currentRec.setCurrentSublistValue({
                  sublistId: "inventory",
                  fieldId: "item",
                  value: draftIAItem,
                  forceSyncSourcing: true,
                });
                currentRec.setCurrentSublistValue({
                  sublistId: "inventory",
                  fieldId: "location",
                  value: draftIALoc,
                  forceSyncSourcing: true,
                });
                currentRec.setCurrentSublistValue({
                  sublistId: "inventory",
                  fieldId: "adjustqtyby",
                  value: strQty,
                  forceSyncSourcing: true,
                });
                currentRec.setCurrentSublistValue({
                  sublistId: "inventory",
                  fieldId: "memo",
                  value: draftIAMemo,
                  forceSyncSourcing: true,
                });
                currentRec.commitLine({
                  sublistId: "inventory",
                  ignoreCalc: true,
                });
message has been deleted
b
still not enough code
expect to share enough to reproduce the problem