Quote:According to what I have found you cannot use @SelectTreeItem to go to any level in the tree that is not visible at the time. In other words, when in the Add data mode in one database, I can use @SelectTreeItem to go to "Add Data Menu!Application Menu. This works and it takes me to the menu level where I can see the structure all the way up to Application name. I have tried to code one command to get back to the main level and one more to get to the database!form that I want to get to, however the second one never gets executed. I tried stringing all of the variables together, but as I suspected, that failed.
I do not see any need to make two commands, one to goto the application menu level and one to get to database!Form. The application menu is open when you are in Add Data menu eventhough it is not visible (look at the tabs at the bottom.) You do not need to use Add data Menu!application menu!
Start using command directly from the application menu.
Following is my code that goes in the command button placed on the form named Phonebook and I execute it from Add Data Menu. My application name is also Phonebook and Address is the other form in the application that opens up using the following code.
========
var vSuccess as Int
vSuccess = @selectTreeItem( "PhoneBook!Forms!Add Data!address!Address")
if vSuccess = 1 then
Writeln ("Mission Successful")
This seems to work fine for me.