Skip to main content link. Accesskey S

XPages Wiki

Submit Search

YouAtNotes XPages Wiki


Page12

By Tag: UI

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.

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 custom controls

Julian Buss | April 6, 2009 2:37:33 PM | Tags:UI

==Use a custom control as container for your layout== For example, create a panel wich some elements. Assume you want this panel in every page, but you want to place your actual content inside that panel: - Place an "editable area" control in your panel. - Make a custom control out of the panel. - ...

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 Dojo

Julian Buss | April 6, 2009 12:57:53 PM | Tags:dojo, UI, code

==Include Dojo libraries== To use certain dojo functionalities like the dijit.dialog you have to inlcude them in your XPage, see [[http://www-10.lotus.com/ldd/ddwiki.nsf/dx/Client_Side_JavaScript_Libraries_in_XPages.htm]]. In short: add a new resource "dojo module" to your XPage and enter the name ...

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 repeat controls

Julian Buss | April 6, 2009 1:43:58 PM | Tags:UI

==Repeat control with the result of a JavaScript or the content of a document field== Set CollectionName to "data" and Index to "index" in your repeat control. Set DataBinding to JavaScript. Example: get a list/array out of a field stored in a profile document. {code:} var profile:NotesDocument = ...

Work with validation

Julian Buss | April 6, 2009 1:48:26 PM | Tags:UI, validation, code, javascript

==Use your own validation tests== Create a Expression Validator and use JavaScript for comparing stuff. The value of the fields is stored in the variable "value". {code:} value == sessionScope.get("comparevalue"); {code} Here the validator is true if the value of the fields is the same than the ...

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!