Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You use a function by appending it to the expression you use to locate the value in the document. The documentation for these functions could be found in ConfiForms plugin Virtual functions

Function
          lowerCase
                  

upperCase
        

          urlencode
                  

escapeXML
        

          escapeJavaScript
                  

escape
        

          unescape
                  

formatDate
        

          formatCurrency
                  

formatNumber
        

          formatLinks
                  

replaceAccents
        

          replaceWith
                  

asUserProfileLink
        

          asUserLinkMacro
                  

urlLink
        

          escapeJSON
                  

replaceCRLFWithBR
        

          trimAllSpaces
                  

camelCase
        

          camelCaseAndTrim
                  

addCRLF
        

          addCRLFHtml
                  

trunc
        

          trim
                  

base64
        

          asJSON
                  

asUserProfile
        

          add
                  

multiply
        

          divide
                  

append
        

          prepend
                  

split
        

          userInSecurityGroup
        

securityGroupHas
          

equalssecurityGroupHas
        

notEquals
        

parseDate  equals
        

 get
        

 notEqualsasList
        

 asArray
        

 parseDateasArrayOfKVPairs
        
get
asList
asArray

pageProperties(PROPERTY_NAME)
Code Block
somefield.pageProperties(PROPERTY_NAME)


when somefield is a page id then ConfiDoc is able to load it and extract the page property by given (PROPERTY_NAME) name

confiDocGlobals(VARIABLE_NAME)

These are variables that can be stored in ConfiDoc globally using ConfiDoc Globals macro

Image Added

Easiest way to use the function is to use an _id pseudo field

Code Block
_id.confiDocGlobals(VARIABLE_NAME)
asArrayOfKVPairs

There are 2 special functions available what are used as-is (not as a part of the expression)

Function
          _getIfExists(oneproperty, anotherproperty)
        
Returns either the value for first property (oneproperty) if it has a value, and if not then tries to locate the value for a second property (anotherproperty)
          _getRawResponse()
        
Returns raw response (JSON internal structure)

...