How to show button only in a particular table

Shaik22
Tera Expert

Hello,

 

Created one table in that there is a relation with asset(alm_asset) table,i created one ui action in asset table this ui action is showing every table which is linked to asset.How to show that ui action only to my particular asset table.Please help.

1 ACCEPTED SOLUTION

@Shaik22 

in that case you can add this condition in that UI action

try this

parent.getTableName() == 'lost Request table name'

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

View solution in original post

5 REPLIES 5

Dhruv Chandan
Giga Guru

Hi,

 

You may use the script "current.getTableName()" in UI Action's "Conditions" to get the current table name and put the restriction on the button to be visible on desired child tables.

 

Hope this helps.

 

Regards,
Dhruv

Vasantharajan N
Giga Sage
Giga Sage

@Shaik22 - In UI action select the table as  'your table name' and use condition to apply filter to show UI action when some condition meets. 

VasantharajanN_0-1680247798014.png

VasantharajanN_1-1680247864440.png

 

 


Thanks & Regards,
Vasanth

Ankur Bawiskar
Tera Patron
Tera Patron

@Shaik22 

UI action is created on which table?

share screenshot.

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

Asset(alm_asset) table.i created a table name 'lost request' in related list asset table is there and created one ui action 'stock' on asset table.My issue here is i want to show that ui action in lost request table only.but the ui action is reflecting to all tables for example transfer order,disposal order tables.How to resolve this.