Function definions
Dmitry Nehaychik
Hi Admin, thanks for the suggestion. Could you share a bit more about how you envision these functions being used within the app?
A
Admin
Certainly. The comment was actually referring to pure JavaScript / Python functions that can then be used within other scripts or fields and deliver a result directly, not like the actions that can only be triggered and then provide the data asynchronously.
One use case could be, for example, to calculate the colour for a status field based on the status. Of course, this can already be defined directly in the corresponding JavaScript field of the component, but as a function, this behavior could be reused and centrally be changed.
The function could also be defined in the custom code window, but this would currently be very confusing. It would be very practical to create a custom code section for each page and ideally subdivide it hierarchically like the actions.