Compare commits

...

5 Commits

4 changed files with 11 additions and 6 deletions

View File

@ -7,7 +7,7 @@ orbs:
executors:
java17:
docker:
- image: 'cimg/openjdk:17.0'
- image: 'cimg/openjdk:17.0.9'
commands:
install_java17:

View File

@ -45,7 +45,7 @@ export default function ExportMenuItem(props: QExportMenuItemProps)
return (
<MenuItem
disabled={!totalRecords}
disabled={totalRecords === 0}
onClick={() =>
{
///////////////////////////////////////////////////////////////////////////////
@ -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]);
}