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.