Changes

Jump to: navigation, search

Web Page View Field Variables

161 bytes removed, 20:45, 17 March 2023
no edit summary
: <span style="font-size: medium;">'''[#(?object=''objectname''::{options})~''standardfieldname''~ $''customfieldname''$#]'''</span>
'''Where:'''
 
:* ''objectname'' is the name of the item to be listed.
:: Either: '''address, activity, assign, contact, user, group, company, notes, association, companyassociation, transaction, timesheet''', '''level-1''', '''utaproviderL1''', '''utaproviderL2''', '''utaconsumerL1''', '''utaconsumerL2''' or '''linkactivity'''
:* To generate a list of all contacts for a [[Web Page View]] or [[Custom Field Type: Read Only – System Variables|Read Only – System Variables]] custom field (note that the HTML table formatting is included within the '''[#...#]''' syntax)
<pre style[#(?object="white-space: -o-pre-wrap; word-wrap: break-word;">contact) #]<table><tr>{| <th>|-!|First Name</th> <th>!|Last Name</th> <th>!|E-mail Address</th> <th>!|Cell Phone Number</th>[#(?object=contact)<tr>|- <td>||~firstname~</td> <td>||~lastname~</td> <td>||~email~</td> <td>||$Cell Phone$</td> </tr>#]</table></pre>|}
::: ''Note: The first line creates a header row for the table''
 
:* For a list of Level 2 (or Level 3) activities sorted by Start Date in descending order:
:* To include and format a date stored in a custom field (see also [[sscalculation]])
<pre>[#(?object=activity)<!--@sscalculation(date_format("$fieldname$","%M %d, %Y"))-->#]</pre>
::: ''('''Close Date''' does not have a time associated with it)
'''Examples:'''
::
::* To display the Start Date in the format '''February 22, 1985''' you would use:
::: <span style="font-size: medium;"><input class="Button" type="button" value="Button Label." /></span>
'''where:'''
::
::* ''customfieldid'' = the field id of the Single or Multiple file custom field (without '''cf_''')
==Currency Format==
::: You can use the following syntax to format a custom field with currency: @format(L2 Subcontract total y1,currency,USD,2)@. The last parameter can be changed from 2 to 0 to display as a whole number.
 
==Session Variables==
When using features such as Organization Switching, you may want to pull in specific data based on your current session.
Smartstaff
2
edits

Navigation menu