Follow WiredContact on Twitter

<#Menu Customize>
<#displayname value="Boolean Phrase"> Boolean Phrases are used in WiredContact tags to evaluate whether something should be used/shown or not. Typically, the Boolean Phrase is the Value part of a Test or Evaluate parameter in a tag.

If the boolean phrase is true, the function is successful. A boolean phrase consists of an expression with a phrase on each side of an operator. For example:

"value1 = value2" would test to see if value1 was equal to value2, and if so, would return true. You may use the following operators:

= - Equal
!= - Not Equal
*= - Starts with
You may also use "AND" and "OR" in the left or right hand phrases to make a more complex layout test.
Generally, the following tags may be used for either side of the boolean phrase:

<#field field=[field name]> - see FieldTag label="Field Tag">
<#userfield field=[field name]> - see UserFieldTag label="User Field Tag">
<#sysuserfield field=[field name]> - see FieldTag label="Sys User Field Tag">

Example:
<#layouttest debug evaluate="<#sysuserfield field=secprofile>=Sec1" file=[template]> - would be successful if the current user has the value "Sec1" in the User Settings dialog for the custom field "SecProfile".

<#layouttest debug evaluate="<#field field=idstatus>=Customer" file=[template]> - would be successful if the current record's "IDStatus" field has the value "Customer".

To see the details of the success or failure of a Boolean Phrase in the WiredContact Errors.log file, you may typically use a "Debug" parameter in the tag that has the Test/Evaluate parameter.

The following use Boolean Phrases in one way or another:

ActionTag Label="Action Tag">
IncludeTag Label="Include Tag">
LayoutTest Label="LayoutTest">
SumTag Label="Sum Tag">
Label="Subentity Sections">
Addition tags use Boolean Phrases.

Article ID: 596, Created On: 12/16/2011, Modified: 12/16/2011

Comments (0)