Sie können mich buchen für:
Individuelle Schulungen für XPages, JavaScript und Appcelerator Titanium Software-Entwicklung für IBM XPages, Appcelerator Titanium (Mobile Apps iPhone, iPad, Android, Blackberry 10), Mobile Web und IBM Notes
ExtensionLibrary - iNotes Virtuallist control - onOpenEntry - how to get the UNID of selected document?
Julian Buss, August 24th, 2012 16:23:08
Tags:
I want to use the xe:ListView ("iNotes ListView") control from the Extension Library. Unfortunately, there is no documentation about how to access the UNID of the selected document in the onOpenEntry event.
I found a hint about an "ext.item" object, but that does not exist in that event.

So, how do I get the UNID of the selected document in the onOpenEntry event? Any hints?
Comments (3) | Permanent Link

Comments:
1) ExtensionLibrary - iNotes Virtuallist control - onOpenEntry - how to get the UNID of selected document?
Paul Withers 24.08.2012 17:49:46

I'm not sure if something changed at some point during the writing of the book. I need to do some more investigation to see what happened with ext.item. I may have some sample code on the laptop I had at the time.

Does items[0].unid work?

2) ExtensionLibrary - iNotes Virtuallist control - onOpenEntry - how to get the UNID of selected document?
Paul Withers 24.08.2012 21:36:34

I was close. It looks like the ext object is only available for certain events like onCellClick.

For onOpenEntry etc you need to use items[0] to get a handle on the JSON object clicked. From that you can then get any of the properties. However, if you've passed unid as a system column, it's name is @unid. So you can't use items[0].@unid, but items[0]['@unid'] works.

I'll investigate further and do a more detailed blog.

3) ExtensionLibrary - iNotes Virtuallist control - onOpenEntry - how to get the UNID of selected document?
Julian Buss 25.08.2012 20:34:29

thanks Paul!

Add a comment
Subject:
   
Name:
Mail:
Web:
 
Comment:  (No HTML - URLs with leading http://)
 
remember me?   
You can hire me.
See my Linkedin profile for details.

Thanks for reading and have a nice time here!

Please note my Apps for iPhone and iPad: NotesBook: takes your Lotus Notes Notebook (Journal) to your iPhone and iPad xpageswiki.com: huge XPages Tips & Tricks collection for iPhone and iPad