What Can Be Customized?
All references and representation references are customizable (instances are not customizable).
A different customization can be defined for different customized types, e.g. VPMReference and DELFmiFunctionReference.
What Can Be Customized?All references and representation references are customizable (instances are not customizable). A different customization can be defined for different customized types, e.g. VPMReference and DELFmiFunctionReference. How to CustomizeFirst, define a family that will allow a rule to be rerouted according to object type. The family is a CATRuleExit file, this file must be located in the
following runtime view directory:
The rule is a CATRule file, this file must be located in the following
runtime view directory:
These script files must be located in the following runtime view
directory:
Syntax Two Keywords are to be used in family files:
After that, in your CATRule file, you can condition the information you send by using following items:
In the CATRule files: This object represents the customized object on which attributes need to be accessed so as to define rule. If a rule is validated, it is via the above parameters (MyColor, IconMask) that the customization will be retrieved (parameters is an internal Keyword enabling access to attributes).
Note:
The icon mask must be a png file, located in the runtime view (
<os>\resources\graphic\icons). The size of an icon mask should be 10*10
pixels.
Refresh Management The attributes used in a rule so as to manage the Background color or the icon mask can change in the session. In some cases, their modifications are immediately taken into account:
But in other cases, the only way to guarantee refreshed (up-to-date) information is to do an expand. Tree Color SampleThe displayed nodes of a tree will have a background color driven by rules based on attributes. Here is a customization sample based on script files (*.CATRuleExit and *.CATRule): Finders_DSCustomization.CATRuleExit <Scripts> <!-- --> <Script OpeningID="ManageColor" Type="VPMReference" ScriptName="Finders_Color_Custo"/> <Script OpeningID="ManageColor" Type="VPMRepReference" ScriptName="Finders_Color_Custo"/> <Script OpeningID="ManageColor" Type="RFLVPMLogicalReference" ScriptName="Finders_Color_Custo"/> <Script OpeningID="ManageColor" Type="DELFmiFunctionReference" ScriptName="Finders_Color_Custo"/> </Scripts> Finders_Color_Custo.CATRule let UserId(String) UserId = Parameters->GetAttributeString("UserID") if (UserId == "...") Parameters->SetAttributeString("MyColor","0|255|255") else Parameters->SetAttributeString("MyColor","255|255|0") Icon Mask SampleThe displayed nodes of a tree will have icon masks driven by rules based on attributes. Here is a customization sample based on script files (*.CATRuleExit and *.CATRule): Finders_DSCustomization.CATRuleExit
<Scripts> <!-- --> <Script OpeningID="ManageMask" Type="VPMReference" ScriptName="Finders_Mask_Custo"/> <Script OpeningID="ManageMask" Type="VPMRepReference" ScriptName="Finders_Mask_Custo"/> <Script OpeningID="ManageMask" Type="RFLVPMLogicalReference" ScriptName="Finders_Mask_Custo"/> <Script OpeningID="ManageMask" Type="DELFmiFunctionReference" ScriptName="Finders_Mask_Custo"/> </Scripts> Finders_Mask_Custo.CATRule
Parameters->SetAttributeString("IconMask","I_TP") ConsiderationsThe following points must be taken into consideration:
|