Two issues re. using pre-configured pages.
I enabled debug mode using the browser console. I then pressed Ctrl-F5 (cache reload) on an open process designer page, and tried to load the setup area of a pre-configured page element in the right hand panel. It wouldn't load, the cursor just hung loading. I then disabled debug mode and pressed Ctrl-F5 in the process designer window again. The setup area of the pre-configured page element then loaded fine.
More problematic was the following while adding a button to run a process that opened a pre-configured page. Using the debugger to step through a function that called the process with 'ProcessModuleUtilities', the configuration of the process call itself having a callback function for when the process had finished. The debugger reported that the callback function was being called before the process had run and pre-configured page closed, not after.
define("ContactPageV2", ["ProcessModuleUtilities", "MaskHelper"], function(ProcessModuleUtilities, MaskHelper) {
return {
entitySchemaName: "Contact",
attributes: {},
modules: /**SCHEMA_MODULES*/{}/**SCHEMA_MODULES*/,
details: /**SCHEMA_DETAILS*/{}/**SCHEMA_DETAILS*/,
businessRules: /**SCHEMA_BUSINESS_RULES*/{}/**SCHEMA_BUSINESS_RULES*/,
methods: {
onProcessCallbackTestButtonClick: function () {
debugger;
const config = {
sysProcessName: "UsrPreconfiguredPage",
callback: function() {
debugger;
Terrasoft.showInformation("The process has completed.");
MaskHelper.HideBodyMask();
},
scope: this
};
ProcessModuleUtilities.executeProcess(config);
}
},
dataModels: /**SCHEMA_DATA_MODELS*/{}/**SCHEMA_DATA_MODELS*/,
diff: /**SCHEMA_DIFF*/[
{
"operation": "insert",
"name": "ProcessCallbackTestButton",
"values": {
"itemType": 5,
"caption": "Process Callback Test",
"style": "blue",
"click": {
"bindTo": "onProcessCallbackTestButtonClick"
}
},
"parentName": "LeftContainer",
"propertyName": "items",
"index": 7
},
{
"operation": "merge",
"name": "JobTabContainer",
"values": {
"order": 2
}
},
{
"operation": "merge",
"name": "HistoryTab",
"values": {
"order": 5
}
},
{
"operation": "merge",
"name": "NotesAndFilesTab",
"values": {
"order": 6
}
},
{
"operation": "merge",
"name": "ESNTab",
"values": {
"order": 7
}
}
]/**SCHEMA_DIFF*/
};
});