I've tried to send a pdf file to the front end via the below code, it needs to get an ID from the front end then output the related PDF.
Front end code: ('12345' is to simplify the sample code, it will be a variable in real life)
var GetPDF = function() {
Ext.core.DomHelper.append(document.body,{
tag: 'iframe',
frameBorder: 0,
width: 0,
height: 0,
css: 'display:none;visibility:hidden;height:1px;',
src: 'pgm0001.pgm?&id=12345'
});
};
The program I am having is that when I do "id = vvIn_Num('id')" in my backend rpg program(pgm0001), it always gives me value of 0.
Could you let me know what the right way to do it?
Thanks,
Dan
Front end code: ('12345' is to simplify the sample code, it will be a variable in real life)
var GetPDF = function() {
Ext.core.DomHelper.append(document.body,{
tag: 'iframe',
frameBorder: 0,
width: 0,
height: 0,
css: 'display:none;visibility:hidden;height:1px;',
src: 'pgm0001.pgm?&id=12345'
});
};
The program I am having is that when I do "id = vvIn_Num('id')" in my backend rpg program(pgm0001), it always gives me value of 0.
Could you let me know what the right way to do it?
Thanks,
Dan
Comment