Ty
04/22/2025, 4:03 PMCeligo AI
04/22/2025, 4:03 PMAI generated answer (using internal Slack threads):In order to set an item in the item sublist with the rate as a percent and have the amount autopopulate like it does in the UI, you should use the
setSublistText method instead of setSublistValue. The setSublistValue method treats the rate as an absolute amount, not a percentage.
Here is an example of how you can do this:
javascript
rec.setSublistText({
sublistId: 'item',
fieldId: 'rate',
text: '20%',
line: lineCount
});
In this example, '20%' is the rate you want to set for the item. The setSublistText method allows you to set the rate as a percentage, and the amount will autopopulate accordingly, just like it does in the UI.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
04/22/2025, 4:03 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.844393194
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.835959554
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.834988713
Celigo AI
04/22/2025, 4:03 PMCeligo AI
04/22/2025, 4:06 PMCeligo AI
04/22/2025, 4:06 PMCeligo AI
04/22/2025, 4:06 PMCeligo AI
04/22/2025, 4:06 PMCeligo AI
04/22/2025, 4:06 PMCeligo AI
04/22/2025, 4:06 PM