Reversing the display order of a Multi-value field (XPages)  

By Brian M Moore | 1/13/16 3:53 PM | - | Added by John Oldenburger

Today I needed to reverse the display of a multi-value field. It's a log of actions and we needed to show the most recent on top rather then the first added. JavaScript arrays have a reverse() function but when I took the vector I got back it was coming in as an object not an array.

Bootstrap Progress Bars - sample database  

By Brian M Moore | 8/12/15 4:49 PM | - | Added by John Oldenburger

I've been digging into Bootstrap for a bit now. One of the useful components is the progress bar. David Leedy did a great NotesIn9 on them and I followed it, and it was greatly valuable. I took his work and made a sample database. This is all his work, I just transcribed it.

dataTable with Categories  

By Brian M Moore | 7/15/15 5:15 AM | - | Added by John Oldenburger

I've been using DataTables for a number of things lately, where I need a bit more flexibility than a viewPanel, but I don't want to build it from scratch with a Repeat. I'm currently working on process where I'm making a nsf to replace a MS Access database. So I'm having to adjust from the relational method.

StartKeys for categorized viewPanel and number column  

By Brian M Moore | 7/4/15 4:03 PM | - | Added by John Oldenburger

I have a database shared by a couple of departments, I use a field to segregate them. Each document has a MemberKey with a number value. The first column is the department, sorted but not categorized, then a view were the column is sorted on numbers. As numbers they don't sort in the "proper" order.

ComboBox - Validate so default value is not selected  

By Brian M Moore | 7/1/15 11:07 AM | - | Added by John Oldenburger

One of the things that I've been trying to get to work in XPages is getting validation to reject the default value of a combobox. Well, this morning I sat down and decided to get it done. I've used other methods to get around this until now, but this seems to do it. I have a combobox with "--Select--" as the default value.

First 2 repeat values on the same row - a simple example  

By Brian M Moore | 6/4/15 5:52 PM | - | Added by John Oldenburger

I have some data where I want to show records about people in two columns. Even in one column, odd on the other. So like a categorized view, only rather then have each subsidiary datum on it's own row, I want two columns. I'm using repeats for this. It's not overly complicated, but I thought it would be nice to post.

From URL Parameter to SessionScope for navigation  

By Brian M Moore | 5/20/15 11:27 AM | - | Added by John Oldenburger

This is a very minor post, and something I expect most people can do on their own, but I thought I'd share what I've done. For a project, I have a single application, but I'll have multiple departments access it. It's easier to have a single database then multiples in this case, not the least because of the amount of data.

QuickTip: Login Control - Set initial page after Login  

By Brian M Moore | 4/27/15 11:24 AM | - | Added by Johnny Oldenburger

This is a quick tip I'm pretty sure most people have already figured out, but I thought I'd post it anyway. I have an app where I wanted to use the embedded Login Control in a Navigator. However, when I tested it, after a successful login I was sent to an old-style web view (what you get when nothing else is done).

XPage Object types - extending a simple search  

By Brian M Moore | 1/28/15 12:55 AM | - | Added by Johnny Oldenburger

This is an update to my post here. There, I either have an empty view (dataTable) or the results of a quick search. I've been working on using this concept for a dataView, to extend my populating that with a NotesViewEntryCollection. I'd like to have something there if there is nothing searched for, and the results if there is. The problem is that even if I declare both NotesViewEntryCollections, the object type is different, so it errored out in once case or the other.

Data View with a NotesViewEntryCollection   

By Brian M Moore | 1/21/15 12:56 AM | - | Added by Johnny Oldenburger

So I've been wanting to use a Date View for a while, but I've not had the time I need to sit down and puzzle it out. And (soap box here) the examples given are pretty complex. I do have a sample based on Brad's work that I will be posting. But as I get that together, here is a tidbit. When you use a Data View, you are only given the option of selecting a Domino View. I wanted to see if you could do it with a collection.

Simple Example: XPage Search   

By Brian M Moore | 1/11/15 2:58 AM | - | Added by Johnny Oldenburger

Here is one of my entries on doing just one thing - in this case searching. I'm not a big fan of search functionality - I prefer categorization, but search does have it's uses. In classic Notes you could create a button to show the search bar and bang, done. Not so in XPages. What I want is a very simple example of doing a search, and for a project I finally had a need to do it so here it is.

DataTable filter   

By Brian M Moore | 12/23/14 2:12 AM | - | Added by Johnny Oldenburger

Were I love ViewControls, since it handles a lot of the work and I can just use it. But recently I needed to use a DataTable so I could include a button for a dialog box. Where DataTables are more flexible then ViewControls, there are some things ViewControls have that other controls don't - such as startKeys. startKeys operate like the QuickSearch in classic Notes. I want to use this in a DataTable.

Refresh Repeat after additon from Dialog  

By Brian M Moore | 11/14/14 4:42 PM | - | Added by Johnny Oldenburger

So I'm working on an app where I have the Extension Library dialog popping up so I can create a new document. These documents are displayed on a main XPage in a repeat control. This works, but I need to do a full page reload to get the new document to appear in the repeat.

Save value from computed field in XPages  

By Brian M Moore | 11/14/14 4:36 PM | - | Added by Johnny Oldenburger

I have an XPage where I have a user entering data. It's the initial set up, where later users will just read/approve. I'm using the OpenNTF View Picklist to let the user select items, and from that I want to populate a number of fields. So say the user selects a name, I want to take that document and copy the name and number over.

Custom Converter - Numbers or Text  

By Brian M Moore | 2/12/14 3:48 AM | - | Added by Per Henrik Lausten

What I need to do is let the user put in either strings or numbers. If a string, leave it alone. If it's a number, I want it to be formatted with thousands separators.

A simple use of the Custom Converter  

By Brian M Moore | 2/12/14 3:46 AM | - | Added by Per Henrik Lausten

I've wanted to make Custom Converters work for a while, but every time I went looking, I didn't seem to be able to grasp it. The need came up today, and I have a simple use of a Custom Converter. It is based on this post, but I made it a bit simpler so I could see the results.

Clear out "ghost" attachments   

By Brian M Moore | 1/14/13 12:05 AM | - | Added by Niklas Heidloff

For a project, I had to provide a way for users to select certain images to delete out of an XPage. Displaying and giving a checkbox to delete was easy - but then I had to actually delete the images. There could be any number of attachments (all images, so I don't need to worry about type), and the user should be able to delete any of the images.

XPage onBeforePageUnload  

By Brian M Moore | 11/30/12 5:11 PM | - | Added by Cn=Bruce Elgort/O=Notesoss

This is one of those "I've trooped all over the internet and found the answer sitting at my front door" posts. I'm working on an app, and I have a requirement that if the user tries to navigate away from the page without saving they will get a warning. It's a good idea, and it's something Notes does natively - not so in XPages. I cast around a bit and found onBeforePageUnload, a browser event that can be used in just this situation. So I did some digging trying to integrate it into an XPage. Then I find this post at Inner Ring. Check out the comment by Paul Calhoun. There it is!

Get the UNID for Custom REST service toGet method   

By Brian M Moore | 10/31/12 2:14 AM | - | Added by Niklas Heidloff

I bypassed the out-of-the-box REST services to go directly into making custom REST services with the Extension Library. At the moment, I'm working on a couple, but for one I want to respond to a GET request. I've been doing POST, but this was new.