Problem with Import Action Service
Hi guys,
I have some problem with using the import action service. The following is my code:
<dmf:button name="btnAttach" label="Attach" onclick="onTestAttach">
<dmfx:argument name="stampId" value="<%= stampId%>"/>
</dmf:button>
public void onTestAttach (Control ctrl, ArgumentList args) {
System.out.println("onTestAttach invoked");
ArgumentList arg = new ArgumentList();
arg.add("objectId", "0b00012a81172eb8");
arg.add("filePath", "C:\\Documents and Settings\\Administrator\\Desktop\\mymusic.mp3");
//componentArgs.add("parentPath", "Cabinets");
arg.add("filenameWithPath", "true");
arg.add("parentPath", "/Div_A/department_head/Media");
arg.add("isDirectory", "false");
arg.add("docbaseType", "dm_document");
arg.add("objectName", "mymusic.mp3");
arg.add("isSilent", "true");
ActionService.execute("import", arg, getContext(), this, null);
}
Any idea what went wrong? Thanks in advance.
Comments
Categories
- All Categories
- 111 Developer Announcements
- 49 Articles
- 103 General Questions
- 123 IM Services
- 40 OpenText Hackathon
- 31 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 897 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 123 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 1 XM Fax