Configurable Workspace Reference Fields open Modal but do not load records
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2023 09:04 AM
I have a defect in Configurable Workspace. Any page variant or maybe any extended table like a new Case Type breaks the default relationship between a reference field on the record view and the default modal/modal container on the page.
When in Configurable Workspace, I view a Case record and its associated view. When I click on the spyglass or magnifier icon of a reference field to open the modal 'popup' window it opens Modal. However, it does not trigger the viewport to show the loading icon and it doesn't load the record list as it does on non-variant pages. I've tracked the Event to the Client Script to the States. The Event payload is correct, and the modal is tied to the State and the States are set. I've compared everything between working pages and the non-working page(s) and see no difference. The variants, as expected, clones everything over, macropontents, events, states, scripts, page parameters.
What part has to be missing? Could this be ACL as CWS does need special permission at times? Has anyone seen this? I found one post saying it's missing an event but nobody in that post can find it and my troubleshooting indicates it has to be something inside the modal container viewport.
I've attached 2 screenshots. What I get and what I expect. Note that no Loading component shows so it couldn't have gotten everything, however it got the "content" state param as it shows we want Assignment Group and that WAS passed in the "content" state param that I logged to console.
I have been working in UI Builder for weeks. I've configured and built a lot of things like custom Contextual Side Bar tool. Even a completely custom Ribbon Component using some of ServiceNow source code on Git so I'm not new to UI Builder or how it works but I'm not immune to error and open to someone with more experience.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2023 10:51 AM
Thanks again for the time. Everything is correct and matches. We must have different root causes. When HI tells me what the fix is I'll repost it here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2023 07:38 AM
Sure, Kindly post the fix here, once its resolved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2023 01:04 PM
I had a similar issue where it wasn't loading the modal at all any time I clicked the search glass on Reference Fields in UIB. It ended up being because the data resource tied to the Form component had an ID other than "record". Updating the data resource ID to "record" fixed the issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2023 07:25 AM
We are currently experiencing the same issue but I haven't been able to locate the ID that you referenced. Would you be able to share a screenshot of where this was changed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2023 07:39 AM
Sure, in our case we had the Data resource ID set as record_1 instead of just record.