203 Lotus blogs updated hourly. Who will post next? Home | Blogs | Search | About 
 
Latest 7 Posts
HCL and IBM Partner on Domino 10
Wed, Oct 25th 2017 4
Importing CSV via Java to a Notes Database
Fri, Aug 11th 2017 1
HTML5 Canvas to PNG via RPC
Tue, Jun 21st 2016 5
Eternal fustrations with IBM "Help" - - this time trying to give them money
Mon, May 23rd 2016 2
Simple Example: Bootstrap
Tue, May 3rd 2016 3
Import CSVs into a Notes/XPage database
Thu, Mar 24th 2016 3
REST via Service Bean
Tue, Feb 16th 2016 6
Top 10
dataTable with Categories
Tue, Jul 14th 2015 6
REST via Service Bean
Tue, Feb 16th 2016 6
Reversing the display order of a Multi-value field (XPages)
Wed, Jan 13th 2016 5
HTML5 Canvas to PNG via RPC
Tue, Jun 21st 2016 5
Bootstrap Progress Bars - sample database
Wed, Aug 12th 2015 4
nhttp preview won't "switch ID"
Mon, Dec 7th 2015 4
HCL and IBM Partner on Domino 10
Wed, Oct 25th 2017 4
ComboBox - Validate so default value is not selected
Wed, Jul 1st 2015 3
dataTable column width
Tue, Jul 14th 2015 3
Import CSVs into a Notes/XPage database
Thu, Mar 24th 2016 3


Populate an InputText Date field (that has a calendar picker)
Twitter Google+ Facebook LinkedIn Addthis Email Gmail Flipboard Reddit Tumblr WhatsApp StumbleUpon Yammer Evernote Delicious
   

I didn't see much on this, so I'm posting in case it helps someone.

I'm working on an application that has an XPage that a user fills out, then clicks to get a new version of that page. Most of the data should carry over, including an inputText field for a Domino document bound to a date field and I have the default datepicker on it.

I put the values from the first page into sessionScopes and used that to populate them for the next page. Easier on the user. All of them worked except the date.

Here is what worked.

Getting the value:

var nDT:NotesDateTime = document1.getItemValueDateTime('EventDate');
sessionScope.put("EventDate", nDT.getDateOnly());


Setting the value in afterPageLoad:

document1.replaceItemValue('EventDate', session.createDateTime(sessionScope.EventDate));

I've not found a way to set the component value yet, it's just not worked in any permutation I've tried so far. This does what I need so far, so I stopped trying on the component.

Cheers,
Brian

---------------------
http://dominoherald.blogspot.com/2015/06/populate-inputtext-date-field-that-has.html
Jun 26, 2015
1 hits



Recent Blog Posts
4
HCL and IBM Partner on Domino 10
Wed, Oct 25th 2017 10:27p   Brian M. Moore
I was excited to see the announcement about HCL and IBM working on Domino 10 in 2018. The thing I want most out of this is a focus on Sales, even more than I want most of the changes that could come from new elements to work with. Domino has a very mature NoSQL datastore that has a lot of built-in functionality. I think if an emphasis was put on that and whatever sales teams exist pushed the product there would be an upturn in the user base. If they would make it worth the financial while of sa
1
Importing CSV via Java to a Notes Database
Fri, Aug 11th 2017 8:35p   Brian M. Moore
It's been longer than I intended since my last post, but here it is. One of the things I've posted has been importing to a Notes database. My first was using LotusScript to import from an Excel file, I've moved to using CSV which does not require an external program. This one uses a Java bean and HashMap to map the field names. As with the others, this takes two files. First is a simple where the you have the data. The column titles will match up with the same row in a title spreadsheet. Th




Created and Maintained by Yancy Lent - About - Planet Lotus Blog - Advertising - Mobile Edition