Actions

Difference between revisions of "%1.exp"

From Zenitel Wiki

 
(22 intermediate revisions by 3 users not shown)
Line 1: Line 1:
%1.exp
+
{{AI}}
[[File:UDP Field.PNG|thumb|400px|UDP (User Defined Parameter) is configured in AlphaPro]]
+
'''%1.exp''' returns the [[Users_%26_Stations_%28AlphaPro%29#UDP|User defined parameter]] as enterened in AlphaPro, '''Users & Stations''' -> '''UDP''' tab.
 +
 
 +
'''%2.exp''' is used to read the User Defined Parameter of the "Related-to" station. In AlphaNet this is supported when the station is in the local exchange where the event is executed.
  
Returns the [[Users_%26_Stations_%28AlphaPro%29#UDP|User defined parameter]] as enterened in AlphaPro, '''Users & Stations''' -> '''UDP''' tab.
 
  
* %2.exp can also be used if "Related-to" is in local exchange
 
<br/>
 
 
Example:
 
Example:
This event will set a 5 second timer on the calling station (event owner).
+
 
<br/>
+
[[File:UDP Field.PNG|thumb|left|500px|UDP (User Defined Parameter) is configured in AlphaPro]]
<br/>
+
<br style="clear:both;" />
<br/>
+
 
 +
Using the example above:
 +
 
 +
Expression  Returned value
 +
----------  --------------
 +
%1.exp    = 4321
 +
 
 +
 
 +
 
 +
[[Event_Handler#Formating|Formating]] of the returned data is supported.
 +
 
 +
 
 +
'''Note:''' The macro cannot be followed by a character a-z or A-Z.
 +
This will result in a syntax error. Either a space character must be used,
 +
or the macro must be followed by empty brackets () if space cannot be used.
 +
.
 +
Expression  Returned value
 +
----------  --------------
 +
%1.exp    = 4321
 +
%1.exp Ma  = 4321 Ma
 +
%1.exp()Ma = 4321Ma
 +
%1.expMa  = <Syntax error>
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 
Back to [[Event_Handler#List_of_context_parameters]].
 
Back to [[Event_Handler#List_of_context_parameters]].
  
 
[[Category:Event Handler macros]]
 
[[Category:Event Handler macros]]
 
[[Category:Event Handler]]
 
[[Category:Event Handler]]

Latest revision as of 08:45, 4 October 2019

AI.png

%1.exp returns the User defined parameter as enterened in AlphaPro, Users & Stations -> UDP tab.

%2.exp is used to read the User Defined Parameter of the "Related-to" station. In AlphaNet this is supported when the station is in the local exchange where the event is executed.


Example:

UDP (User Defined Parameter) is configured in AlphaPro


Using the example above:

Expression   Returned value
----------   --------------
%1.exp     = 4321


Formating of the returned data is supported.


Note: The macro cannot be followed by a character a-z or A-Z. 
This will result in a syntax error. Either a space character must be used, 
or the macro must be followed by empty brackets () if space cannot be used.
.
Expression   Returned value
----------   --------------
%1.exp     = 4321
%1.exp Ma  = 4321 Ma
%1.exp()Ma = 4321Ma
%1.expMa   = <Syntax error>




Back to Event_Handler#List_of_context_parameters.