// ----------------------------------------------------------- // // ----------------------------------------------------------- function hdfhGridLoad(registry, mainTabDomNodeId) { require(["dojo/ready", "dijit/layout/ContentPane", "dojo/_base/json", "dojo/dom","dojo/dom-style", "dojo/dom-construct", "dojox/widget/Standby"], function(ready, ContentPane, dojo, dom, domStyle, domConstruct, Standby){ // hgrid ContentPane var hgridDomOuterId = mainTabDomNodeId + "_filters"; var hgridDomNodeId = mainTabDomNodeId + "_filters_inner"; if (registry.byId(hgridDomNodeId)) { registry.byId(hgridDomNodeId).destroyRecursive(false); } var hgridDomStandbyId = hgridDomOuterId + "_standby"; registry.byId(hgridDomStandbyId).show(); var hgridDomNode= domConstruct.create("div", {id: hgridDomNodeId}); domConstruct.place(hgridDomNode, hgridDomOuterId, "first"); var hgridPane = new ContentPane({ id: hgridDomNodeId, }, hgridDomNodeId); domStyle.set(dom.byId(hgridDomNodeId), "height", "90%"); domStyle.set(dom.byId(hgridDomNodeId), "width", "99.5%"); dojo.xhrGet({ url: hugmarSettings.host.ifshdrpath, load: function(response, ioArgs) { hdfhGridRender(hgridDomNodeId, hgridDomStandbyId, registry, response); return response; }, error: function(response, ioArgs) { console.log("hdfhGridSet faild xhrGet", response, ioArgs); /* handle the error */ return response; } }); }); return; } // ----------------------------------------------------------- // hdfhGridRender: // ---------------------------------------------------------- function hdfhGridRender(gridDomNodeId, hgridDomStandbyId, registry, gridColString) { //console.log("hdfhGridRender gridColString : ", gridColString); require(["dgrid/List", "dgrid/OnDemandGrid", "dgrid/Selection", "dgrid/Keyboard", "dgrid/Selector", "dgrid/Editor", "dgrid/ColumnSet", "dgrid/extensions/ColumnHider", "dgrid/extensions/ColumnResizer", "dstore/Memory", "dstore/Trackable", "dijit/form/Button", "dijit/form/CheckBox", "dijit/form/DateTextBox", "dijit/form/TimeTextBox", "dijit/form/Select", "dijit/form/FilteringSelect", "dijit/form/ComboBox", "dijit/form/Textarea", "dijit/form/TextBox", "dijit/form/NumberTextBox", "dijit/form/NumberSpinner", "dijit/ProgressBar", "dojo/store/Memory", "dojo/store/Observable", "dojo/data/ObjectStore", "dojo/has", "dojo/_base/declare", "dojo/dom-style", "dojo/number", "dojo/domReady!"], function(List, Grid, Selection, Keyboard, Selector, Editor, ColumnSet, ColumnHider, ColumnResizer, Memory, Trackable, Button, CheckBox, DateTextBox, TimeTextBox, Select, FilteringSelect, ComboBox, Textarea, TextBox, NumberTextBox, NumberSpinner, ProgressBar, DojoMemory, Observable, ObjectStore, has, declare, domStyle, number){ var hgridCol = eval ("(" + gridColString + ")"); //console.log("hdfhGridRender: hgridCol ", hgridCol); var TrackableMemory = declare([Memory, Trackable]); hStoreData = new TrackableMemory({ data: hjsonGridControl.hgridrows, idProperty: 'id' }); var grid = new (declare([Grid, Selection, Keyboard, Editor, ColumnResizer]))({ collection: hStoreData, columns: hgridCol, selectionMode: "none" }, gridDomNodeId); hdfhGridOn(grid, hgridCol); registry.byId(hgridDomStandbyId).hide(); }); return; } // ----------------------------------------------------------- // hdfhGridOn: // ---------------------------------------------------------- function hdfhGridOn(grid, hgridCol) { require(["dojo/_base/lang"], function(lang){ var hgridEnv = lang.clone(hjsonGridControl.env); var hgridMenu = lang.clone(hjsonGridControl.contextmenu); grid.on("dgrid-datachange", function(evt){ console.log("data changed: ", evt.oldValue, " -> ", evt.value); console.log("cell: ", evt.cell, evt.cell.row.id, "evt: ", evt); if (evt.oldValue != evt.value) { var gridCell = {}; gridCell.event = "datachange"; gridCell.rowno = evt.cell.row.id; gridCell.rowid = evt.cell.row.id; gridCell.colname = evt.cell.column.field; gridCell.rrn = "0"; gridCell.value = evt.value; console.log("gridCell: ", gridCell); hdfhGridEditGo(hgridEnv, gridCell); } }); grid.on(".dgrid-row:contextmenu", function(evt){ evt.preventDefault(); // prevent default browser context menu var selectedRow = grid.row(evt).data; var cellId = grid.row(evt).element.id; //console.log("contextmenu: selectedRow ", selectedRow); //console.log("contextmenu: hgridEnv ", hgridEnv); //console.log("contextmenu: hgridMenu ", hgridMenu); hdfhGridMenu(evt, selectedRow, hgridEnv, hgridMenu); // item is the store item }); grid.on(".dgrid-row .dgrid-cell:click", function(evt){ console.log("grid.on cell clicked: grid.cell ", grid.cell); evt.preventDefault(); // prevent default browser context menu var selectedRow = grid.cell(evt).row.data; var selectedCell = grid.cell(evt).column; console.log("cell clicked: selectedRow ", selectedRow); console.log("cell clicked: selectedCell ", selectedCell); if (selectedCell.editorArgs.action) { if (selectedCell.editorArgs.action == "GO") { hdfhGridEditButton(hgridEnv, selectedRow, selectedCell, "GO"); } } // item is the store item }); grid.on(".dgrid-row .dgrid-cell:keyup", function(evt){ if (evt.key === "Enter") { var gridCell = {}; gridCell.event = "Enter"; gridCell.rowno = "row0"; gridCell.rowid = "row0"; gridCell.rrn = "0"; gridCell.colname = evt.selectorTarget.columnId; if (evt.target.value) { gridCell.value = evt.target.value; } else { gridCell.value = evt.target.innerText; } console.log("hdfhGridOn evt: ", evt); console.log("hdfhGridOn gridCell: ", gridCell); hdfhGridEditGo(hgridEnv, gridCell); } }); // Experiments grid.on(".dgrid-content .dgrid-cell:enterUp", function(evt){ console.log("grid.on cell enterUp: grid.cell ", grid.cell); evt.preventDefault(); // prevent default browser context menu var selectedRow = grid.cell(evt).row.data; var selectedCell = grid.cell(evt).column; console.log("cell cellfocusin: selectedRow ", selectedRow); console.log("cell cellfocusin: selectedCell ", selectedCell); //if (selectedCell.editorArgs.action) { // if (selectedCell.editorArgs.action == "GO") { // hdfhGridEditButton(hgridEnv, selectedRow, selectedCell, "GO"); // } //} // item is the store item }); grid.on(".dgrid-header .dgrid-cell:click", function(evt){ var cell = grid.cell(evt); // cell.element == the element with the dgrid-cell class // cell.column == the column definition object for the column the cell is within console.log("grid.on .dgrid-header .dgrid-cell:click cell.element: ", cell.element); console.log("grid.on .dgrid-header .dgrid-cell:click cell.column: ", cell.column); }); grid.on(".dgrid-header .dgrid-cell:contextmenu", function(evt){ var cell = grid.cell(evt); evt.preventDefault(); // prevent default browser context menu // cell.element == the element with the dgrid-cell class // cell.column == the column definition object for the column the cell is within // cell.row == the same object obtained from grid.row(evt) console.log("grid.on .dgrid-header .dgrid-cell:contextmenu cell.column: ", cell.column); console.log("grid.on .dgrid-header .dgrid-cell:contextmenu hjsonGridControl: ", hjsonGridControl); if (hjsonGridControl.env.cltype == "RPGILE") { hdfhGridHdrContextRpg(cell.column.id, dgridCol); } else { //hdfhGridHdrClickStd(cell.column); } }); grid.on("dgrid-columnresize", function(evt){ var evtGrid = evt.grid; console.log("grid.on columnresize evtGrid: ", evtGrid); var columnId = evt.columnId; console.log("grid.on columnresize columnId: ", columnId); var width = evt.width; console.log("grid.on columnresize width: ", width); var parentType = evt.parentType; console.log("grid.on columnresize parentType: ", parentType); }); }); return; } // ----------------------------------------------------------- // Context Menu Experiment // ----------------------------------------------------------- function hdfhGridMenu(evt, selectedRow, hgridEnv, hgridMenu) { require(["dijit/Menu", "dijit/MenuItem", "dijit/registry", "dojo/dom", "dojo/dom-construct", "dojo/domReady!"], function(Menu, MenuItem, registry, dom, domConstruct){ var menuNode = domConstruct.create("div", {id: "hdmContextMenu_" + hgridEnv.tab}); var contextMenu; contextMenu = new Menu({ targetNodeIds: [menuNode] }); for (var i = 0; i < hgridMenu.length; i++) { contextMenu.addChild(new MenuItem({ label: hgridMenu[i].cap, iconClass: hgridMenu[i].icon, onClick: function(evt) { for (var j = 0; j < hgridMenu.length; j++) { if (hgridMenu[j].cap == evt.target.innerHTML) { if (hgridMenu[j].idx == "SQL") { console.log("hdfhGridMenu Selected SQL: ", evt.target.innerHTML); alert ("Context Menu Selected SQL"); hdfhGridMenuSqlDrill(registry, dom, j, selectedRow, hgridEnv, hgridMenu); } else { //console.log("hdfhGridMenu Selected Item: ", evt.target.innerHTML); //alert ("hdfhGridMenu: ContextMenu Selected Item"); hdfhGridMenuGo(registry, dom, j, selectedRow, hgridEnv, hgridMenu); } return; } } console.log("hdfhGridMenu evt onClick: ", evt); alert ("Context Menu"); } })); } contextMenu.startup(); dojo.connect(contextMenu, 'onClose', function() { contextMenu.uninitialize(); }); contextMenu._openMyself(evt); // spot of bother return; }); } // ----------------------------------------------------------- // hdfhGridMenuGo: Select Menu Option from Context Menu // ----------------------------------------------------------- function hdfhGridMenuGo(registry, dom, idx, selectedRow, hgridEnv, hgridMenu) { console.log("hdfhGridMenuGo selectedRow: ", selectedRow); var jsCaller = "hdfhGridMenuGo"; var jsonObj = {}; switch (hgridMenu[idx].func) { case '*CUSTOM': jsonObj = hdfiServerSetJsonObj(jsCaller,"HWEBV2MD","HWEBV2MD"); break; case 'iProgram': jsonObj = hdfiServerSetJsonObj(jsCaller,"ILEPGM" ,"CE_Parms"); break; default: jsonObj = hdfiServerSetJsonObj(jsCaller,"HWEBNAEB1","EB1_Parms"); } jsonObj.procparm = " "; jsonObj.gridenv = hgridEnv; jsonObj.gridenv.gridheight = "100"; jsonObj.gridenv.gridwidth = "100"; if (selectedRow.id) { jsonObj.gridenv.rowno = selectedRow.id; } else { jsonObj.gridenv.rowno = selectedRow.rrn - 1; } jsonObj.gridmenu = hgridMenu[idx]; jsonObj.gridrow = selectedRow; console.log("hdfhGridMenuGo jsonObj: ", jsonObj); require(["dojo/ready", "dojo/_base/json"], function(ready, dojo){ var jsonUrl = hugmarSettings.host.pgmdir + "/hwebhtp120.pgm?json=" + dojo.toJson(jsonObj); console.log("hdfhGridMenuGo jsonUrl: ", jsonUrl); if (hgridMenu[idx].type == "maint") { hdfhEdit(jsonUrl); } else { hdfiServerGet(jsCaller, jsonUrl); } }); return; } // ----------------------------------------------------------- // // ----------------------------------------------------------- function hdfhGridMenuRsp(registry, dom, response) { console.log("hdfhGridMenuRsp response: ", response); if (response.msgtype == "JSONGRID") { hugmarSettings.host.ifsctlpath = response.ifsctlpath; hugmarSettings.host.ifscolpath = response.ifscolpath; hugmarSettings.host.ifsgridpath = response.ifsgridpath; hugmarSettings.host.ifshdrpath = response.ifshdrpath; hugmarSettings.host.ifshtmlpath = response.ifshtmlpath; hdfTopCtl(registry, dom); return; } // Needs further work rspText = response; var rspArray = rspText.split('~'); var elemCnt = rspArray.length / 2; var tempSev = null; var j = 0; var k = 1; for (var i=0; i" + "
" + "
" + "
" + "
" + "
" + ""; if (dijit.byId("hdmGridColHdrDialog")) { dijit.byId("hdmGridColHdrDialog").destroyRecursive(false); } var colHdrDialog = new dijit.Dialog({ title: "Set Filter: ", id: "hdmGridColHdrDialog", style: "width: 400px", content: colHdrContent}); colHdrDialog.show(); // Form Heading dojo.addClass("hdmGridColHdrHeading","gridHdrInfoHeading"); dojo.byId("hdmGridColHdrHeading").innerHTML = "Filter for: " + hjsonCol.label; hdfhGridHdrButtons(); //console.log("hdfhGridHdrClickRpg(2) hjsonCol.filt1: ", hjsonCol.filt1); if (typeof hjsonCol.filt1 === "undefined") {return}; //console.log("hdfhGridHdrClickRpg(3) hjsonCol: ", hjsonCol); // Filter 1 (From) dojo.addClass("hdmGridColHdrFilt1Label","gridHdrInfoLabel"); dojo.byId("hdmGridColHdrFilt1Label").innerHTML = "Filter From"; if (dijit.byId("hdmGridColHdrFilt1")) { dijit.byId("hdmGridColHdrFilt1").destroyRecursive(false); } var hgridColHdrFilt1 = new dijit.form.TextBox({ value: hjsonCol.filt1, id: "hdmGridColHdrFilt1", style: "width:100px", onChange: function(evt) { hjsonCol.filt1 = hgridColHdrFilt1.get("value"); return; } }, "hdmGridColHdrFilt1"); // Filter 2 (To) dojo.addClass("hdmGridColHdrFilt2Label","gridHdrInfoLabel"); dojo.byId("hdmGridColHdrFilt2Label").innerHTML = "Filter To"; if (dijit.byId("hdmGridColHdrFilt2")) { dijit.byId("hdmGridColHdrFilt2").destroyRecursive(false); } var hgridColHdrFilt2 = new dijit.form.TextBox({ value: hjsonCol.filt2, id: "hdmGridColHdrFilt2", style: "width:100px", onChange: function(evt) { hjsonCol.filt2 = hgridColHdrFilt2.get("value"); return; } }, "hdmGridColHdrFilt2"); return; } // ----------------------------------------------------------- // hdfhGridHdrClickStd: // ----------------------------------------------------------- function hdfhGridHdrClickStd(evt, hjsonCol) { for (var i=0; i" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
"; if (dijit.byId("hdmGridColHdrDialog")) { dijit.byId("hdmGridColHdrDialog").destroyRecursive(false); } var colHdrDialog = new dijit.Dialog({ title: "Column Attributes: ", id: "hdmGridColHdrDialog", style: "width: 400px", content: colHdrContent}); colHdrDialog.show(); // Form Heading dojo.addClass("hdmGridColHdrHeading","gridHdrInfoHeading"); dojo.byId("hdmGridColHdrHeading").innerHTML = evt.target.textContent; // Column Heading 1 dojo.addClass("hdmGridColHdrHdr1Label","gridHdrInfoLabel"); dojo.byId("hdmGridColHdrHdr1Label").innerHTML = "Column Headings"; if (dijit.byId("hdmGridColHdrHdr1")) { dijit.byId("hdmGridColHdrHdr1").destroyRecursive(false); } var hgridColHdrHdr1 = new dijit.form.TextBox({ value: hjsonCol.chd1, id: "hdmGridColHdrHdr1", style: "width:100px", onChange: function(evt) { hjsonCol.chd1 = hgridColHdrHdr1.get("value"); return; } }, "hdmGridColHdrHdr1"); // Column Heading 2 dojo.addClass("hdmGridColHdrHdr2Label","gridHdrInfoLabel"); dojo.byId("hdmGridColHdrHdr2Label").innerHTML = "- - - - - - - - "; if (dijit.byId("hdmGridColHdrHdr2")) { dijit.byId("hdmGridColHdrHdr2").destroyRecursive(false); } var hgridColHdrHdr2 = new dijit.form.TextBox({ value: hjsonCol.chd2, id: "hdmGridColHdrHdr2", style: "width:100px", onChange: function(evt) { hjsonCol.chd2 = hgridColHdrHdr2.get("value"); return; } }, "hdmGridColHdrHdr2"); // Column Heading 3 dojo.addClass("hdmGridColHdrHdr3Label","gridHdrInfoLabel"); dojo.byId("hdmGridColHdrHdr3Label").innerHTML = "- - - - - - - -"; if (dijit.byId("hdmGridColHdrHdr3")) { dijit.byId("hdmGridColHdrHdr3").destroyRecursive(false); } var hgridColHdrHdr3 = new dijit.form.TextBox({ value: hjsonCol.chd3, id: "hdmGridColHdrHdr3", style: "width:100px", onChange: function(evt) { hjsonCol.chd3 = hgridColHdrHdr3.get("value"); return; } }, "hdmGridColHdrHdr3"); hdfhGridHdrButtons(); if (hjsonCol.fldtype == "A") {return}; // Character String if (hjsonCol.fldtype == "D") {return}; // Date if (hjsonCol.fldtype == "T") {return}; // Time if (hjsonCol.fldtype == "Z") {return}; // Time Stamp // Decimal Places dojo.addClass("hdmGridColHdrDecLabel","gridHdrInfoLabel"); dojo.byId("hdmGridColHdrDecLabel").innerHTML = "Decimal Places"; if (dijit.byId("hdmGridColHdrDec")) { dijit.byId("hdmGridColHdrDec").destroyRecursive(false); } var hgridColHdrDec = new dijit.form.NumberSpinner({ value: hjsonCol.dec, smallDelta: 1, constraints: { min: 0, max: 8, places: 0 }, id: "hdmGridColHdrDec", style: "width:100px", onChange: function(evt) { hjsonCol.dec = hgridColHdrDec.get("value"); return; } }, "hdmGridColHdrDec"); // Division Factor dojo.addClass("hdmGridColHdrDivLabel","gridHdrInfoLabel"); dojo.byId("hdmGridColHdrDivLabel").innerHTML = "Division Factor"; if (dijit.byId("hdmGridColHdrDiv")) { dijit.byId("hdmGridColHdrDiv").destroyRecursive(false); } var hgridColHdrDiv = new dijit.form.NumberSpinner({ value: hjsonCol.div, smallDelta: 1, constraints: { min: 0, max: 6, places: 0 }, id: "hdmGridColHdrDiv", style: "width:100px", onChange: function(evt) { hjsonCol.div = hgridColHdrDiv.get("value"); return; } }, "hdmGridColHdrDiv"); return; } // ----------------------------------------------------------- // // ----------------------------------------------------------- function hdfhGridHdrButtons() { var hdrButton = dijit.byId("hdmGridColHdrBut0"); if (dijit.byId(hdrButton)) { hdrButton.destroyRecursive(true); } hdrButton = dijit.byId("hdmGridColHdrBut1"); if (dijit.byId(hdrButton)) { hdrButton.destroyRecursive(true); } var parNode = dojo.byId("hdmGridColHdrButtons"); parNode.innerHTML = " "; //console.log("hdfhGridHdrButtons parNode: ", parNode); // Confirm var butNode = document.createElement("span"); butNode.id = "hdmGridColHdrBut0"; parNode.appendChild(butNode); hdfhGridHdrOneBut("hdmGridColHdrBut0", "Confirm", "gif38", "confirm", "Confirm Column Changes"); // Cancel butNode = document.createElement("span"); butNode.id = "hdmGridColHdrBut1"; parNode.appendChild(butNode); hdfhGridHdrOneBut("hdmGridColHdrBut1", "Cancel", "gif33", "cancel", "Cancel Column Changes"); return; } // ----------------------------------------------------------- // // ----------------------------------------------------------- function hdfhGridHdrOneBut(domID, label, icon, action, title) { var hdrButton = dijit.byId(domID); if (dijit.byId(hdrButton)) { hdrButton.destroyRecursive(true); } var dom = dojo.byId(domID); hdrButton = new dijit.form.Button({ label: label, iconClass: icon, jsId: action, onClick: function(evt) { var butNode = dijit.getEnclosingWidget(evt.target); //console.log("hdfhGridHdrOneBut onClick butNode: ", butNode); hdfhGridHdrConfirm(butNode.jsId); }, title: title}, dom); } // ----------------------------------------------------------- // // ----------------------------------------------------------- function hdfhGridHdrConfirm(actionType) { if (actionType == "cancel") { if (dijit.byId("hdmGridColHdrDialog")) { dijit.byId("hdmGridColHdrDialog").destroyRecursive(false); } return; } var jsCaller = "hdfhGridHdrConfirm"; var jsonObj = {}; switch (hjsonGridControl.env.cltype) { case 'RPGILE': jsonObj = hdfiServerSetJsonObj(jsCaller,"ILEPGM","CE_GridHdrConfirm"); break; default: jsonObj = hdfiServerSetJsonObj(jsCaller,"HWEBV2BG5","BG5_GridHdrConfirm"); } jsonObj.procparm = "colchange"; jsonObj.gridcol = hjsonCol; jsonObj.gridenv = hjsonGridControl.env; jsonObj.gridenv.gridheight = "100"; jsonObj.gridenv.gridwidth = "100"; //console.log("hdfhGridHdrConfirm jsonObj: ", jsonObj); //alert("hdfhGridHdrConfirm Debug jsonObj: Check Console"); var jsonUrl = hugmarSettings.host.pgmdir + "/hwebhtp120.pgm?json=" + dojo.toJson(jsonObj); //console.log("hdfhGridHdrConfirm jsonUrl: ", jsonUrl); //alert("hdfhGridHdrConfirm Debug jsonUrl: Check Console"); hdfiServerGet(jsCaller, jsonUrl); return; } // ----------------------------------------------------------- // // ----------------------------------------------------------- function hdfhGridHdrConfirmRsp(registry, dom, jsonResponse) { if (dijit.byId("hdmGridColHdrDialog")) { dijit.byId("hdmGridColHdrDialog").destroyRecursive(false); } if (hjsonGridControl.env.cltype == "RPGILE") { hdfAccMenuAppsGoRsp(registry, dom, jsonResponse); // Refresh Grid } else { return; } } // ----------------------------------------------------------- // hdfhGridEditGo: Edit one Cell // ----------------------------------------------------------- function hdfhGridEditGo(hgridEnv, gridCell) { console.log("hdfhGridEditGo gridCell: ", gridCell); require(["dojo/ready", "dojo/json", "dijit/registry"], function(ready, json, registry){ var jsCaller = "hdfhGridEditGo"; var jsonObj = hdfiServerSetJsonObj(jsCaller,hgridEnv.type,"hgridedit"); if (hgridEnv.origin == "hugmar") { jsonObj.procid = "hgridEditCell"; } jsonObj.procid = "hdrgrid"; jsonObj.procparm = "hgridedit"; jsonObj.gridenv = hgridEnv; jsonObj.gridenv.gridheight = "100"; jsonObj.gridenv.gridwidth = "100"; jsonObj.gridenv.event = gridCell.event; jsonObj.gridenv.rowno = gridCell.rowno; jsonObj.gridenv.colname = gridCell.colname; jsonObj.gridenv.cellvalue = globalModifyCell(gridCell.value); jsonObj.gridrow = {}; jsonObj.gridrow.id = gridCell.rowno; jsonObj.gridrow.rrn = gridCell.rrn; jsonObj.gridrow.zzfiller = " "; console.log("hdfhGridEditGo jsonObj: ", jsonObj); registry.byId("hdmMainStandby").show(); var jsonUrl = hugmarSettings.host.pgmdir + "/hwebhtp120.pgm?json=" + json.stringify(jsonObj) hdfiServerGet(jsCaller, jsonUrl); }); return; } //----------------------------------------------------------- //hdfhGridEditButton: Execute Header Grid Button //----------------------------------------------------------- function hdfhGridEditButton(hgridEnv, gridRow, gridCell, newCellValue) { console.log("hdfhGridEditButton gridRow: ", gridRow); console.log("hdfhGridEditButton gridCell: ", gridCell); require(["dojo/ready", "dojo/json", "dijit/registry"], function(ready, json, registry){ var jsCaller = "hdfhGridEditGo"; var jsonObj = hdfiServerSetJsonObj(jsCaller,hgridEnv.type,"hgridedit"); if (hgridEnv.origin == "hugmar") { jsonObj.procid = "hgridEditCell"; } jsonObj.procparm = "hgridedit"; jsonObj.gridenv = hgridEnv; jsonObj.gridenv.gridheight = "100"; jsonObj.gridenv.gridwidth = "100"; jsonObj.gridenv.rowno = gridRow.id; jsonObj.gridenv.colname = gridCell.field; jsonObj.gridenv.cellvalue = globalModifyCell(newCellValue); jsonObj.gridrow = {}; jsonObj.gridrow.id = gridRow.id; jsonObj.gridrow.rrn = "none"; jsonObj.gridrow.zzfiller = " "; console.log("hdfhGridEditButton jsonObj: ", jsonObj); //registry.byId("hdmMainStandby").show(); //var jsonUrl = hugmarSettings.host.pgmdir + "/hwebhtp120.pgm?json=" + json.stringify(jsonObj) //hdfiServerGet(jsCaller, jsonUrl); }); return; } // ----------------------------------------------------------- // hdfhGridTestFormatter: Create WebLink // ----------------------------------------------------------- function hdfhGridCellFmtWebLink(item){ var image = 'Web"; var newData = image + " " + webLink + " " + onClick + " " + http; //console.log(newData); return newData; } // ----------------------------------------------------------- // hdfhGridCellRender: renderCell test // ----------------------------------------------------------- function hdfhGridCellRender(object, value, cell, options){ var div = document.createElement("div"); div.innerHTML = "Web"; return div; } // --------------------------------------------------------------- // hdfhGridCellNewWindow: Open New Window // --------------------------------------------------------------- function hdfhGridCellNewWindow(windowUrl,windowName, windowFeat) { newWindow = window.open(windowUrl,windowName,windowFeat); if (newWindow != null) { newWindow.focus(); } } // --------------------------------------------------------------- // hdfhGridCellLink: Open Any Document in New Window // --------------------------------------------------------------- function hdfhGridCellLink(windowUrl, windowName) { newWindow = window.open(windowUrl, windowName," "); if (newWindow != null) { newWindow.focus(); } }