dattatable 2.10.99 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/common/itemForm.js +24 -33
- package/dist/dattatable.js +581 -581
- package/dist/dattatable.min.js +1 -1
- package/docs/classes/Accordion.html +2 -2
- package/docs/classes/AuditLog.html +2 -2
- package/docs/classes/CanvasForm.html +2 -2
- package/docs/classes/Comments.html +2 -2
- package/docs/classes/Dashboard.html +4 -4
- package/docs/classes/DataTable.html +3 -3
- package/docs/classes/Documents.html +6 -6
- package/docs/classes/FilterSlideout.html +2 -2
- package/docs/classes/Footer.html +2 -2
- package/docs/classes/Header.html +2 -2
- package/docs/classes/InstallationRequired.html +2 -2
- package/docs/classes/ItemForm.html +4 -4
- package/docs/classes/List.html +4 -4
- package/docs/classes/ListConfig.html +2 -2
- package/docs/classes/ListSecurity.html +2 -2
- package/docs/classes/LoadingDialog.html +2 -2
- package/docs/classes/Modal.html +2 -2
- package/docs/classes/Navigation.html +3 -3
- package/docs/classes/Tiles.html +2 -2
- package/docs/classes/Timeout.html +2 -2
- package/docs/enums/ActionButtonTypes.html +2 -2
- package/docs/functions/formatBytes.html +1 -1
- package/docs/functions/formatDateValue.html +1 -1
- package/docs/functions/formatTimeValue.html +1 -1
- package/docs/functions/getContextInfo.html +1 -1
- package/docs/functions/getFileExt.html +1 -1
- package/docs/functions/waitForTheme.html +1 -1
- package/docs/interfaces/IAccordion.html +2 -2
- package/docs/interfaces/IAccordionProps.html +2 -2
- package/docs/interfaces/IAuditLogItem.html +2 -2
- package/docs/interfaces/IAuditLogItemCreation.html +2 -2
- package/docs/interfaces/IAuditLogProps.html +2 -2
- package/docs/interfaces/IAuditLogViewProps.html +2 -2
- package/docs/interfaces/ICommentsItem.html +2 -2
- package/docs/interfaces/ICreateLookupData.html +2 -2
- package/docs/interfaces/IDashboardProps.html +2 -2
- package/docs/interfaces/IDataTable.html +2 -2
- package/docs/interfaces/IDataTableProps.html +2 -2
- package/docs/interfaces/IDocumentsProps.html +2 -2
- package/docs/interfaces/IFilterItem.html +2 -2
- package/docs/interfaces/IFilterProps.html +2 -2
- package/docs/interfaces/IFooterProps.html +2 -2
- package/docs/interfaces/IGenerateLookupDataProps.html +2 -2
- package/docs/interfaces/IHeaderProps.html +2 -2
- package/docs/interfaces/IInstallProps.html +2 -2
- package/docs/interfaces/IItemFormCreateProps.html +2 -2
- package/docs/interfaces/IItemFormEditProps.html +2 -2
- package/docs/interfaces/IItemFormTab.html +2 -2
- package/docs/interfaces/IItemFormTabInfo.html +2 -2
- package/docs/interfaces/IItemFormViewProps.html +2 -2
- package/docs/interfaces/IListConfig.html +2 -2
- package/docs/interfaces/IListConfigProps.html +2 -2
- package/docs/interfaces/IListProps.html +2 -2
- package/docs/interfaces/IListSecurity.html +2 -2
- package/docs/interfaces/IListSecurityItem.html +2 -2
- package/docs/interfaces/ILookupData.html +2 -2
- package/docs/interfaces/IShowDialogProps.html +2 -2
- package/docs/interfaces/ITiles.html +2 -2
- package/docs/interfaces/ITilesProps.html +2 -2
- package/docs/interfaces/IValidateLookupsProps.html +2 -2
- package/docs/variables/DattaTable.html +1 -1
- package/docs/variables/ListSecurityDefaultGroups.html +1 -1
- package/package.json +2 -2
package/build/common/itemForm.js
CHANGED
|
@@ -530,7 +530,7 @@ var ItemForm = /** @class */ (function () {
|
|
|
530
530
|
_1.LoadingDialog.setHeader("Saving the Item");
|
|
531
531
|
_1.LoadingDialog.setBody((_this.IsNew ? "Creating" : "Updating") + " the Item");
|
|
532
532
|
// Saves the item
|
|
533
|
-
var saveItem_1 = function (values) {
|
|
533
|
+
var saveItem_1 = function (values, retryFl) {
|
|
534
534
|
// If values is null then do nothing. This would happen when the
|
|
535
535
|
// onSave event wants to cancel the save and do something custom
|
|
536
536
|
if (values) {
|
|
@@ -542,46 +542,37 @@ var ItemForm = /** @class */ (function () {
|
|
|
542
542
|
(_this._useModal ? _1.Modal : _1.CanvasForm).hide();
|
|
543
543
|
_1.LoadingDialog.hide();
|
|
544
544
|
}, function (err) {
|
|
545
|
-
//
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
// Log
|
|
565
|
-
console.error("[List Form] Unable to save the item after refreshing the context information.");
|
|
566
|
-
// Call the event
|
|
567
|
-
_this._onSaveError ? _this._onSaveError(err) : null;
|
|
545
|
+
// See if we have already retried to save the item
|
|
546
|
+
if (retryFl) {
|
|
547
|
+
// Log
|
|
548
|
+
console.error("[List Form] Unable to get the context for web.");
|
|
549
|
+
// Call the event
|
|
550
|
+
_this._onSaveError ? _this._onSaveError(err) : null;
|
|
551
|
+
}
|
|
552
|
+
else {
|
|
553
|
+
// Try to get the error message
|
|
554
|
+
try {
|
|
555
|
+
var errorMessage = JSON.parse(err.response).error.message.value;
|
|
556
|
+
// See if the page timed out
|
|
557
|
+
if (errorMessage.indexOf("The security validation for this page is invalid") == 0) {
|
|
558
|
+
// Set the loading dialog
|
|
559
|
+
_1.LoadingDialog.setBody("The page timed out, retrying the request...");
|
|
560
|
+
// Refresh the request digest
|
|
561
|
+
defaultForm.refreshRequestDigest().then(function () {
|
|
562
|
+
// Try to save the item again
|
|
563
|
+
saveItem_1(values, true);
|
|
568
564
|
});
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
console.error("[List Form] Unable to get the context for web.");
|
|
565
|
+
}
|
|
566
|
+
else {
|
|
572
567
|
// Call the event
|
|
573
568
|
_this._onSaveError ? _this._onSaveError(err) : null;
|
|
574
|
-
}
|
|
569
|
+
}
|
|
575
570
|
}
|
|
576
|
-
|
|
571
|
+
catch (_a) {
|
|
577
572
|
// Call the event
|
|
578
573
|
_this._onSaveError ? _this._onSaveError(err) : null;
|
|
579
574
|
}
|
|
580
575
|
}
|
|
581
|
-
catch (_a) {
|
|
582
|
-
// Call the event
|
|
583
|
-
_this._onSaveError ? _this._onSaveError(err) : null;
|
|
584
|
-
}
|
|
585
576
|
});
|
|
586
577
|
}
|
|
587
578
|
};
|