Friday, December 30, 2011

How to find the running environment of X-pages

Here I am going to tell that current X-page is running Whether in notes or client. Using that information we can visible or disable a control depend upon running environment.

Her i give a simple example that if running environment is notes means that label shows "Notes " else it shows "WEB"
xp:label id="label1"
if( context.isRunningContext('Notes') ){
return "Notes ";
return "WEB ";
}]]> /xp:this.value


No comments:

Post a Comment