Pop-up message is not working in the List View of a table.

Chaithra Srini1
Mega Expert

Hi All,

I am working on one UI action to display a pop-up message in the list view and is not working. I am getting a pop-up message, but when we select a record and try to delete, the record is not getting deleted. Anyone can you please help me with this? Is this requirement feasible? because in list view current.deleteRecord() won't work as it is referring to current object and it works only in the form or single record and it won't apply for a multiple record. Can anyone please suggest any approach or ideas.

Regards,
Chaithra

find_real_file.png

This is the script I have written and is working in form view but not in list view:

function showAlert(){

if(confirm("Are you sure you want delete this record?"))

{
gsftSubmit(null,g_form.getFormElement(),'Test');

}
else
{
return false;
}
}

if(typeof window == 'undefined'){

myServerSideFunction();

}

//server-side function to delete the current record
function myServerSideFunction(){

current.deleteRecord();
}

1 ACCEPTED SOLUTION

Yeah. Since they work differently and getting the sys_ids (one or more in a list) while on the form its a single sys_id.

View solution in original post

15 REPLIES 15

Chaithra Srini1
Mega Expert

Thank you both MB and Ankur for your inputs. Really appreciate your help! 

I have followed the same approach and created two UI actions to achieve the requirement.