Getting a data value from a 'scope' property within in the uischema

Given a scope property from a uischema, what function can be used to convert that to either a path for accessing the data element, or a function that would return that data element.

I was thinking initially it’s just a mater of traversing the data object, but then I realized the scope is referencing the schema. So instead of trying to reinvent the wheel, I figured there has to be a function that will return this value.


Hi @rbluer,

you can use toDataPath or toDataPathSegments exported by @jsonforms/core. These are used internally to convert UI Schema scopes to data paths. You can then use for example lodash’s get to access the data.