Hi, i'm having a problem with transferring parms from the url to rpg.
i have this coding in a app to call a new window, the url parms f.e versienr contains "VERSIE1".
in the called app i have
in the called RPG-program i do a
to retrieve the content,
since i had unexplainable result, i did a debug and noticed a strange thing, in the rational developer when looking at the variable in the monitoring window, it shows the correct value, but looking at the same variable in the 'variables' window, it shows the variable with "\na" (new line? ) added..
what is the best way to get parms from the url, or is there some way to strip those ending html chars?
Thierry
i have this coding in a app to call a new window, the url parms f.e versienr contains "VERSIE1".
Code:
var newWindow = window.open('vvcall.pgm?app=Comaker - DetailOfferte&pgm=vvinit&sid='+ sessionStorage.sid + '&versienr=' + this.currentRecord.get('QQCVERS')+ '"enr='+ this.currentRecord.get('QHNQUOT') ,wid,
'height=800,width=getSize().width-10,scrollbars=yes,resizable=yes,toolbar=no,menubar=no,top=180,left=30,location=no,statusbar=no');
Code:
launch : function(){
console.log(Ext.getUrlParam('versienr'));
Ext.Ajax.request({
url : 'vvcall.pgm',
params : {
pgm : 'cmqu11r',
action : 'getRecCop',
quotenr: Ext.getUrlParam('quotenr'),
versienr: Ext.getUrlParam('versienr')
},
Code:
quotenr = vvIn_num('quotenr'); versie = vvIn_char('versienr');
since i had unexplainable result, i did a debug and noticed a strange thing, in the rational developer when looking at the variable in the monitoring window, it shows the correct value, but looking at the same variable in the 'variables' window, it shows the variable with "\na" (new line? ) added..
what is the best way to get parms from the url, or is there some way to strip those ending html chars?
Thierry
Comment