Normal Topic Hiding Tab pages (Read 954 times)
obfusc88
Full Member
***
Offline


No personal text

Posts: 194
Joined: Dec 17th, 2005
Hiding Tab pages
Oct 23rd, 2017 at 6:48pm
Print Post Print Post  
I have a Tab element LE3 with five pages.
I have hidden two of the five tabs, so only three are showing, good! 

The code is in Form On Entry section.
HideTabPage(LE3,4)

But, if I open into the Search Mode from a Main Menu button, all five tabs are visible.  If I open into the Add Mode only three show, and if I switch from Add to Search Mode, only three are showing.

Menu command is:
@SelectTreeItem(@Application + "!Forms!Search/Update!orders!orders")

How do I prevent the hidden tab pages from showing when I originally open into the Search Mode?
  
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: Hiding Tab pages
Reply #1 - Oct 23rd, 2017 at 6:57pm
Print Post Print Post  
You will want to hide the tab pages in the On Retrieve Spec open event as well if you want them hidden at the Retrieve Spec.

-Ray
  

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


No personal text

Posts: 194
Joined: Dec 17th, 2005
Re: Hiding Tab pages
Reply #2 - Oct 23rd, 2017 at 7:00pm
Print Post Print Post  
Too simple, THANKS!

Curious, why are they hidden when I switch from Add to Search, isn't that also using the Retrieve Spec?  I thought they were in the same mode?
  
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: Hiding Tab pages
Reply #3 - Oct 23rd, 2017 at 7:32pm
Print Post Print Post  
Yes that is also the retrieve spec when you switch to search. You may have some other code running that is either firing the On Form Entry event or hiding those tab pages. The reason I say this is as in a sample I just built, switching from Add Data to Search Update mode(using either @SelectTreeItem() as you show above or with the menu tree) always shows 5 tabs in Search mode and down to 3 when you press F10 to retrieve the records.

-Ray
  

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