Top 10 Xpages Interview Questions Answers
Explain what is XPages?
XPages is a web and mobile application development platform. It allows IBM Domino data as well as data from relational and other data sources to be displayed to browser clients on all platforms.
Xpages are developed by?
IBM
How to get information from the event parameters in a XPage event?
When triggering a Event in an XPage the global object THIS will contain a XspEventEventHandler. We retrieve the parameters using a .getParameters() this will return a Java ArrayList
The code below loops thru the arraylist and gets the value from the parameter name that matches the Key variable
var value=this.getParameters();
var tmp="";
var Key="MyParameter"; // Key contains the parameter name you want to retreve
for(x=0;x<value.size();x++){
if(value.get(x).getName()==Key){
tmp=value.get(x).getValue();
break;
}
}
requestScope.MyField=tmp; // Place the parameter data in the MyField requestScope vaiable
XPages is a web and mobile application development platform. It allows IBM Domino data as well as data from relational and other data sources to be displayed to browser clients on all platforms.
Xpages are developed by?
IBM
How to get information from the event parameters in a XPage event?
When triggering a Event in an XPage the global object THIS will contain a XspEventEventHandler. We retrieve the parameters using a .getParameters() this will return a Java ArrayList
The code below loops thru the arraylist and gets the value from the parameter name that matches the Key variable
var value=this.getParameters();
var tmp="";
var Key="MyParameter"; // Key contains the parameter name you want to retreve
for(x=0;x<value.size();x++){
if(value.get(x).getName()==Key){
tmp=value.get(x).getValue();
break;
}
}
requestScope.MyField=tmp; // Place the parameter data in the MyField requestScope vaiable
Comments