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)
NRS for "properties of a link to a workspace" dialog
wolfgang
I'd like to hijack the "Workspace Properties" button of the properties dialog I get when choosing right-click|Properties from a workspace link, e.g. a workspace link below "My Matters". The "VB Scripting Guide for WorkSite Dialogs" seems not to mention this dialog.
Does anyone know of a possibility?
Thank you for your time,
Cheers
Wolfgang
Find more posts tagged with
Comments
wolfgang
To be a little more precise, the thing our customer wants is having the Properties of the Workspace shown, but deactivated for editing. So, we have a custom command wrapping the workspace properties command which works fine for "real" workspaces. The thing is, the mentioned button would have to call this wrapper instead of the underlying Interwoven Workspace Properties command.
jny
Unfortunately, there isn't an NRS Script or other mechanisms to hijack this button. But, since you're already wrapping around the default IManExt2.IManPropertiesCmd, what you could probably do is, in ICommand_Update, check on the selected object. If it's a shortcut, then disable (nrGrayedCommand) the Properties menu item. Like so:
[VB]
Private Sub ICommand_Update()
On Error Resume Next
Dim objSelected As IManObject
Set objSelected = mContext("DestinationObject")
If objSelected.ObjectType.ObjectType = imTypeFolderShortcut Then
' This is a shortcut.
mStatus = nrGrayedCommand
Exit Sub
End If
mStatus = nrActiveCommand
End Sub