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
- 107 Developer Announcements
- 53 Articles
- 104 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