Troubleshoot Forms
- Last UpdatedJun 25, 2024
- 3 minute read
1. Forms and other pages in the Enterprise Console does not respond when left idle for a long time.
Resolution:
Log on to the Enterprise Console again.
2. In the Safari browser:
-
Tabbing through the forms controls does not focus on the control and skips controls that are rendered as links.
-
Adding records in the Grid view of a Base Form at run-time by pressing the Tab key from the last focused control of the record does not work.
Resolution:
Edit the advanced settings of the Safari browser and select Press Tab to highlight each item on a webpage check box.
3. Adding values of number controls using the Value script appends the numbers instead of summing them up.
// Adding number values without typecasting the values will append the numbers.
instOne = control.findById("N1").value;
instTwo = control.findById("N2").value;
return instOne + instTwo;
Resolution:
Typecast the values of number controls to numeric values before summing them up.
// Typecast the values of number controls to numeric values to sum the numbers.
instOne = control.findById("N1").value;
instTwo = control.findById("N2").value;
if(instOne != "")
instOne = Number(instOne);
if(instTwo != "")
instTwo = Number(instTwo);
return instOne + instTwo;
4. An alert message Unable to get property <column name> of undefined or null reference appears when an item is selected and cleared in the Data Grid control with the Extended Information property set to Yes, and the value in the bound Text control is not cleared.
Resolution:
Script as follows to resolve this issue.
var rowData = control.findById("G1").extendedInformation; // Array
if(rowData.length > 0)
{
control.findById("T1").value = rowData[0].ID;
}
else
{
control.findById("T1").value = ""; // Undefined
}
5. In the On Form Load script, commented statements are executed.
Resolution:
In the JavaScript code, remove the commented statements.
6. In the iOS WorkTask app:
-
Debugger does not work.
-
Form does not render.
Resolution:
In the JavaScript code, remove the debugger statements.
7. In Firefox browser, dialog boxes do not appear after selecting Prevent this page from creating additional dialogs.
Possible Causes:
The Firefox browser provides an option to the user to turn off subsequent dialog boxes if additional dialog boxes are shown within 3 seconds.
Resolution:
Reload the web page and do not select Prevent this page from creating additional dialogs, if it appears again.
8. Data Lookup control shows “T” separator between Date and Time for Date Time data.
Possible Causes:
JSON Date Time data has “T” separator between Date and Time.
Resolution:
Return database column containing Date Time data as string when retrieving date time from the database.
For example, convert LastUpdatedDateTime column from date time to string as follows:
SELECT Id,Name, LastUpdatedDateTime, CONVERT(nvarchar(150), LastUpdatedDateTime,121) AS DisplayUpdatedDateTime FROM Employee
9. When API confirmation message, API Alert message, API Error message, and API warning message are present in one button control, only the first API message is displayed on a surface device.
Possible Causes:
Scripting guidelines to display messages are not followed.
Resolution:
Script as follows to resolve this issue.
SFU.showConfirmation("Test <b>Confirmation</b>", "Confirmation Details:Do you <b>wish</b> to continue?",
function (val)
{
if (val)
{
SFU.showAlert("Continue", "Confirmation Process will be continued.<br/>Please contact admin for more information.",
function ()
{
SFU.showWarning("Test ,<b>Warning</b>", "Warning Details:Do you <b>wish</b> to continue?",
function (val)
{
if (val)
{
SFU.showAlert("Continue", "Warning Process will be continued.<br/>Please contact admin for more information.");
}
});
});
}
});
10. In a form with Data Grid control, at runtime if you select one record, multiple records are checked automatically. Also, the On Selection Change event gets triggered multiple times.
Possible Causes:
In the Data Grid configuration, the Persist Columns selected are not unique.
Resolution:
Ensure that the Persist Columns are unique.
11. Images/Embed Page Content does not load in the Form, and an error is logged in the Browser Console as "Refused to ... because it violates the following Content Security Policy ..."
Possible Cause:
Loading of the images or content in the Embed Page control depends upon the Content Security Policy for the Enterprise Console Web Application.
Resolution:
This applies to images used in controls like Image, RichText, and so on in Forms and Embed Page control with the URL set to a different domain. For more details, refer to Content Security Policy documentation on the W3C website. You can specify the URLs based on the same domain in the Form controls. For images, you can use data-URLs.