Do anyone know RP.getListControl().getLabel()

ganesh68
Kilo Contributor
RP.getListControl().getLabel()

Do anyone know how this works?

11 REPLIES 11

I have a form with two related lists which glides the records from same table but with different conditions.

I need to have specific ui actions on a RL which should not be present on other

 

You can configure List control and give each relatedlist a unique label. 

For example, Child incident related list has label "Child Incident" and there is another incident related list. I have given that a label of "Parent incidents". Now you can use condition something like below based on your requirements.

For child incident related list.

"Child Incident".equals(RP.getListControl().getLabel())

For Parent incident related list.

"Parent Incident".equals(RP.getListControl().getLabel())

Here is how you set the label for each related list

find_real_file.png

find_real_file.png

Hope that helps!

Regards,

Muhammad

Regards,
Muhammad