how to hide "No Records selected" alert on click of list button

pavan_yakkala
Kilo Contributor

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.

16 REPLIES 16

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');    


}


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.


if (current.u_check_box == 'false') {


gs.addErrorMessage('Please check the box');


current.u_check_box.setError('Please check the box'');


current.setAbortAction(true);


}


Should this work in Fuji scoped apps? I'm not seeing the suppression when trying this. Does this look correct?



2015-07-21_11-39-56.png


Some further testing indicates the "sysverb" prefix trick works for list buttons, but not for list links.