json-schema-form
json-schema-form copied to clipboard
should have the ability to access environment / session variables in compute expressions
We currently evaluate computed expressions are follows:
this.value[field] = jsonata(expression).evaluate(this.value);
where the expression (from the schema def) is applied on the object. However, a typical case is to write the current user in a "lastChangedBy" field. This is not possible at the moment.
We could introduce a $context() jsonata function and provide the parent component the ability to provide a context object.