Comments on: Hiding Related Lists and Embedded Lists https://servicenowguru.com/client-scripts-scripting/hiding-related-lists-embedded-lists/ ServiceNow Consulting Scripting Administration Development Thu, 07 Mar 2024 15:43:44 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Mark Stanger https://servicenowguru.com/client-scripts-scripting/hiding-related-lists-embedded-lists/#comment-8658 Thu, 11 May 2017 19:35:54 +0000 https://servicenowguru.wpengine.com/?p=3816#comment-8658 In reply to Sandeep.

No way that I’m aware of. You might ask on the ServiceNow community.

]]>
By: Sandeep https://servicenowguru.com/client-scripts-scripting/hiding-related-lists-embedded-lists/#comment-8657 Thu, 11 May 2017 19:14:01 +0000 https://servicenowguru.wpengine.com/?p=3816#comment-8657 Hi,

Is there a way I can get the all the related list elements ( that are being shown on a form ) , in the UI Action that I am creating on that form ?

]]>
By: Amisha Parekh https://servicenowguru.com/client-scripts-scripting/hiding-related-lists-embedded-lists/#comment-8656 Wed, 31 Jul 2013 18:29:33 +0000 https://servicenowguru.wpengine.com/?p=3816#comment-8656 In reply to Amisha Parekh.

Got it… :-)

g_form.hideRelatedLists();

]]>
By: Amisha Parekh https://servicenowguru.com/client-scripts-scripting/hiding-related-lists-embedded-lists/#comment-8655 Wed, 31 Jul 2013 17:28:46 +0000 https://servicenowguru.wpengine.com/?p=3816#comment-8655 Hi Mark,

Is there is a way to hide all Related list with one script line or do i need to go one by one?

Thanks & Regards,
Amisha Parekh

]]>
By: Dan Berglin https://servicenowguru.com/client-scripts-scripting/hiding-related-lists-embedded-lists/#comment-8654 Wed, 08 May 2013 13:33:49 +0000 https://servicenowguru.wpengine.com/?p=3816#comment-8654 In reply to Dan Berglin.

Hi agian,
10 minutes after last post I found the way around. Speciefied two new Relationships (System Definition -> Relationships) and after that I could control the two resulting embedded list layouts separately. :)

Kind regards,
Dan

]]>
By: Dan Berglin https://servicenowguru.com/client-scripts-scripting/hiding-related-lists-embedded-lists/#comment-8653 Wed, 08 May 2013 13:18:33 +0000 https://servicenowguru.wpengine.com/?p=3816#comment-8653 Hi,
got an issue with embedded lists.

Im working on a new “Relations” tab for Tasks. The customer dont want to use the “Related Items” UI-macro (which is hard coded!?). They want two embedded lists, one list for Parent tasks (task_rel_task.parent) and one list for Child tasks (task_rel_task.child).

Found an embedded list named “Relationships” and one called simply “Child” which displays the related tasks. Where do I even find the objects for theese, they are labeled (no ->)? Can’t find them anywhere.

Problem is, they get the same column layout as the embedded lists are the same table. I can’t apply any view. Client script for applying a different list View would maybe be a solution?

List layout/columns:
Parent
Child
Child.Short description
Parent.Short description

Result:
The “Parent” column is automagicaly hidden (!?) where it should and the “child” column as well! However, the “short description” column is’nt pretty. Both are displayed and one of the column is of course repeating the “current.short_description”.

Applying different views using some sort of script would solve this, but I dont know how. Even tried database views to simulate different tables.

Please help! I’m stuck in ServiceNow which i belived was impossible!

Kind regards,
Dan

]]>
By: Mark Stanger https://servicenowguru.com/client-scripts-scripting/hiding-related-lists-embedded-lists/#comment-8652 Wed, 12 Oct 2011 12:30:15 +0000 https://servicenowguru.wpengine.com/?p=3816#comment-8652 In reply to brumiou.

I haven’t ever tried to do that. I think it would probably end up being some pretty advanced client script to do it though. I don’t think there’s a simple way.

]]>
By: brumiou https://servicenowguru.com/client-scripts-scripting/hiding-related-lists-embedded-lists/#comment-8651 Wed, 12 Oct 2011 09:49:00 +0000 https://servicenowguru.wpengine.com/?p=3816#comment-8651 Hi,

it’s really interesting, thanks!

Do you also know a way to put an embedded list read-only?
I’ve tried many things, but no results :s

]]>
By: Mark Stanger https://servicenowguru.com/client-scripts-scripting/hiding-related-lists-embedded-lists/#comment-8650 Wed, 15 Jun 2011 16:27:51 +0000 https://servicenowguru.wpengine.com/?p=3816#comment-8650 In reply to Torsten Brosow.

I’m using the Prototype library.

]]>
By: Torsten Brosow https://servicenowguru.com/client-scripts-scripting/hiding-related-lists-embedded-lists/#comment-8649 Wed, 15 Jun 2011 16:25:44 +0000 https://servicenowguru.wpengine.com/?p=3816#comment-8649 Hi

are you using jquery in the script?

I thought jquery has been replaced in the June release!

]]>