More Header Common

This commit is contained in:
2023-01-23 12:39:25 -07:00
parent aae9cd18b2
commit 38dd477443
3 changed files with 14 additions and 8 deletions

View File

@ -120,9 +120,12 @@ function loadHeaderGridRunHeaders() {
],
columns: [
{ key: "ID", dataType: "number", hidden: true },
{ key: "ToolID", dataType: "number", hidden: true },
{ key: "ToolName", dataType: "string", width: "10%" },
{ key: "Title", dataType: "string", width: "70%" },
{ key: "ToolTypeID", dataType: "number", hidden: true },
{ key: "ToolTypeName", dataType: "string", width: "10%" },
{ key: "Title", dataType: "string", width: "40%" },
{ key: "Reactor", dataType: "string", width: "10%" },
{ key: "RDS", dataType: "string", width: "10%" },
{ key: "PSN", dataType: "string", width: "10%" },
{ key: "InsertDate", dataType: "date", format: "dateTime", width: "20%" }
],
dataSource: headerURL,
@ -139,7 +142,7 @@ function clearFieldsGridRunHeaders() {
function headerSelectionChangedRunHeaders(evt, ui) {
clearFieldsGridRunHeaders();
var rowData = ui.owner.grid.dataSource.dataView()[ui.row.index];
var url = _apiUrl + "/api/tooltypes/" + rowData.ToolID + "/headers/" + ui.row.id + "/fields";
var url = _apiUrl + "/api/tooltypes/" + rowData.ToolTypeID + "/headers/" + ui.row.id + "/fields";
$("#FieldsGrid").igGrid({
autoGenerateColumns: false,
primaryKey: "Column",