Normal Topic Using @HideTreeItem (Read 523 times)
nateboone
Junior Member
**
Offline



Posts: 54
Joined: Dec 19th, 2006
Using @HideTreeItem
Dec 21st, 2006 at 8:41pm
Print Post Print Post  
In order to try to hide "Mass Delete" on the form tree (won't use it and you can never be too careful), I'm trying this in the Global Code:

stat sHideTree as int
sHideTree = @HideTreeItem("Search Update Menu!Results Commands!Mass Delete!")

No go.  Any ideas?
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Using @HideTreeItem
Reply #1 - Dec 21st, 2006 at 8:50pm
Print Post Print Post  
Two things:
1. Ditch the trailing bang(!) after Mass Delete.

2. Put the code in On Form Entry instead. If you want, you can wrap it in a flag check so it only runs once. Global Code runs once as the Form is first opened. In Search/Update mode, the form opens to the retrieve spec and the tree item you are hiding does not yet exist.

Code
Select All
var vHideTree as int

    vHideTree = @HideTreeItem("Search Update Menu!Results Commands!Mass Delete")
 

  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
nateboone
Junior Member
**
Offline



Posts: 54
Joined: Dec 19th, 2006
Re: Using @HideTreeItem
Reply #2 - Dec 22nd, 2006 at 12:41am
Print Post Print Post  
thanks!
  
Back to top
 
IP Logged