Im trying to use optionSource but using the below"works" however the displayPath and valuePath are not working. Just Option 0-17 (matches records retrieved from the api)
Im using the CDN version


Ideally we need to split like the dataPath
|
const digProps: string[] = dataPath.split('.'); |
Maybe we can trigger the same function on displayPath & valuePath to traverse the object?
|
const { valuePath, displayPath } = optionSource; |
const { extractDataByDataPath( valueResult , optionSourceData , valuePath), extractDataByDataPath( displayResult , optionSourceData , displayPath) } = optionSource
Im trying to use
optionSourcebut using the below"works" however thedisplayPathandvaluePathare not working. Just Option 0-17 (matches records retrieved from the api)Im using the CDN version
Ideally we need to split like the
dataPathRESTool/src/helpers/data.helpers.ts
Line 14 in c14058f
Maybe we can trigger the same function on
displayPath&valuePathto traverse the object?RESTool/src/components/formRow/formRow.comp.tsx
Line 52 in c14058f
const { extractDataByDataPath( valueResult , optionSourceData , valuePath), extractDataByDataPath( displayResult , optionSourceData , displayPath) } = optionSource