How to set value to a field after a record has been opened using the g_aw.openRecord function

Vasu20
Tera Contributor

After a record has been opened by using the g_aw.openRecord() function how can we set values to specific fields?

Any help would be appreciated.

Thanks and Regards,

Vasu

6 REPLIES 6

shloke04
Kilo Patron

Hi,

Can you try something similar to below code and see if that works:

function onClick(g_form) {
g_aw.openRecord("sys_user",g_form.setValue("caller_id",'value here'), { "mode": "form" });
}

Change the parameter accordingly as per your requirement.

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Vasu20
Tera Contributor

We had a sys_property to ignore fields and added the current field to it and the issue got resolved šŸ™‚

Thank you so much for all your responses.

 

Best Regards,

Vasu