Skip to main content link. Accesskey S
  • Help
  • HCL Logo
  • HCL Notes and Domino Application Development wiki
  • THIS WIKI IS READ-ONLY. Individual names altered for privacy purposes.
  • HCL Forums and Blogs
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • API Documentation
Search
Community Articles > Developing Applications > Developing XPage Applications > XPage Tutorials > How to get event parameters in a Xpage event
  • Share Show Menu▼
  • Subscribe Show Menu▼

Recent articles by this author

How to get event parameters in a Xpage event

How to get information from the event parameters in a XPage event
Learning Center articleHow to get event parameters in a Xpage event
Added by ~Carol Desjipymarings | Edited by ~Carol Desjipymarings on September 17, 2010 | Version 2
  • Actions Show Menu▼
expanded Abstract
collapsed Abstract
How to get information from the event parameters in a XPage event
Tags: XPage Events, onClick, tutorials
 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
 

  • Actions Show Menu▼


expanded Attachments (0)
collapsed Attachments (0)
Edit the article to add or modify attachments.
expanded Versions (2)
collapsed Versions (2)
Version Comparison     
VersionDateChanged by              Summary of changes
This version (2)Sep 17, 2010, 2:39:18 PM~Carol Desjipymarings  
1Sep 17, 2010, 12:16:21 PM~Mark Bubnizen  
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedAbout
  • HCL Software
  • HCL Digital Solutions community
  • HCL Software support
  • BlogsDigital Solutions blog
  • Community LinkHCL Software forums and blogs
  • About HCL
  • Privacy
  • Accessibility