UI Action to save and update

riaz_mansuri
Kilo Guru

Hello,

I have the below UI action which works great. However, when it is clicked I would like the record Updated (Saved).

What do I need to add to the script in order for this to happen?

function listener(){

var formalName = g_user.getFullName();

 

    g_form.setValue('state');

g_form.setValue('state',"Closure Requested");

g_form.setValue('work_notes',"Requested Closure");

}

Thanks

Riaz

7 REPLIES 7

Kannan Nadar
Tera Guru

Hello Riaz,



try g_form.submit();


Hi,



I tried g_form.submit();



However it does not save and return to the list



Thanks


Riaz



Oh so it is an UI Action, can't you simply say current.update();


snehabinani26
Tera Guru

Hi Riaz,



A sample Ui Action which have client and server side code even.



find_real_file.png