Introduction to xPages

 xPage Introduction : 
xPage is the new advance web development platform for traditional lotus notes development. xPage uses the web2.0 technology that runs under Java runtime environment & it’s based on JavaServer Faces (JSF) technology. JSF is a component based technology for web application development. JBoss, primeFaces, Oracle, Sun, IBM Rational, ZK and lot many frameworks are using the JSF technology and now IBM Notes.
xPage is JSF enabled , but it doesn’t mean that xPage only compatible with JSF or the Java programming language  . If you have knowledge on JSF or Java and your are new to Notes development, doesn't matter you can start using xPages as it’s a component based technology similar to other frameworks as we said.
Also, if you are a traditional Lotus Notes developer then don’t be afraid, the xPage is a gift for you because it’s a combination all your knowledge that you have.  

xPages understands the Lotus Script agents , Client Side JavaScript, formula* language and your forms, views. xPages can convert your forms & views into web2.0 interface in a few simple steps.  xPage web2.0 is simply a combination of cascading style sheets (CSS), Client side JavaScript (CSJS), HTML (Hyper Text Markup Language) and XML i.e. the XSP tags. It makes natural web application development practices for development.

xPage is individual design elements added with lotus notes along with custom controls, for traditional  notes development just imagine the “xPages” is the notes “Form” and “custom control” is the “sunform” but with more power to build web2.0 applications.XPages accepts the individual functionality, individual workflow and individual business logic.

XPages transforms the simplified XML tangs to HTML tags on a web page for web development and its generates unique component ID for each element embedded on the xPage as we discusses above that XPages inherits properties of JSF as component based development.

As tradition notes developer, you might have difficulty to understand how traditional notes development knowledge can be utilized to xPages web 2.0 development? So you are on right page. We will explain some important facts that can be helpful for your future development on advanced xPage development.

There are plenty of good options where you can utilize your knowledge on xPage. Here we will explain only formula language as an introductory part, later on you can find many options and example where you can utilize your knowledge on this online xPage Domino tutorials and tips website platform.xPage and Domino website helps you to guide your knowledge on xPage platform and  tradition Lotus Domino concepts.

Formula Language in xPage:  Here we will take our famous @Dblookup & @DBColumn functions.
@DbLookup( class : cache ; server_name : database_name ; view_name ; key_name ; field_Name ; keywords)
@DbColumn( class : cache ; server_name : database_name ; view ; column_number )

Its in traditional notes development, you can write this code in LotusScript by using Evaluate statements. But here xPage provide you to a new way of development as we said.Its combination of old and new concepts, here you can you use above dblookup and dbcolumn functions easily in JavaScript

xPage DbLookup and DBColumn in Client Side JavaScript:
@DbLookup(db_Name:string, view_Name:string, key_Name:string, col_Number:int, keywords:string) : any
@DbColumn(db_Name:string, view_Name:string, col_Number:int) : any

What is the main difference between both formulas used for traditional formula language and xPage formula language?
The answer is here :  The use of separator, in xPage we have replaced “;”(semicolon) to “,”(comma) to use this formula combination with JavaScript.

But how to combine this formula to JavaScript? 
let’s find out-

var dblk=@DbLookup(@DbName(), "ByCompanyNames", "IBM", 2);
Here ‘dblk’ is a variable which will return the value of dblookup from “ByCompanyNames” view with key as company name “IBM” and second columns would be the address.

var dbcm=@DbColumn("";"":"Companylocations.nsf"; "byCompanyNames";1)
Here ‘dbcm’ is a variable which will return all the values of dbcolumn as in array format from “byComanyNames” view from first column.

This is the simplest use of JavaScript & @functions in for xPage development, later on your can find more examples and tips to use @functions on xPage JavaScript.

Also one note - there are total 127 @functions are available to use on xPage web2.0 development, due to power of xPage development 127 @functions more than enough to use on xPage development, even If you want to find out the list of @formula functions that support to xPage development, then you can find it out on our next articles.

There are some non-discussed xPages capabilities and we will let you know that those are really proud full lotus notes feature reborn  in the context of  a Rapid Application Development (RAD). Lotus Notes already a RAD development framework, but after the addition of the xpage,  power of Notes becomes increased twice in the mean of Rapid application development.
The power of xPage is to run the same application on Notes Client which was already developed for web i.e. on the internet.So no redevelopment as we do in our traditional notes development. 
Also one more unique feature that xpage has an ability to run a stand-alone mobile application using internet   I.e. xPage has extra standard controls that can be used on xPage mobile development.

So no worry for notes development. We have multiple options to explore our notes framework.

This website will introduce you to xpage capabilities, features and big-picture of notes redesigned development models in the context of xPage web2.0 development.
So let’s accelerate yourself to begin with xPage development!

1 comment :

Mirnalini Sathya said...

I have been the regular reader of your blog. Excellent Blog on leading technology !!! Your information helps people to be up to date. Thank you for sharing this wonderful post to us.
PHP Course in Chennai | PHP Training in Chennai