reptar
12/06/2023, 4:39 PMClay Roper
12/06/2023, 4:45 PMreptar
12/06/2023, 4:45 PMreptar
12/06/2023, 4:46 PMhttps.post()
to a suitelet, from the same suitelet?Clay Roper
12/06/2023, 4:47 PMClay Roper
12/06/2023, 4:48 PMreptar
12/06/2023, 4:48 PMreptar
12/06/2023, 4:49 PMerictgrubaugh
12/06/2023, 4:56 PMerictgrubaugh
12/06/2023, 4:56 PMerictgrubaugh
12/06/2023, 5:00 PMreptar
12/06/2023, 5:05 PMNS.UI
to refer to the form?erictgrubaugh
12/06/2023, 5:05 PM<form>
, so document.forms[0]
would probably get itNElliott
12/06/2023, 5:06 PMfunction refreshDetails(context){
let cRec = currentRecord.get();
cRec.setValue({fieldId:'records_selected',value:0,ignoreFieldChange:true});
cRec.setValue({fieldId:'field_changed',value:"anything",ignoreFieldChange:true});
//
NS.form.setChanged(false);
document.getElementsByName('main_form')[0].submit();
return true;
}
Note the NS.form line prevents NS complaining that you are leaving the page.erictgrubaugh
12/06/2023, 5:06 PM<form>
has a name
attribute like @NElliottβs code indicates, then document.forms['main_form']
would be more reliableerictgrubaugh
12/06/2023, 5:07 PMreptar
12/06/2023, 5:08 PMverikott
12/06/2023, 7:09 PMNS.form.setChanged(false);Actual legend. I've been looking for a way of doing that
Shawn Talbert
12/06/2023, 7:37 PMreptar
12/06/2023, 7:43 PMmattdahse
12/06/2023, 7:52 PMreptar
12/06/2023, 7:59 PMreptar
12/06/2023, 8:00 PMreptar
12/06/2023, 8:02 PMShawn Talbert
12/06/2023, 9:34 PMreptar
12/06/2023, 9:44 PM