How to add an info message in list layout

G Balaji
Kilo Guru

Hello,

Is there any ways we could add info message to list layout?

Thanks.

1 ACCEPTED SOLUTION

Ahmmed Ali
Mega Sage

It depends on your use case. 

 

May be you can try adding before query BR on the table with gs.addInfoMessage();

 

Thanks,

Ali

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali

View solution in original post

5 REPLIES 5

Ahmmed Ali
Mega Sage

It depends on your use case. 

 

May be you can try adding before query BR on the table with gs.addInfoMessage();

 

Thanks,

Ali

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali

Thanks for the response.

The requirement is to show the message only in the list layout. However, if I use Before query BR, message is showed when the form is displayed on that table or even background script is executed on that table.

What would the relevant function call to limit this business rule run condition to list layout only.

Thanks again.

Shubham Kakade
Giga Guru

Hello Balaji,

Just insert gs.addInfoMessage('Your message which is to be displayed') in you business rule/client script based on your requirements.

This will display the Info message in list view.

Thank you

Mark it as Correct/helpful if this helps you.

Regards,

Shubham

Veer MS
Kilo Guru

Hi, Balaji,

You can write a Before BR for achieving this.

When To Run:

When: before

If you want to display the message always check all the checkboxes(insert, update, delete, query).

Advanced:

Write the below script.

(function executeRule(current, previous /*null when async*/) {

var c='What ever message you want to print';

gs.addInfoMessage(c);

})(current, previous);

Mark it as correct or helpful if this helps.

Thanks

Veer