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 call new node command by klicking on the node's name?
Carsten_Erker_(PDVErker_(Delete)_2309625)
Hi there,for my new node type I implemented a new command "ViewNode" by adding a WebNodeCmd and a WebNodeAction object. It shows up in the function menu and works fine.Now I want to call it when the user klicks the name of the node in the folder. I changed the fCmdNames feature to include {"Open","ViewNode"} but it doesn't work. If I do {"Open","Info"} it works and opens the info page. Any ideas why doesn't the mapping work with my custom command? Thanks a lot,CarstenHere's the complete assignment from my setup() script:.fCmdNames = \ { \ { "Open", "ViewNode" }, \ { "Attributes" }, \ { "Copy" }, \ { "CreateAlias" }, \ { "ViewNode" }, \ { "Delete" }, \ { "Properties" }, \ { "Move" }, \ { "Permissions" } \ }
Find more posts tagged with
Comments
William__Li_(scoruser4_-_(deleted))
I'm having ht eexact same problem, in fact I came out here to post a question about it. Have you found out what the problem is?
William__Li_(scoruser4_-_(deleted))
The answer, courtesy of OpenText support:Kristy, I think I figured out the problem. In the _Nodetypes of the WebNodeCmd Object you return the Subtype of the New Node. In order to be able to use your Action in the Open command you cannot pass the subtype of your node. Remove the two subtypes, compile and run the script, restart builder and it should work. Jeremy ------------------------------------------------------------Jeremy O'ConnorProduct SpecialistOpen Text Corporation ------------------------------------------------------------