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 08:41 AM
Hi,
I believe, RP.getListControl() is used to access the properties of list controls. getLabel() function will help you get the list label which is defined as a value of the label field on the List Control page.
You can see list controls properties by right-clicking the column header in the related list and selecting configure > list control. The red box contains the properties for the incident list.
Please note this will only work for related lists.
Regards,
Muhammad
Muhammad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-18-2021 08:55 AM
Hi Muhammad,
I have tried using RP.getListControl().getLabel() , its always evaluating to true. DO you know the reason.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-18-2021 09:04 AM
That is possible as the Label for list control is always static. I hope you are testing this for the related list. Can you share the code where you are using this for comparison?
For validation, you can right-click on the related list column header and select configure -> List Control and see what value is there in the "Label" column. That will help you understand if the code should return you true or not.
Just FYI on the usage, OOB There is a "New" Ui action which has condition something like below
"Agent Capacities".equals(RP.getListControl().getLabel())
Above is comparing "Agent Capacities" to List Control <Label field value>.
Muhammad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-18-2021 09:10 AM
"Agent Capacities".equals(RP.getListControl().getLabel())
I have used this to my RL , even also button is visible

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-18-2021 09:29 AM
Can you please explain what exactly you are trying to achieve and if you can possibly share your UI action condition that will help us provide to the point solution?
Muhammad