Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Controlling Nodetypes with checkboxes

Status
Not open for further replies.

SenadSe

Programmer
Dec 2, 2011
28
BA
I hope this will be easy to answer.

So i am trying to make an request handler/htm with checkboxes which will change the list in the feature _Nodetypes (in Cmd and Actions).

So to add and remove the numbers in here (with checkboxes):

function List _Nodetypes()

return { 0, 202, 136, 141, 142 }
end

And my question is, what would be the right aproach, should i edit the _Nodetype feature or should i do the codeing somewhere else.

Thx in advance
 
I may be off but I beleive that code will be run only on startup so you cannot get dynamicity.The only dynamicity of those actions offered easily by OT is based on permissions something like if user belongs to this or that group show function button if not don't.

I have seen similar things like what you want but not that simple

Based on your list your webnodeaction will show up in all subtypes on startup once that is done even if you change the subtypes it may make no difference.The implementation that you want goes and changes the object's that have been created and manipulates it not very simple to explain.sorry

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008,Livelink ECM Champion 2010
 
maybe some more info:

Similiar to the picture:


Like described in frame 1, the changes can take efect after restart.
And, like in frame 2 its a list of checkboxes like
◘ Folder
◘ Shortcut
and so on.
When i check Folder , then the value '0' is added to the list in _nodetypes. (or somewhere else if this approach is wrong)
In other words , my action would be available for all folders.
 
Your approach will work, but it will not take affect until the server is restarted as these values are read on start up.

A better solution is to store the values in the database or opentext.ini and leave the _Nodetypes function empty, so it is available for all and then update the _IsEnabled method to load these and control it from there which can be done so that it does not require a restart.

Greg Griffiths
Livelink Certified Developer & ECM Global Star Champion 2005 & 2006
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top