Page tree
Skip to end of metadata
Go to start of metadata

ConfiDoc now has virtual functions to enable support for values decorations and transformations on the fly

How to access values you can find here: Accessing JSON structures

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
        
equals
        
notEquals
        
parseDate
        
 get
        
 asList
        
 asArray
        
 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)



  • No labels