• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Ext.DomHelper.append and vvIn_JSON ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Ext.DomHelper.append and vvIn_JSON ?

    I have a working Ajax.request that receives as one of it's parms a JSON string of params so that on the back-end, this works:
    vvIn.variableName = 'imagelist';
    vvIn.fieldName = 'imageid';
    vvIn.totalSize = %size(imageIDs:*all);
    vvIn.elementSize = %size(ImageIDs);
    numElements = vvIn_JSON(vvIn:%addr(ImageIDs));

    the result of the Ajax request creates a PDF file on the IFS and returns the path to it so that I can show it in a window.

    Instead, I need to to create the ability to "download" the PDF. I have done this using Ext.DomHelper, but....
    I can't figure out how to pass in the parm that is an array encoded in JSON using Ext.encode(array)

    I'm trying to use the following:

    Code:
    Ext.DomHelper.append(document.body, {
    tag: 'iframe',
    frameBorder: 0,
    width: 0,
    height: 0,
    css: 'display:none;visibility:hidden;height:1px;',
    src: 'vvcall.pgm?sid=' + sessionStorage.sid + '&app=' + Ext.getUrlParam('app') + '&pgm=mcbcivil&action=getMultiView&imagelist=' + imageIDs + '&casenbr=' + casenbr
    });
    the imagelist parm is an array and, of course, it doesn't work.

    can this be done? must be an "advance technique" ;)
Working...
X