Get selected object's ID on custom dialog in D2
Hi,
How can i get the selected object's ID on a custom created dialog (using plugin). When i right click on the object and choose a custom menu option like "Modify", I want an action to be called that would popup the dialog having the selected object's ID.
Thanks and Regards,
Abhishek
Comments
-
Hi All,
I'm in need of such same requirement. Please some one post an answer with sample code and snapshot.
Thanks in advance.
0 -
Hi All,
I also have the similar requirement.If any one of you found a solution ,please share.
Thanks in advance
0 -
Hi,
You will get selected object Id in your custom dialog plugin from D2fsContext context parameter in follwoing method
public XmlNode buildDialog(D2fsContext context, List<Attribute> attributes).
see below code snippet:
public XmlNode buildDialog(D2fsContext context, List<Attribute> attributes){
IDfPersistentObject persistentObject = context.getFirstObject();
if ((persistentObject != null) || ((persistentObject instanceof IDfSysObject)))
{
IDfSysObject sysObject = (IDfSysObject)persistentObject;
IdfId selected_Id = sysObject.getObjectId();
}
0 -
But D2fsContext context parameter always have one object in it even when the dialog is triggered from multi document selection. Any solution to get the context of all selected documents in custom Dialog?
0
Categories
- All Categories
- 123 Developer Announcements
- 54 Articles
- 151 General Questions
- 148 Thrust Services
- 57 OpenText Hackathon
- 37 Developer Tools
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 32 eDOCS
- 186 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 8 XM Fax
- Follow Categories