Display UI Action on related list with no records

matthew_magee1
Giga Guru

Hi all,

Is it possible to show a UI Action button on a related list if there are no records in the related list?

Scenario is when my related list comes back with 0 records, I need a UI Action (one of three) on the related list tab 'Purchase New', which will kick off a separate process.

Currently my UI Action only shows up when I have records in the related list.

If the New button can be displayed on a table w/ no records, I'd think I could do something similar w/ my own UI Action on a related list.

Thoughts?

 

1 ACCEPTED SOLUTION

Hi

just tested it out with a new blank UI Action:

find_real_file.png

Result is a Test button which can be used without selecting any records

find_real_file.png

After removing the sysverb_ prefix I have to select records first.

So the best is to start with a completely new UI Action and add more and more configurations to fit your needs. Do not reuse an existing one. There was a case where I had wasted several hours of searching and getting crazy until I found out, that I forgot to remove a role at UI Action tab "Requires Roles"

Kind regards
Maik

View solution in original post

5 REPLIES 5

Maik Skoddow
Tera Patron
Tera Patron

Hi

yes, this is possible. Just prefix your action name with "sysverb_" 

find_real_file.png

Kind regards
Maik

Maik-

Thanks for the quick response. Unfortunately I'm not getting the button to show up on the related list.

Here's my UI Action info:

Active: true

Show insert/update: true

Client: true

List v2: true

List banner button: true

Action name: sysverb_purchaseSW

Condition: gs.hasRole('sam') && current.state == 1

Hi

just tested it out with a new blank UI Action:

find_real_file.png

Result is a Test button which can be used without selecting any records

find_real_file.png

After removing the sysverb_ prefix I have to select records first.

So the best is to start with a completely new UI Action and add more and more configurations to fit your needs. Do not reuse an existing one. There was a case where I had wasted several hours of searching and getting crazy until I found out, that I forgot to remove a role at UI Action tab "Requires Roles"

Kind regards
Maik

matthew_magee1
Giga Guru

Well, you were right. I started from scratch and whola. I am noticing that when I add something in the condition value, the button goes away. When it's empty, the button is there.

Oh well, small victories. Thanks again!