Compare commits

...

3 Commits

3 changed files with 9 additions and 4 deletions

View File

@ -98,7 +98,7 @@ export default function ExportMenuItem(props: QExportMenuItemProps)
</head>
<body>
Generating file <u>${filename}</u>${totalRecords ? " with " + totalRecords.toLocaleString() + " record" + (totalRecords == 1 ? "" : "s") : ""}...
<form id="exportForm" method="post" action="${url}" >
<form id="exportForm" method="post" action="${url}" enctype="multipart/form-data">
<input type="hidden" name="fields" value="${visibleFields.join(",")}">
<input type="hidden" name="filter" id="filter">
</form>

View File

@ -395,10 +395,10 @@ class FilterUtils
switch (andMoreFormat)
{
case "andNOther":
labels.push(` and ${n} other value${n == 1 ? "" : "s"}.`);
labels.push(` and ${n.toLocaleString()} other value${n == 1 ? "" : "s"}.`);
break;
case "+N":
labels[labels.length-1] += ` +${n}`;
labels[labels.length-1] += ` +${n.toLocaleString()}`;
break;
}
}

View File

@ -93,6 +93,11 @@ class TableUtils
*******************************************************************************/
public static getFieldAndTable(tableMetaData: QTableMetaData, fieldName: string): [QFieldMetaData, QTableMetaData]
{
if(fieldName == null || tableMetaData == null)
{
return ([null, null]);
}
if (fieldName.indexOf(".") > -1)
{
const nameParts = fieldName.split(".", 2);
@ -110,7 +115,7 @@ class TableUtils
return ([tableMetaData.fields.get(fieldName), tableMetaData]);
}
return (null);
return ([null, null]);
}