Do anyone know RP.getListControl().getLabel()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-18-2021 07:48 AM
RP.getListControl().getLabel()
Do anyone know how this works?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-18-2021 09:32 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-19-2021 03:20 AM
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
Hope that helps!
Regards,
Muhammad
Muhammad