Example for function placeholders

Example for functions lst(), lsttxt(), lsttitle(), con(), empty(), cnt(), rep()

Here is a demostration of the function which can be used in placeholders.

 

The placeholders are always wrapped with , because these are form placeholders. This has been avoided in the examples, as otherwise the placeholders would be replaced immediately.

Function: lst(), lsttxt(), lsttitle()

The lst function can be used on selection elements that obtain their values from a data source and enables access to the values of any columns

Example: selSalutation.lst("Email_DE")

 

The lsttxt function returns the value of the text for selection elements.

Example: selSalutation.lsttxt()

 

The lsttitle function returns the value of the title for selection elements.

Example: selSalutation.lsttitle()

Function: cnt()

Returns the number of repeatings. This function can only be used if the element is dynamic.

 

Example: tfName.cnt()

Function: con()

Returns 1 if the value is bingo, otherwise 0.

 

Example: tfStringCon.con("bingo")

Function: emtpy()

Reurns 1 if the specified value is empty, otherwise 0.

 

Example: tfValueEmpty.empty()

Function: rep()

rep is the replace function. If the first value matches, it is replaced with the second value.

 

Example 1: tfValueForRep.rep("on" # "x")

The value on is then x.

 

Example 2: tfValueForRep2.rep("Frau"|"Herr"#"female"|"male")

The value Frau is replaced with female and Herr with male.

powered by XIMA® formcycle