Scripted Relationship Related List
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2023 06:49 AM
Why my related list is not showing any records?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2023 11:04 AM
I think you need to convert your pkg array to a string in the encoded query.
try this
current.addEncodedQuery(‘nameIN’ + pkg.toString());
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2023 11:56 AM
@ricker still not working!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2023 01:06 PM
What do you get when you run it in a background script with a known parent.sys_id (wondering if that is right…maybe current.sys_id)?
What are you trying to get? Are you sure your logic is correct? It looks like you want a related list of software instances but isn’t there already one for software?
What happens when you comment out everything and put this as the query?
current.addQuery(‘software’, parent.sys_id);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2023 07:01 PM
Hi @Alon Grod
As per me the code you've written is wrong here.
The current refers to queries from table while parent refers to applies to table
In line 4 you have written gliderecord on the parent table and querying it in comparision to u_master_software and sys_id - This would never result in even 1 record.
Please mark correct if my response has solved your query.
Cheers,
Mohammed Basheer Ahmed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2023 12:49 AM
what should be the correctiong? @Basheer