Skip to main content link. Accesskey S

XPages Wiki

Submit Search

YouAtNotes XPages Wiki


UI

Page12

Browser compatibility

Julian Buss | May 18, 2009 8:48:44 PM | Tags:browser, client, UI

==Internet Explorer 8== IE 8 is supported since Domino 8.5.1. You can force IE8 to act like IE7 by using this code in beforeRenderResponse event: {code:} // first option uses compatibility mode, second option too but stronger // X-UA-Compatible: IE=7 // X-UA-Compatible: IE=EmulateIE7 if ...

How to create a picklist style dialog

Julian Buss | May 19, 2009 3:43:54 PM | Tags:code, dojo, UI

Found in [[http://dominoextnd.blogspot.com/2009/05/xpages-how-to-create-view-picklist.html | Mark Hughes Blog]]: - Create a custom control with a panel, a view inside the panel and other componets as you like - this control will become the dialog. Set for example "picklistDialogPanel" as name for ...

Special chars and escaping

Julian Buss | June 30, 2009 7:12:04 AM | Tags:code, UI

Non breaking space Using {code:} nbsp; {code} is not allowed, but you can use {code:} 160; {code} instead. Other special chars Use the <number>; notation.

Useful keyboard shortcuts while working with XPages

Julian Buss | July 7, 2009 8:15:17 AM | Tags:dominodesigner

CTRL-M: toogle to maximize the active panel restore all panels CTRL-SHIFT-F: auto-format source code

Work with a file upload and download controls

Julian Buss | April 6, 2009 1:00:44 PM | Tags:UI, bugs

==Restrict the size of uploaded files== Set in Application Properties -> XPage Properties -> File Upload max size . ==Limiting file types for upload== You can set define which file types are allowed to be uploaded in the upload control -> all properties -> basics -> accept. Read details ...

Work with Dates

Julian Buss | May 22, 2009 10:17:41 PM | Tags:code, UI

==General Tips== While working with dates in server side javascript, I noticed some glichtes in Domino 8.5.0. Here are some rules of thumb: Trying to convert a text to date with @TextToTime() may work, but in my case it mixed day and month values. My solution: parse the string yourself into year, ...

Work with documents and fields on the XPage

Julian Buss | April 6, 2009 1:12:07 PM | Tags:code, javascript

==Get and set a field on the XPage== ===Server JS=== {code:} getComponent("elementName").getValue(); getComponent("elementName").setValue("something"); {code} Note: you cannot access or set fields with visible=false. If you want to work with a field, but don't want to display it, give the field a ...

Work with events and partial or full refresh

Julian Buss | September 11, 2009 8:27:22 AM | Tags:code, javascript

==Run a partial update from client javascript== You can use the following function to trigger a partial update from client javascript {code:} XSP.partialRefreshPost(id); {code} "id" is the runtime ID of the control, that means you have to get it with "#{id:nameOfControl}". If you don't need to be ...

Work with Hide When on a XPage

Julian Buss | April 6, 2009 1:21:53 PM | Tags:UI

Each component on a XPage have the "visible" property which can be computed. If computed, your JS should return either //true// or //false// or a empty string (same as //false//) or "1" (same as //true//). ==HideWhen based on a user role== Show the element if user has the role [role]. {code:} var ...

Work with multimedia

Julian Buss | December 6, 2009 11:45:55 AM | Tags:

==integrate a mp3 player== If you like to integrate a mp3 player on your site, you can use the the Yahoo Mediaplayer . Usage is pretty simple, only include this in your XPage source code: {code:} <script> var YMPParams = autoplay:true, volume:0.5, </script> <script type="text/javascript" ...

Page12
Use  searchlotus.com  for news in the Web related to Lotus Notes and Domino,
and to search those sites.
Check  youatnotes.com  for great Lotus Notes, Domino and XPages software.
Did this wiki help you?
Did this saved you time? Express your gratitude by making a donation:
PayPal - The safer, easier way to pay online!