Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
How to use SelectCurrentVolume in TargetBrowseDialog and TargetBrowse
Cecilia_Qian
Hi Everyone,I have a custom volume named "ABC workspace". When I select workflow attachements in the window "Select Workflow Attachments", I only want the users to browse any items on "ABC workspace". I thought that I can pass SelectCurrentVolume to TargetBrowseDialog to accomplish what I want. I suppose that this parameter will limit users to browse only in the current volume which starting browsing point is defined by ObjStr. Is it correct? Is it the right way to do? If yes, then what value should I pass to it? I tried both "trur" and "1" but none of them work.Please help. Thank you in advance.Regards,Cecilia
Find more posts tagged with
Comments
Steve Brezina
Hi Cecilia, I can't speak for SelectCurrentVolume because I've never used it. The way I restrict the targetbrowse dialog to a specific volume isby calling targetbrowsedialog.html with the following items in the tbargs parameter Assoc: tbargs.objStr = Str.Format( 'objID=%1', node.pID )- where node is either the volume node or a node contained withintbargs.omitRoot = TRUE- this eliminates the synthetic "Livelink" root element so the user can't traverse up and out of the volumeHope this helps, Steve
Cecilia_Qian
Steve,Thank you very much for your help. It really works. By the way, do you know where I can find documents/reference about what those tbargs mean and how to use them? Thanks.Cecilia
Steve Brezina
No problem.. glad I could help. I'm not aware of any docs about targetbrowse. All I can recommender is reading the comments/code in html/targetbrowsedialog.html and the Action-TargetBrowse() method on any webnode.Regards, Steve
Cecilia_Qian
I did read the comments and went through the codes in order to find out which argument and what value I should use. But I could not find comments either omitRoot nor SelectcurrentVolume. Luckily we have this forum and talent people like you. :-)Thanks again.Regards,Cecilia