Get selected object's ID on custom dialog in D2
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
- 107 Developer Announcements
- 53 Articles
- 105 General Questions
- 141 IM Services
- 43 OpenText Hackathon
- 32 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 898 Cloud Fax and Notifications
- 76 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 118 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management