Home
Web CMS (TeamSite)
ImportCmd - Import command failed!
Bob1
Hi all,
I've got quite a strange situation going on here.
I have implemented an "ImportCmd" in an ICommand type of interface.
The command works fine in "DeskSite", and you can see that the document imports fine.
However, when I try to import the file in "FileSite/Outlook" using the same ICommand I developed, I get a permission error.
"Import command failed!"
"IManExt: Import command failed!"
"Access is denied."
When i interrogate the exception in code I get
[System.ArgumentException]
{"Value does not fall within the expected range."}
Is there anything different I need to do implementation wise for an ImportCmd in FileSite as opposed to DeskSite.
Cheers,
Bob1
Find more posts tagged with
Comments
Bob1
Ok figured out the permission error:
for some reason desksite doesn't need the following to be populated so this was working for desksite:
context.Add("IManDestinationObject", null);
however filesite does not work, i had to select a source folder:
context.Add("IManDestinationObject", sourceDocument.Folders.Item(1));
Also does anyone know of a refresh view command?
Desksite seems to refresh itself after performing the importCmd.
Filesite on the other hand doesn't seem to refresh itself. I cannot see the documents until I hit the refresh button on FileSite.
Cheers.
Bob1
Ah just found this in a previous post with regards to refreshing the FileSite view:
FileSite 8.1 and forwards, these contextitems are supported for refreshing the different aspects of the FileSite treeview:
"IManExt.Refresh", True //this contextitem should always be set to signal a refresh.
"RefreshFolderContents", True // this contextitem is set to refresh the doc grid.
"RefreshSubFolders", True // this contextitem is set to refresh the child folder.
"RefreshAllFolders", True //this contextitem is set to refresh a parent folder and all its child folders.
c# example (where context is a ContextItems object):
context.Add("IManExt.Refresh", true);
context.Add("RefreshFolderContents", true);
context.Add("RefreshSubFolders", true);
context.Add("RefreshAllFolders", true);