Catalog reference variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2025 07:52 AM
Hi
We have a reference field B that will be visible based on previous field A.
Reference filed B values will be pulled from table based on requested for(could be multiple records).
If there are no values for the requested for user then table will be empty. In such case I need a alert message displayed in the catalog form that "user dont have service".
Looking for suggestions how to check the reference field is returning empty. Thank You
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2025 09:32 AM
Okay, in order to have the reference field B to show dynamic records based on the selected user, we can use a reference qualifier right.
- Now to show the alert/info message if there are no business services owned by the user to select from, we can write 2 catalog client scripts, one onload and one onChange on the user variable.
- we check if there are any business services mapped to that user or not in a script include and then call that script include from both of those client scripts.
- If the user has business services then we don't do anything, otherwise we show the alert message globally or on that variable level.
I hope this is what you are trying to achieve, please try it out and do let me know if you require any help.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2025 10:35 AM
There’s advanced refefrance qualifier with ajax call for the field.
the issue is this reference field will be visible true only when type is matched and it has to show records from the table.
if there are no records then alert has to thrown.
i cannot use onload because it’s not for all types. And only for certain types the reference field Is made visible. So when should I check if the table returned data once the field is visible.