There may be possibility in some forms to show the records in bold & colors based on the conditions.
CurrForm."No.".UPDATEFONTBOLD(Condition);
CurrForm."No.".UPDATEFORECOLOR(Condition);
While converting this form to page using Transformation Tool, we will face compilation errors in page because same code is moved into the pages.
After the R&D, I found CodeRules.txt in the Transformation Tool does not have proper rules to transform the above kind of code in to pages.
For Example:
For CurrForm.”No.”.ENABLED(Condition), it is working properly because of the following marked code rules.
- <find>
- !currForm!.!var1!.ENABLED :=
- <declareVariable>
- !var1!Enable
- <declareVariableType>
- Boolean INDATASET
- <replace>
- !declaredVariable! :=
- <moveValueToProperty>
- !declaredVariable!
- <movePropertyToControlName>
- !var1!
- <moveToProperty>
- Enabled
- <comment>
But for Currform.”No.”.UPDATEFONTBOLD(Condition), it is not working because there are not code rules for <moveValueToProperty> <movePropertyToControlName> <moveToProperty>
- <find>
- IF !var1! <> !var1!::!var2! THEN
- !currForm!.!var3!.UPDATEFONTBOLD := TRUE;
- <replace>
- !currForm!.!var3!.UPDATEFONTBOLD := !var1! <> !var1!::!var2!;
- <find>
- !currForm!.!var1!.UPDATEFONTBOLD :=
- <declareVariable>
- !var1!Emphasize
- <declareVariableType>
- Boolean INDATASET
- <replace>
- !declaredVariable! :=
- <comment>
Solution: Either we should change the code rules or modify the page manually.
No comments:
Post a Comment