Page Index Toggle Pages: [1] 2  Send Topic Send Topic Print Print
Hot Topic (More than 10 Replies) ButtonPanelItem() command help needed (Read 2228 times)
BOBSCOTT
Senior Member
Members
*****
Offline


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
ButtonPanelItem() command help needed
May 16th, 2008 at 10:15pm
Print Post Print Post  
Earlier today I asked a stupid question that had me stumped for a while and Erika’s answer was so simple and basic it was un-believable. So I figure while I am asking stupid questions on things that should be pretty basic but I can’t solve I might as well ask another.

I am attempting to remove the Delete Record Button from the update menu. I am using the ButtonPanelItem() command.

When I click Test I get a compile error (Unknown Identifier)

I have #include "sbasic_include.sbas" in my code and the sbasic_include.sbas file exists in the correct directory and other commands that use stuff from #include "sbasic_include.sbas" work fine. I checked and rechecked spelling and the button reads - Delete Record –
I have tried lots of things but I can not get this to work.

What might I have wrong?


#include "sbasic_include.sbas"

ButtonPanelItem(BUTTON_PANEL_REMOVE_ITEM, UPDATE_PANEL,"Delete Record",  "")

As always Thanks
  

Team – Together Everyone Achieves More
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: ButtonPanelItem() command help needed
Reply #1 - May 17th, 2008 at 12:12pm
Print Post Print Post  
Is this question referring to the new Button style menu interface?
  

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


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Re: ButtonPanelItem() command help needed
Reply #2 - May 18th, 2008 at 12:20am
Print Post Print Post  

Yes  Huh
  

Team – Together Everyone Achieves More
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: ButtonPanelItem() command help needed
Reply #3 - May 19th, 2008 at 11:43am
Print Post Print Post  
The ButtonPanelItem commands refer to the Button Panels you can build for yourself. The new ones we've provided as a substitute for the Command Tree are tied to the Command Tree. To hide the Delete button, use HideTreeItem to hide the Delete Record item on the Command Tree. The button ties to that item will respect the Hide command.
« Last Edit: May 19th, 2008 at 1:52pm by Hammer »  

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


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Re: ButtonPanelItem() command help needed
Reply #4 - May 19th, 2008 at 1:40pm
Print Post Print Post  
Thanks.
  

Team – Together Everyone Achieves More
Back to top
 
IP Logged
 
BOBSCOTT
Senior Member
Members
*****
Offline


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Re: ButtonPanelItem() command help needed
Reply #5 - May 19th, 2008 at 2:47pm
Print Post Print Post  
Yes I am dense! I am sorry! 

With @HideTreeItem() you use the exact words spelling etc used on the tree.  When I am using the new Menu Buttons do I need to change my syntax to match the words on the the new menu buttons?  I was thinking it would be the regular tree wording.

I changed my ini file setting to tree. I added

var vHideTree as Int
var vHideTree1 as Int

vHideTree = @HideTreeItem("MB1!Forms!Add Data!Property")
vHideTree1 = @HideTreeItem("MB1!Forms!search/update!Property")

It works perfect, No property visible on tree .
When I change my ini setting to buttons my property button is visible

I tried changing it to exactly the way it reads on the new menu buttons but that did not work either.

Where have I blown this?

Thanks
  

Team – Together Everyone Achieves More
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: ButtonPanelItem() command help needed
Reply #6 - May 19th, 2008 at 3:45pm
Print Post Print Post  
It looks like the commands you have are hiding at the database level.  The buttons show forms. To get a form to not appear, you need to hide it at the form level for both Add Data and Search/Update mode.
  

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


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Re: ButtonPanelItem() command help needed
Reply #7 - May 19th, 2008 at 7:33pm
Print Post Print Post  
Hammer wrote on May 19th, 2008 at 3:45pm:
To get a form to not appear, you need to hide it at the form level for both Add Data and Search/Update mode.


I am not sure I understand what you mean.

So using your xresultset example application as an example when I run it it shows
Xresultset Demo
Main Form
Main Menu

If I wanted to eliminate the Button choice of Main Menu

What would I use?

Thanks

  

Team – Together Everyone Achieves More
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: ButtonPanelItem() command help needed
Reply #8 - May 19th, 2008 at 9:13pm
Print Post Print Post  
This works. It hides the form and the database in both modes. I don't think that you should also have to hide the database itself, so we'll look into this.

var vTemp as Int

     vTemp = @HideTreeItem(@Application + "!Forms!Add Data!Main Menu!Main Menu")
     vTemp = @HideTreeItem(@Application + "!Forms!Search/Update!Main Menu!Main Menu")
     vTemp = @HideTreeItem(@Application + "!Forms!Add Data!Main Menu")
     vTemp = @HideTreeItem(@Application + "!Forms!Search/Update!Main Menu")
  

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


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Re: ButtonPanelItem() command help needed
Reply #9 - May 19th, 2008 at 9:21pm
Print Post Print Post  
Thank you for all the help.  Smiley
  

Team – Together Everyone Achieves More
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: ButtonPanelItem() command help needed
Reply #10 - May 19th, 2008 at 9:22pm
Print Post Print Post  
Try it with an application in which the database names and the forms names do not match each other (if you aren't already).
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
Amor
Full Member
Members
***
Offline


No personal text

Posts: 366
Location: Germany
Joined: Feb 7th, 2004
Re: ButtonPanelItem() command help needed
Reply #11 - Jun 23rd, 2008 at 7:43pm
Print Post Print Post  
Hallo!

I use the new Button style menu interface and want to hide the subform:
This Code does not hide it!

     vTemp = @HideTreeItem(@Application + "!Forms!Add Data!Fahrtdienst!Fahrten")
     vTemp = @HideTreeItem(@Application + "!Forms!Search/Update!Fahrdienst!Fahrten")
     vTemp = @HideTreeItem(@Application + "!Forms!Add Data!Fahrten")
     vTemp = @HideTreeItem(@Application + "!Forms!Search/Update!Fahrten")



Thanks.
Dr. Belhareth
  

Dr. med. Amor Belhareth&&Medizin Labor &&Germany
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: ButtonPanelItem() command help needed
Reply #12 - Jun 23rd, 2008 at 8:02pm
Print Post Print Post  
That path to the subform is going to be

*Application Title*!Forms!Add Data!*Parent Database*!*Sub Database*!*Sub Form*

The parts in *'s will need to be replaced with the appropriate names

-Ray
  

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


No personal text

Posts: 366
Location: Germany
Joined: Feb 7th, 2004
Re: ButtonPanelItem() command help needed
Reply #13 - Jun 23rd, 2008 at 9:12pm
Print Post Print Post  
Ray-

It ´s no working!

Hier is my Tree:

Application Title:  ----> Fahrdienstverwaltung

Parent Database --->  FAHRDIENST
                                        Fahrdienst
              Sub Form ---> Fahrten
                                         Fahrten


Code:
     vTemp = @HideTreeItem("Fahrdienstverwaltung" + "!Forms!Add Data!Fahrtdienst!Fahrdienst")
     vTemp = @HideTreeItem("Fahrdienstverwaltung" + "!Forms!Search/Update!Fahrdienst!Fahrdienst")


    vTemp = @HideTreeItem("Fahrdienstverwaltung" + "!Forms!Add Data!Fahrtdienst!Fahrten!Fahrten")
     vTemp = @HideTreeItem("Fahrdienstverwaltung" + "!Forms!Search/Update!Fahrdienst!Fahrten!Fahrten")
  

Dr. med. Amor Belhareth&&Medizin Labor &&Germany
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: ButtonPanelItem() command help needed
Reply #14 - Jun 24th, 2008 at 2:55pm
Print Post Print Post  
Try

Code
Select All
vTemp = @HideTreeItem("Fahrdienstverwaltung!Forms!Add Data!Fahrtdienst!Fahrten!Fahrten")
vTemp = @HideTreeItem("Fahrdienstverwaltung!Forms!Search/Update!Fahrdienst!Fahrten!Fahrten")
vTemp = @HideTreeItem("Fahrdienstverwaltung!Forms!Add Data!Fahrtdienst!Fahrten")
vTemp = @HideTreeItem("Fahrdienstverwaltung!Forms!Search/Update!Fahrdienst!Fahrten") 



-Ray
« Last Edit: Jun 24th, 2008 at 5:48pm by Ray the Reaper »  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send Topic Send Topic Print Print