Configurable Workspace Reference Fields open Modal but do not load records

Steven Steichen
Tera Expert

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.

12 REPLIES 12

On the "Record" (Record Default)" Page variant copy (neither in the original) I do not find the "record" data resource. am I missing something?

Steven Steichen
Tera Expert

HI Support had to correct something in our database to correct my problem however they didn't share enough details for me to know what they did.

My variant of Default Record does not have a 'Record' Data Resource and it works. If it is a variant and not something you created from scratch, I'd ask HI for help finding the missing parts as it's likely missing some reference in the macroponent related lists that would be very hard to find. I've had that a few times.

Steven Steichen
Tera Expert

Update: Just had a second occurrence of, almost, the same issue on a new variant of Record. In this case I didn't get any modal at all. The issue is the fields list defined on the UX App Route [sys_ux_app_route] table for my copy of 'DA Modal Ref Lookup'. Fields list contained, 'displayValueList' which is an optional field. Removing that allowed the Modal to display. My thinking is the payload didn't have it and with it defined failed to parse payload and crashed.

on your variant in UIB, go to Setting and open Page Def [sys_ux_macroponent], Related List UXApp Routes, find DA Modal, open and check it against the OOB page you created the variant from. You might find Fields are incorrect as well.