how to hide "No Records selected" alert on click of list button
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2014 04:22 AM
Hello,
I have a requirement like on click of list button from list layout without selecting any record from the list layout, i have to proceed further.
but an alert "No Records Selected" forcing me to select the record.
I want to proceed without this alert..it means on click of list button, first record has to selected by default and should proceed further without any alert.
Can any one help on this.
Thanks in Advance,
Pavan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2015 08:45 AM
Sure, instead of using alert() on the client-side portion above, use confirm() instead, like so:
if (confirm('Hello World, i am client-side script!\n\nAre you sure?')) {
gsftSubmit(null, g_form.getFormElement(), 'my_action');
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2015 11:38 AM
this:
if (confirm('Hello World, i am client-side script!\n\nAre you sure?')) {
gsftSubmit(null, g_form.getFormElement(), 'my_action');
}
only works on the client. Is there a way to cause a dialog window to appear from the server in a server UI Action? i.e. the UI action Client check box is not checked.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2015 01:54 AM
if (current.u_check_box == 'false') {
gs.addErrorMessage('Please check the box');
current.u_check_box.setError('Please check the box'');
current.setAbortAction(true);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2015 08:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2015 01:25 PM
Some further testing indicates the "sysverb" prefix trick works for list buttons, but not for list links.