|
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
1) ExtensionLibrary - iNotes Virtuallist control - onOpenEntry - how to get the UNID of selected document?
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?
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?
thanks Paul! |
