Hello,
My question is on the UI Designer.
I have a list of lines.
On each line, the user gives some values (categories).
From these values, I need to call a REST API to get the price of the benefit according to values. This cost
must be displayed in the line and send back to the server.
With the UI Designer, it is not possible to call a REST API per line, so I created a fragment. In the
fragment, I get the line in parameter, and I call the REST API when values change. The name of my rest
API variable is "cost";.
Question: how do I send back this "cost" to the parent form?
Cost is a REST API and cannot be exposed.
So I created a JavaScript variable "saveTheCost";, with the value
$data.line.cost = $data.cost;
return "ThisValueIsNotUse";
Is that the correct way? Is my JavaScript will be called every time when the cost change (because
"saveTheCost" is not used, not displayed).
Thank you for your return.