Hi,
As part of an option definition I have 'Optional Parameters' set to 'operation=A¤tRequestNumber=1'.
Within the RPG program I am trying to get these parameter values but without any success.
p getPostData b
d pi
/free
@operation = vvIn_char('operation');
@request = vvIn_num('currentRequestNumber');
@operation2 = vvIn_char('OPERATION');
@request2 = vvIn_num('CURRENTREQUESTNUMBER');
DUMP;
/end-free
p e
The javasript is calling this program (as I am getting a dump).
Javascript snippet:
function loadParms(){
Ext.Ajax.request({
url: 'vvcall.pgm',
params: {
pgm: 'PRW020',
action: 'GetOptParms'
},
success: function(response){
var check = response.responseText;
if (check) {
var data = Ext.util.JSON.decode(response.responseText);
if (data.SUCCESS == '1') {
alert('operation: ' + data.OP);
alert('currentRequestNumber: ' + data.CRN);
actionController(nextAction);
//helloWorld(data.PARM1, data.PARM2);
}
}
},
failure: function(response){
Ext.Msg.alert('Could not get startup values');
}
});
}
As part of an option definition I have 'Optional Parameters' set to 'operation=A¤tRequestNumber=1'.
Within the RPG program I am trying to get these parameter values but without any success.
p getPostData b
d pi
/free
@operation = vvIn_char('operation');
@request = vvIn_num('currentRequestNumber');
@operation2 = vvIn_char('OPERATION');
@request2 = vvIn_num('CURRENTREQUESTNUMBER');
DUMP;
/end-free
p e
The javasript is calling this program (as I am getting a dump).
Javascript snippet:
function loadParms(){
Ext.Ajax.request({
url: 'vvcall.pgm',
params: {
pgm: 'PRW020',
action: 'GetOptParms'
},
success: function(response){
var check = response.responseText;
if (check) {
var data = Ext.util.JSON.decode(response.responseText);
if (data.SUCCESS == '1') {
alert('operation: ' + data.OP);
alert('currentRequestNumber: ' + data.CRN);
actionController(nextAction);
//helloWorld(data.PARM1, data.PARM2);
}
}
},
failure: function(response){
Ext.Msg.alert('Could not get startup values');
}
});
}
Comment