Edit button on a Related List - Defined/Custom

DPrasna
Tera Contributor

Hello All,

I have the following requirement :

1. Create a related list/relationship Name "Approvers" on Business Service table. It has to be similar to User Relationship (cmdb_rel_person) with CI with Edit button

 

2. I created a custom table with 2 fields. Name of the table "u_approvers"

  • CI - Reference to "cmdb_ci " table
  • User - Reference to "User" table

3. Now I need help with creating a Related list on Business Service table as Approver being child(similar to User rel for example).
How to achieve the same including the Edit button
TIA
@Manmohan K @Ankur Bawiskar @Mark Roethof @Ratnakar7 @Daniel Pettet 

 

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@DPrasna 

So what did you start with?

share screenshots.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Thanks for the reply.
I have this custom table with 3 fields

DPrasna_0-1686152442993.png

I have 2 fields referencing CI is that a problem? Why there is no show of Auth Approver > User while I try to configure the related list

As we have reference fields on the custom table there is a way related list can be configured right?

But I only find Authorized Approver -> CI and not Authorized Approver -> User

 

 

And, there is no Edit button on the related list.

 

I need the related list to look and work like User relationship as below.

DPrasna_0-1686155110346.png

 

 

 

HI ankur, I was able to bring the edit button . 

I did the following

1. I tried to Enable the "Reference floats" to true on User reference field of the custom table (Auth Approver)

Edit button did not appear 

2. I tried to enable "Reference floats" to true on CI reference field edit button appeared however I think it should be Auth Approver > User and not CI. The edit button is not working either.

Please suggest.

 

DPrasna_1-1686156558140.png

As mentioned it should be similar to User relationship where it pulls up User data

 

TIA

 

 

Ankur Bawiskar
Tera Patron
Tera Patron

@DPrasna 

for defined relationship it doesn't show Edit button and is known behavior.

Since defined relationship has custom query so system won't know what/which relationship you are editing.

That's the reason even if you try to Configure List Control and see the Omit Edit button is greyed out.

This KB mentions the same

The New or Edit button does not appear on a one-to-many related list

AnkurBawiskar_0-1740567204806.png

 

 

URL - https://instanceName.service-now.com/nav_to.do?uri=sys_security_acl.do?sys_id=c824e55473212300cf4794ebc4f6a733

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader