Ui action condition check

jobin1
Tera Expert

Hi All

 

Can some one tell what this condition all about?it in ui action

 

(new GlideRecord(current.getTableName())).canWrite() && RP.isOneToMany() && !RP.getListControl().isOmitEditButton()

 

find_real_file.png

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

the condition is present on OOB UI action

1) it checks if the current user can write to the table

2) then check is it's one to many relationship for the table

3) check if omit edit button in list control

Regards
Ankur

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

View solution in original post

5 REPLIES 5

jobin1
Tera Expert

@Ankur Bawiskar 

As part of this requirement we created this ,So is it really req or what its doing?

community.servicenow.com/community?id=community_question&sys_id=e00df7cc1b00d994a59033f2cd4bcb7d

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

the condition is present on OOB UI action

1) it checks if the current user can write to the table

2) then check is it's one to many relationship for the table

3) check if omit edit button in list control

Regards
Ankur

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

@Ankur Bawiskar what's  one to many relationship for the table means?

Also where we can find all these scripts (3) which are validating here

Hi,

this comes from platform level

RP.isOneToMany() && !RP.getListControl().isOmitEditButton()

Regards
Ankur

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