[RPG/JS]Get the value of GVAR
Posted: Tue Aug 08, 2017 2:28 pm
Hi,
I have an application to set the value of Textbox element to GVAR in javascript.
I'd like to show the value of that GVAR as a message of message box.
I thought I can retrieve the value of GVAR with "this.q_getProperties({"SharedStates.USERID":[]}); " statement, but i am not able to get the value.
TextBox WFUSID --> GVAR: USERID --> Messagebox
How can I get the value of GVAR in the same javascript ?
I can pass the GVAR to the other formview, but I'm not sure how to get the value of GVAR within the same javascript.
Best Regards,
Megumi Sawada
I have an application to set the value of Textbox element to GVAR in javascript.
I'd like to show the value of that GVAR as a message of message box.
I thought I can retrieve the value of GVAR with "this.q_getProperties({"SharedStates.USERID":[]}); " statement, but i am not able to get the value.
TextBox WFUSID --> GVAR: USERID --> Messagebox
Code: Select all
function() {
this.q_setProperties("form.fields.WFUSID.Value.&.GVAR","USERID");
this.q_apply();
this.q_getProperties({"SharedStates.USERID":[]});
},
function(value1) {
myMessage = this.value1;
this.q_setProperties({
runOperation:
{
type: "ShowMessage",
title: "Info",
message: myMessage
}});I can pass the GVAR to the other formview, but I'm not sure how to get the value of GVAR within the same javascript.
Best Regards,
Megumi Sawada