Søg i ofte stillede spørgsmål
How to pass mimic parameters in in a hyperlink
DISCLAIMER
The example below is intended to demonstrate one or more features or methods and is presented as a configuration example only. Schneider Electric assumes no liability for the use or application of this example or any portion thereof.
Mimic parameters can be passed via hyperlink. The format for passing a value to a parameter in a mimic is the following:
SCX:////CMimic/.MimicName#Param1="Value of first parameter"&Param2="Value of second parameter"
where:
SCX:////CMimic/.MimicName is a reference to the mimic that is being called and contains the parameters;
#Param1="Value of first parameter" is the name of the first parameter, followed by the value enclosed in double quotes. The first parameter name is always preceded by the hash (#) character;
&Param2="Value of second parameter" is the name of the second parameter, followed by the value enclosed in double quotes. From the second parameter on, the parameter name is always preceded by the ampersand (&) character;
Note: If the parameters are going to be used in mimic script that runs when the user navigates to the mimic, use them in the "Mimic_Navigate" sub-routine, not the "Mimic_Load" one:
Public Sub Mimic_Navigate
The example below is intended to demonstrate one or more features or methods and is presented as a configuration example only. Schneider Electric assumes no liability for the use or application of this example or any portion thereof.
Mimic parameters can be passed via hyperlink. The format for passing a value to a parameter in a mimic is the following:
SCX:////CMimic/.MimicName#Param1="Value of first parameter"&Param2="Value of second parameter"
where:
SCX:////CMimic/.MimicName is a reference to the mimic that is being called and contains the parameters;
#Param1="Value of first parameter" is the name of the first parameter, followed by the value enclosed in double quotes. The first parameter name is always preceded by the hash (#) character;
&Param2="Value of second parameter" is the name of the second parameter, followed by the value enclosed in double quotes. From the second parameter on, the parameter name is always preceded by the ampersand (&) character;
Note: If the parameters are going to be used in mimic script that runs when the user navigates to the mimic, use them in the "Mimic_Navigate" sub-routine, not the "Mimic_Load" one:
Public Sub Mimic_Navigate
MsgBox Mimic.Parameters.Param1
End SubUdgivet til:Schneider Electric Danmark
Se mere
Område:
Se mere
Område: