@Formulas In xPages


Formula used in xPages: Many of we know how @formulas works on tradition lotus Notes and also the power of formula language & performance, so as a result formula language still alive in newly added design element “xPages”.

Formula in xPages performs very good roles for the execution of complex logic.
xPages uses three type of language , in which we have "Server Side Java Script" , "Client side Java Script". 

The best part of xPages is we can use formula languages without doing immense changes, the difference is in its structure not Syntax , so we don’t need to worry about syntax. One small change in formula language will help to achieve your goal in xPages
-
Formula in xPages. The only difference is in its "Separator", we use ";" as separator in our traditional lotus notes formula language. For example 

@Contains("xPage Domino";"Domino")

Use the syntax in xPage JavaScript. I.e. 

@Contains("xPage Domino","Domino")

As I said we made the difference is in delimiter. We used. "," instead ";" . So the same you can apply to all formula used in xPage. but do you know how many formulas we used in xPages, or how many @formulas supports to xPages JavaScript?
We have list of all formulas used in xPages. Let’s find below –

DB Functions

@DbColumn
@DbLookup
@DbTitle
@DbName
@ReplicaID


Document Functions

@AttachmentModifiedTimes
@AttachmentNames
@Attachments
@Author
@IsDocBeingSaved
@AttachmentLengths
@Created
@Modified
@Name
@Success
@SetField
@UserName
@Failure
@GetField
@IsNewDoc
@True

Date & Time Functions

@Yesterday
@Weekday
@Year
@Date
@Day
@Hour
@Month
@Minute
@Tomorrow
@Today
@Now
@Time
@Adjust




DataTypes , Convertors & Other



@Contains
@IsMember
@IsNotMember
@Member
@Text
@TextToNumber
@TextToTime
@Unique
@Modulo
@Yes
@Integer
@Elements
@Count
@Second
@Return
@Repeat
@Select
@Null
@No
@False
@If
@Element
@Char
@Do
@Ends
@Error

String Functions

@Right
@RightBack
@Left
@LeftBack
@Middle
@MiddleBack
@UpperCase
@LowerCase
@ProperCase
@Trim
@ReplaceSubstring
@Replace
@Length
@Word
@Implode
@Explode
@NewLine
@Begins

'@isFormulas

@IsAvailable
@IsDocBeingLoaded
@Left
@List
@IsDocBeingSaved
@IsError
@IsNewDoc
@IsNull
@IsNumber
@IsResponseDoc
@IsText
@IsTime
@IsUnavailable



Thanks for reading this article, hope you like it, if you have any difficulty please contact us on ‘admin@xpagedomino.com’ or click here to contact us.









No comments :

Post a Comment

Leave A Comment...