332 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Jobs | Twitter | Bookmarks | Pods | Blogs | Search | myPL | About 
 
Latest 7 Posts
Custom Control for custom layout of checkboxes
Tue, May 21st 2013 160
Fix for partial refresh on Dojo Tab Container/Content Pane
Wed, Mar 20th 2013 168
Small LS class that can be used to check if fields have changed
Fri, Jan 18th 2013 113
Code Snippet - Close dialog if all fields are valid
Fri, Oct 12th 2012 129
Snippet to clear session for user
Thu, Sep 6th 2012 144
Comprehensive guide to Design Definitions
Mon, Aug 20th 2012 63
XPages - Grouping data in comboboxes
Fri, Jul 27th 2012 95
Top 10
Fix for partial refresh on Dojo Tab Container/Content Pane
Wed, Mar 20th 2013 168
Custom Control for custom layout of checkboxes
Tue, May 21st 2013 160
Simple trick to format XPages Checkbox group
Thu, Apr 14th 2011 153
XPages: Code snippet for Multi Value Custom Converter
Thu, Jun 17th 2010 150
Snippet to clear session for user
Thu, Sep 6th 2012 144
Multi value fields and Beans in XPages
Mon, Jun 25th 2012 130
Code Snippet - Close dialog if all fields are valid
Fri, Oct 12th 2012 129
XPages: SSJS code snippet that lets you parse/stringify JS-JSON
Wed, Sep 29th 2010 122
XPages: Make categorized views behave
Fri, Oct 22nd 2010 122
Small LS class that can be used to check if fields have changed
Fri, Jan 18th 2013 113


Thing to be aware of when using "Generate unique keys.." in view
   

I had trouble with a couple of views today. The views had the option Generate unique keys in index checked.

When the views were replicated to other servers, they weren't built. When trying to open them I got the error message Entry not found in index

I found the solution on the Domino forums, add !@IsAvailable($Conflict) to the view selection.


---------------------
http://feedproxy.google.com/~r/dontpanic82/~3/NVk2U7Ua5rk/thing-to-be-aware-of-when-using.html
Jan 02, 2012
42 hits



Recent Blog Posts
160


Custom Control for custom layout of checkboxes
Tue, May 21st 2013 4:09a   Tommy Valand
In a recent project, I wanted to create an interface to toggle different settings for different user types in an app. To save real estate on the page and (hopefully) make it more intuitive, I wanted to have a column per user type, and organize the checkboxes vertically. I couldn't find any way to do this out of the box. To make it work, I made a regular checkbox group per field. Then in a repeat control, I have regular HTML checkboxes with name fetched from the real checkbox group. The checkb [read] Keywords: firefox interface javascript properties
168


Fix for partial refresh on Dojo Tab Container/Content Pane
Wed, Mar 20th 2013 4:05a   Tommy Valand
I wrote this a while back, but I couldn't find that I'd shared it. You need to use the partial refresh hijacker to use the code snippet. This code snippet initializes Dojo Tab Containers/Dojo Content Panes in the area that's refreshed: // Fix problem with partial refresh on Dojo Tab Container/Content pane // Source for inspiration: // http://www.openntf.org/projects/pmt.nsf/0/D228115FAA98DDEC86257A7D0050E7FF dojo.subscribe( 'partialrefresh-complete', this, function( method, form, [read] Keywords: xpages dojo openntf widget
113


Small LS class that can be used to check if fields have changed
Fri, Jan 18th 2013 3:02a   Tommy Valand
We've had some issues with semaphore locks on one of our import databases. The import database has routines that import/update data, then replicate it to a cluster when it's done. We're not exactly sure what triggers the locks, but the server crashed sometimes several times a day, so we decided to see if the import routines could be optimized to do as few writes as possible. Several of the routines saved documents even if there were no field changes. I wrote a simple class to test for [read] Keywords: database server
129


Code Snippet - Close dialog if all fields are valid
Fri, Oct 12th 2012 12:42a   Tommy Valand
Today I was working on a dialog that had fields with validation. I only want to close the dialog if all fields are valid. I'm not aware of any inbuilt XSP methods that does this. This code snippet checks for any invalid fields in the dialog. If all fields are valid, the dialog is closed: function closeDialogIfValid( dialogId ){ var invalidCount = dojo.query( '[id="' + dialogId + '"] [aria-invalid="true"]' ).length; if( invalidCount === 0 ){ XSP.closeDialog( dialogId ); } } This pr [read] Keywords: blogger dojo server
144


Snippet to clear session for user
Thu, Sep 6th 2012 4:42a   Tommy Valand
During testing, I sometimes log in as different user to test hide/whens/etc. I used to delete the SessionID cookie in the browser to clear session scoped beans/sessionScope variables. Today, I looked for a solution to automate this. This line will clear all objects related to a session:facesContext.getExternalContext().getSession( false ).invalidate(); If you want to clear session when logged in user changes for the current "XPages" session, here's the snippet I use (put the code in afterPa [read] Keywords: xpages blogger server
63


Comprehensive guide to Design Definitions
Mon, Aug 20th 2012 6:26a   Tommy Valand
I found this guide in IBM's Application Development wiki while looking for information on Design Definitions: Native and Custom Control Custom Visualization Best Practices So far it's the most comprehensive guide to Design Definitions I've found. [read] Keywords: ibm ldd lotus application blogger development wiki




95


XPages - Grouping data in comboboxes
Fri, Jul 27th 2012 6:29a   Tommy Valand
I wanted to have some values grouped in a ComboBox. Not sure if it's possible to do with pure SSJS (without using the Java API), but found a way using beans: JSF Tree in a dropdown (see accepted answer). The resulting html is select node with options grouped in optgroup nodes. [read] Keywords: xpages blogger java
130


Multi value fields and Beans in XPages
Mon, Jun 25th 2012 4:10a   Tommy Valand
I had an issue with multi value fields bound to bean fields in an XPages I worked on. I got this error message on refresh: java.lang.IllegalArgumentException: argument type mismatch The issue turned out to be a somewhat inconsistent underlying API. When the field is empty, or has single value, it tries to set a string. When there are multiple values, it tries to set a list. To work around the issue, have the getter return an Object, and the setter accept an object. E.g. public Obje [read] Keywords: xpages blogger java
66


Update for Enhanced Messages Control - Show "system" messages
Fri, Jun 22nd 2012 9:50a   Tommy Valand
In response to this question on the XPages Forums, I've updated the source code for my Enhanced Messages Control, so that it also shows messages not bound to controls. The "system" messages are show above the messages from components. [read] Keywords: ldd lotus xpages blogger
60


Recommended tutorials for doing asynchronous processing in beans
Fri, Jun 15th 2012 6:29a   Tommy Valand
Asynchronous processing in Java applications – leveraging those multi-cores Using asynchronous mechanisms in Java and JavaScript for improving the user experience [read] Keywords: applications blogger java javascript




Created and Maintained by Yancy Lent - About - Blog Submission - Suggestions - Change Log - Blog Widget - Advertising - Mobile Edition