Hot Topic (More than 10 Replies) @SelectTreeItem issue (Read 1396 times)
digimom1962
Junior Member
**
Offline


Natalie Gann

Posts: 92
Location: here
Joined: Nov 26th, 2004
@SelectTreeItem issue
Jan 13th, 2006 at 7:05pm
Print Post Print Post  
Why doesn't this one work:

var vGoldenrods as Int

vGoldenrods = @SelectTreeItem("ServiceC!Forms!Search/update!Goldenrods!child ticket1")

When this one does:

var vSetService as Int

vSetService = @SelectTreeItem("ServiceC!Forms!Search/update!serviceC!P_C_ticket")

The buttons that have this programing are with in the serviceC database. I have checked the spelling many times. All I have come up with is there might be something else I should put since the child ticket1 form is in the Goldenrods database. Spent all morning searching this site & the manual but didn't find anything yet that applies, tho entirely possible I missed something:Smiley (Yes, the application and the 1st database have the same name but, so far, no problems there.)

Thanx!
Natalie
  

So much time and so little to do . . . strike that, reverse it.
Back to top
YIM YIM  
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: @SelectTreeItem issue
Reply #1 - Jan 13th, 2006 at 7:46pm
Print Post Print Post  
Hello Natalie,

My guess would be Spelling. One space in the wrong place or one extra space can cause the command not to work.

What you do is you take the command back to the basics. In this case the basics is just the application title. Run your code and write out the return value. If it is a 1 then that part is spelled correctly. if it is a 0 Sesame can not find an item named that.

So to start off with you would make your code.
Code
Select All
var vGoldenrods as Int

vGoldenrods = @SelectTreeItem("ServiceC")
WriteLN(vGoldenrods)
 



Then run it. If it returns a 1 then you move onto the next section. So your code would be
Code
Select All
var vGoldenrods as Int

vGoldenrods = @SelectTreeItem("ServiceC!Forms")
WriteLN(vGoldenrods)
 


And so on until it returns a 0. When it returns a 0 then the last item that you entered has a problem in it.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
digimom1962
Junior Member
**
Offline


Natalie Gann

Posts: 92
Location: here
Joined: Nov 26th, 2004
Re: @SelectTreeItem issue
Reply #2 - Jan 13th, 2006 at 9:02pm
Print Post Print Post  
[IMG]http://i32.photobucket.com/albums/d10/digimom1962/Goldenrods.gif[/IMG]
ok...its a little [b]LARGE[/b], sorry. But the point is I did what Ray suggested and got a 0 on Goldenrods.(& I have that trick stored safely away for later, thanx)  I spelled it right. Now what could be the issue?

Natalie
  

So much time and so little to do . . . strike that, reverse it.
Back to top
YIM YIM  
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: @SelectTreeItem issue
Reply #3 - Jan 13th, 2006 at 9:06pm
Print Post Print Post  
Hello Natalie,

Try this

Code
Select All
 var vGoldenrods as Int

vGoldenrods = @SelectTreeItem("ServiceC!Forms!Search/Update!ServiceC!Goldenrods!child ticket1")  



-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
digimom1962
Junior Member
**
Offline


Natalie Gann

Posts: 92
Location: here
Joined: Nov 26th, 2004
Re: @SelectTreeItem issue
Reply #4 - Jan 13th, 2006 at 9:15pm
Print Post Print Post  
Shocked missed a level huh. I figured it was something really obvious (just not THAT obvious Tongue)

Thanx again.
  

So much time and so little to do . . . strike that, reverse it.
Back to top
YIM YIM  
IP Logged
 
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: @SelectTreeItem issue
Reply #5 - Jan 13th, 2006 at 9:31pm
Print Post Print Post  
Any chance that the tree item description can be added to the Property Viewer, to be used for copy&paste in situations such as this?

Also, in the Property Viewer...what do the asterisks next to the property description signigy?  I notice that "Name" is the only item without one.
  

**
Captain Infinity
Back to top
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: @SelectTreeItem issue
Reply #6 - Jan 14th, 2006 at 12:59am
Print Post Print Post  
Quote:
...what do the asterisks next to the property description signigy?


From page 96 in the latest user guide:

Quote:
For a multiple selection,
Designer shows those settings that are common to all the selected elements. In this
case there is an asterisk (*) next to that setting. If only one element is selected, all
have asterisks as all apply.
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: @SelectTreeItem issue
Reply #7 - Jan 14th, 2006 at 11:50pm
Print Post Print Post  
OK digimom -

Here's your chance to help.

How did you get the pic in your message? 

The only thing I see is "Insert Image" but that calls for a URL. 

What I've been doing is posting my image on another web-site and then using the URL to link to the image.

Obviously, you did it much easier for yourself and for viewers ... so ....

Would appreciate hearing how.

Thanks!
  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: @SelectTreeItem issue
Reply #8 - Jan 15th, 2006 at 3:35pm
Print Post Print Post  
Quote:
What I've been doing is posting my image on another web-site and then using the URL to link to the image.


That's what she did also. If you rght-click on the image and look at its properties, you will see that it is hosted at PhotoBucket.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: @SelectTreeItem issue
Reply #9 - Jan 15th, 2006 at 6:30pm
Print Post Print Post  
Hmmmm

Let me try it again, then.

Here's a pic on another web-site:



That was me about 51 years ago - at about age 17.  So, it works.  What I must have been doing was using the regular "hyperlink" instead of the one to "Insert Image."

Thanks much.  That will be a big help should I want to use any "illustrtions" in the future.

Just 9 more days to my training -- I'm getting so excited!!!!!
  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
digimom1962
Junior Member
**
Offline


Natalie Gann

Posts: 92
Location: here
Joined: Nov 26th, 2004
Re: @SelectTreeItem issue
Reply #10 - Jan 15th, 2006 at 11:04pm
Print Post Print Post  
Sorry, my one chance to help and I blew it Roll Eyes

(I wasn't on until today)


and only 8 days now...
  

So much time and so little to do . . . strike that, reverse it.
Back to top
YIM YIM  
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: @SelectTreeItem issue
Reply #11 - Jan 15th, 2006 at 11:12pm
Print Post Print Post  
Nah! 

You didn't blow it.  If you hadn't done what you had done in the first place, I never would have thought of asking.

So you helped by a real, live demonstration.  Thank you!

You're right - only 8 more days till Erika gets to "strangle me" in person!  lol


  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged