Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Document Refresh
KenMcCallum
Hi There,
I've created a right click utility that performs an operation on the selected document. How to I pass back context item so that the document item is update in the view?
I know I can use:
.Add("IManExt.Refresh", True)
.Add("RefreshFolderContents", True)
However, RefreshFolderContents refreshes the whole folder and the document becomes unselected afterwards, which is slightly confusing. IManExt.Refresh doesn't seem to do anything on it's own.
Any ideas how to simply refresh the selected document - like what happens when you right click Check Out etc?
Many thanks
Find more posts tagged with
Comments
jny
The IManExt.Refresh ContextItem is used to indicate a refresh needs to be done. After that, you need to specify which object(s) to refresh by adding the additional, appropriate contextitem. If you are refreshing the doc grid then the RefreshFolderContents ContextItem is, indeed, the correct one to use.
Is this for FileSite? If so, which version of FileSite do you have? The new contextitems, not including IManExt.Refresh, are as follows and are only supported by FileSite 8.1 and forwards.
"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.
KenMcCallum
Thanks for your very helpful reply jny.
We're using Filesite 8.2. The RefreshFolderContents Context Item does indeed refresh the document grid, but the trouble I'm having is that the document that was right clicked on - is no longer the selected item once the grid has refreshed. For example, if my operation is performed on the 5th item in the list, after the refresh - the first item is then selected.
I'm just wondering whether there is anyway to only have the right clicked document refresh, or somehow reselect the appropriate item after the refresh? Just like a right click Check out/Export etc does...
Many thanks,
Ken
jny
No, unfortunately not. What happens on a refresh is that the list of documents is re-prioritized where the selected document is now put to the top of the list - to indicate that this is the last worked-on item.
KenMcCallum
OK, thanks either way Jny. Hopefully this is perhaps something that can be accomodated in a future release.
jny
You may want to consider submitting this as an enhancement request at
http://worksitesupport.interwoven.com/
, and click on New Feature Request link.