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
Trouble with WebNodeAction objects
William__Li_(scoruser4_-_(deleted))
I'm having trouble with two WebNodeAction objects I've created for a couple of custom node types. The actions themselves will display in the function menu for the items, and do work properly, but I cannot get references to them to show up in the Actions column of a browseview page, nor can I cause the 'open' (clicking on the item name) event to hook up to my WebNodeActions. Everything appears to be enabled and hooked up properly (or the event wouldn't work properly from the function menu).One thing that troubles me is that the WebNodeAction objects appear not to be initializing when I stop and start Builder (screenshot attached). Everything else gets a unique object with unique identifier beneath it when I stop and start Builder.Here's the pertinent part of my 0 Setup for one of my webnodes..fCmdNames = \ { \ { "Open","Read" }, \ { "View","Read" }, \ { "Run","Browse" }, \ \ { "AddVersion" }, \ { "Attributes" }, \ { "Delete" }, \ { "Fetch" }, \ { "Properties" }, \ { "Permissions" }, \ { "Reserve" }, \ { "Unreserve" } \ }Any assistance would be appreciated. I don't want to rewrite these as Action-[whatever] scripts.
Find more posts tagged with
Comments
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 ------------------------------------------------------------