You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using DynamicForm component I set the webAbsoluteUrl to refer to the site where the list is located. If the list includes a lookup field and the webpart is running in a different site that webAbsoluteUrl, the lookup field fails to load lookup options and displays the error "Cannot read properties of undefined (reading 'TypeAsString')"
I assume that I need to pass a different context to the component. Any guidance on how best to do that? I do have an spfi object that corresponds to the webAbsolutUrl site.
Error get Items TypeError: Cannot read properties of undefined (reading 'TypeAsString')
at SPService.<anonymous> (c:\Users\ed.alexander\source\repos\EACPartnersMatterManager\dist\node_modules\@pnp\spfx-controls-react\lib\services\SPService.js:307:42)
at step (c:\Users\ed.alexander\source\repos\EACPartnersMatterManager\dist\node_modules\@pnp\spfx-controls-react\lib\services\SPService.js:32:1)
at Object.next (c:\Users\ed.alexander\source\repos\EACPartnersMatterManager\dist\node_modules\@pnp\spfx-controls-react\lib\services\SPService.js:13:46)
at c:\Users\ed.alexander\source\repos\EACPartnersMatterManager\dist\node_modules\@pnp\spfx-controls-react\lib\services\SPService.js:7:1
at new Promise (<anonymous>)
at __webpack_modules__.19169.__awaiter (c:\Users\ed.alexander\source\repos\EACPartnersMatterManager\dist\node_modules\@pnp\spfx-controls-react\lib\services\SPService.js:3:1)
at __webpack_modules__.19169.SPService.getListItems (c:\Users\ed.alexander\source\repos\EACPartnersMatterManager\dist\node_modules\@pnp\spfx-controls-react\lib\services\SPService.js:280:1)
at ListItemPicker.<anonymous> (c:\Users\ed.alexander\source\repos\EACPartnersMatterManager\dist\node_modules\@pnp\spfx-controls-react\lib\controls\listItemPicker\ListItemPicker.js:142:1)
at step (c:\Users\ed.alexander\source\repos\EACPartnersMatterManager\dist\node_modules\@pnp\spfx-controls-react\lib\controls\listItemPicker\ListItemPicker.js:58:1)
at Object.next (https://localhost:4321/dist/matter-manager-web-part.js:110280:53) {stack: 'TypeError: Cannot read properties of undefine…21/dist/matter-manager-web-part.js:110280:53)', message: "Cannot read properties of undefined (reading 'TypeAsString')"}
When using DynamicForm component I set the webAbsoluteUrl to refer to the site where the list is located. If the list includes a lookup field and the webpart is running in a different site that webAbsoluteUrl, the lookup field fails to load lookup options and displays the error "Cannot read properties of undefined (reading 'TypeAsString')"
I assume that I need to pass a different context to the component. Any guidance on how best to do that? I do have an spfi object that corresponds to the webAbsolutUrl site.
Category
[ ] Enhancement
[X] Bug
[ ] Question
Version
Please specify what version of the library you are using: [ 3.20.0 ]
The text was updated successfully, but these errors were encountered: