We are using Valence 3, and I've used the extjs4 scripts.
I'm trying to use the standard fnExportToCSV function as seen here...
In my console on chrome, I'm getting the error: Uncaught ReferenceError: sid is not defined.
Any advice to get this working properly? If I remove the sid part of the URL, the next error I get says that app is undefined.
Thanks,
Chris
Code:
<script type="text/javascript" src="/extjs4/ext-all.js"></script> <script type="text/javascript" src="/vvresources/valence-extjs4.js"></script>
Code:
function fnExportToCSV(){ var tb = Ext.getCmp('mainIVLCCYGrid').getDockedItems(); if (!dsMainIVLCCYGrid.sortInfo) { //var sortFld = ''; //var sortDir = ''; } else { sortFld = dsmainIVLCCYGrid.sortInfo.field; sortDir = dsmainIVLCCYGrid.sortInfo.direction; } 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 + '&app=' + app + '&pgm=IVLCCY&action=getCSV&limit=' + tb.pageSize + '&start=' + tb.cursor + '&sort=' + sortFld + '&dir=' + sortDir }); }
Any advice to get this working properly? If I remove the sid part of the URL, the next error I get says that app is undefined.
Thanks,
Chris
Comment