I have added a checkbox to a grid. The user can then select the accounts to merge the account data with the selected Word template.
Here is my HTML code to call my program and pass the information to process.
Here is my header in Google Chrome.
Why is postRecs not showing up properly?
Thanks in advance.
Here is my HTML code to call my program and pass the information to process.
Code:
var MultipleMergeDocument = function(){ var recs = mainPRMCLTLISTGrid.getSelectionModel().getSelections(); var postRecs = []; Ext.iterate(recs, function(rec){ var obj = { PMID: rec.data.PMID }; postRecs.push(obj); }); PEID = Ext.getCmp('DOCUMENTM').getValue(); Ext.DomHelper.append(document.body, { tag: 'iframe', frameBorder: 0, width: 0, height: 0, css: 'display:none;visibility:hidden;height:1px;', src: 'vvcall.pgm?sid=' + sid + '&opt=' + opt + '&pgm=prmergemb&action=mergeDocument&PEID=' + PEID + '&postRecs=' + Ext.encode(postRecs) }); Ext.getCmp('MultipleMergeWindow').hide(); parent.showMessage('', '<b><center>Your document will be available shortly<\/b><\/center>'); };
Code:
sid:7035632B81E6B6E759BA466401E00F8625EF2C41F69CE0F3A6E512C7F1D9C477 opt:1059 pgm:prmergemb action:mergeDocument PEID:1 postRecs:[{
Thanks in advance.
Comment