Salesforce

Display Form Troubleshooting (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

Display Form Troubleshooting (Magic xpa 3.x)

Q1

Why can't I link a Table control to a Tab control?

A1

A Table control cannot be attached to a Tab control. If you need to have a Table control on a specific tab, you can do the following:

  1. Use the Table control's Visible property to calculate the tab's position and display the table accordingly.

  2. Place a Subform control on the required tab of the Tab control. Then, use a program/task that displays the Table control on this Subform control.

Q2

Why can't I place a Table control on a Tab control?

Q2

A Table control cannot be placed on a Tab control using the mouse (Since version: 3.0). If you want to have a Table control on a Tab control, place the Table control on the form and move it onto the Tab control using the arrow keys. However, the controls will not be linked.

Q3

Why can't I see the Command palette?

A3

The Command palette was replaced with the Layout toolbar (Since version: 3.0). If you do not see it, right click on the toolbar area and select the Layout option.

Q4

I have a parent task with a Subform control that causes the program to hang and go into a loop. Why is this happening?

A4

If you a parent task with an empty dataview and a subform in it, the cursor parks on the Subform control. If there is a condition for the Subform control not to display if the parent task has an empty dataview (such as setting the Subform control's visibility to 'FALSE'LOG), the program hangs and goes into a loop. This is because the subtask is still parkable, that is, Allow Parking=Yes.

To solve this, specify a condition for the Allow Parking property and a Visibility condition for the Subform control.

Q5

Why is my UTF8 string not displaying properly on the screen?

A5

Sometimes you get a UTF8 string from an external source, such as a Web Service or a text file. In order to see the UTF8 strings, you should convert it to ANSI and then convert the ANSI value to a Unicode format.

In order to do this, you need to have the UTF8ToAnsi function embedded in the UnicodeFromANSI function. The syntax would be, for example, UnicodeFromANSI(UTF8ToAnsi(A),936). In this example, A is the BLOB Binary variable containing the UTF8 string and 936 is the codepage of the string, Chinese in this case.

This only works when the data contains one language.

Q6

Why aren’t controls refreshed when rights are assigned to their Visible property?

A6

Expressions that are attached to control properties are not evaluated all the time but only when there is a recompute.

To solve this, define Boolean variables and assign these variables to the controls' Visible property. During logon, update the variables with expressions (Rights(<user_right>). This will cause a recompute and the controls will refresh.

Reference
Attachment 
Attachment