How do I pass the value from the value from `adjQu...
# suitescript
j
How do I pass the value from the value from
adjQuantity
to the setCurrentSublistValue() ? I keep getting errors inside '', outside '', (), {}
Copy code
var adjQuantity = (fulfillmentQty - nsdrReturn);
                log.debug({
                    title: ({ title: 'New Quantity'}),
                    details: adjQuantity
                })

                recType.setCurrentSublistValue({sublistId:'item',fieldId:'quantity',value:1});
c
The
title
parameter of your
log.debug
is mad
j
mad?
s
Copy code
var adjQuantity = (fulfillmentQty - nsdrReturn);
                log.debug({title: 'New Quantity',details: adjQuantity});
                recType.setCurrentSublistValue({sublistId:'item',fieldId:'quantity',value:adjQuantity});
I'd try this, not sure it is functional tho haha
j
yup, it does work. That is exactly what I did and I was able to find what the issue is. Thanks @Sciuridae54696d
🙌 1