Edit inline Object properties Ontology with Action Typescript

Hello,

I’m using inline editing on several properties, but I’m encountering a problem because some properties need to be calculated based on others. For example: a date, Forecast Date = T0 + 3 days. So when I perform inline editing on T0, the Forecast Date needs to update.

How can I perform this calculation within my editable action without using a TypeScript function? Because inline editing doesn’t support TypeScript. Thank you for your help.

Hi - yes, inline edit actions have specific requirements (documentation here), including that default values must be enabled and must come from the object reference parameter.

Since Forecast Date is strictly dependent on other properties, I would not recommend making it an editable property.

If Forecast Date only needs to be displayed and not necessarily stored on the object, you could use a function-backed column to display it in an object table or you could compute the value using Workshop variables directly in the front end.

If Forecast Date needs to be persisted on the object, you can set up an Automate that is triggered whenever the T0 property is modified. Then it would run a separate Function-backed action that makes the calculation.