Normal Topic Command Button Visibility (Read 8404 times)
NHUser
Full Member
***
Offline



Posts: 320
Location: Amherst, NH
Joined: Aug 2nd, 2010
Command Button Visibility
Jan 18th, 2018 at 3:15pm
Print Post Print Post  
I use a lot of command buttons on a form.  I use the VISIBILITY command to hide most of them at the On Retrieve Spec Open event.  I turn them on at the On Form Entry event.

I've noticed that all the command buttons become visible during the transition from the Search mode to the Update mode, and vice versa. 

This has been going on for quite some time and is annoying.

I thought it was due to my inept programming, but I've investigated thoroughly and find no programming that accounts for this occurrence.

Is there something that causes this to occur?  Is there a way to stop it?

Any help would be appreciated.

NHUser

  
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: Command Button Visibility
Reply #1 - Jan 18th, 2018 at 4:18pm
Print Post Print Post  
Hi Paul,

I'm not understanding what you are seeing

Quote:
I've noticed that all the command buttons become visible during the transition from the Search mode to the Update mode, and vice versa.


If you are making your buttons visible On Form Entry, then it would make sense that they become visible when going from Search to Update. I'm confused on the vice versa as they should be visible in update and then hidden when going backwards. Do you have a small sample you could send me so that I can take a look at it?

-Ray
  

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



Posts: 320
Location: Amherst, NH
Joined: Aug 2nd, 2010
Re: Command Button Visibility
Reply #2 - Jan 18th, 2018 at 9:44pm
Print Post Print Post  
Ray,

When I transition from Search to Update and when I transition from Update to Search, all my command buttons are sequencing from "not visible" to "visible" then back to "not visible".

When I transition from Update to Search, it happens twice!

I'm not sure what you mean by a small sample.
  
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: Command Button Visibility
Reply #3 - Jan 19th, 2018 at 3:05pm
Print Post Print Post  
Hi Paul,

By small sample, I meant can you cut out a single form from your application that displays this behavoir and send it over to me so that I can take a look at it here and see what is happening?

-Ray
  

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



Posts: 320
Location: Amherst, NH
Joined: Aug 2nd, 2010
Re: Command Button Visibility
Reply #4 - Jan 22nd, 2018 at 9:49pm
Print Post Print Post  
Ray, would please you explain how I would do that?
  
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: Command Button Visibility
Reply #5 - Jan 22nd, 2018 at 10:03pm
Print Post Print Post  
Hi Paul,

Since I know your database is rather large, pick one form that shows this issue and then follow these steps

1: Make a backup of your DSR called something like ToRay.db
2: Open that backup
3: Expand Manage A Database
4: Expand a database that I don't need to see to see this issue
5: Click Manage Fields
6: Under Action choose Delete Database
7: Click Add Transaction to Batch
8: Click Run Batch
9: Repeat from Step 4 for each database I don't need to see
10: Send me the DSR and DDT files

-Ray
  

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



Posts: 320
Location: Amherst, NH
Joined: Aug 2nd, 2010
Re: Command Button Visibility
Reply #6 - Jan 23rd, 2018 at 8:16pm
Print Post Print Post  
Ray, I've got 85 databases.  Is there any other way we can do this?
  
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: Command Button Visibility
Reply #7 - Jan 25th, 2018 at 3:20pm
Print Post Print Post  
Hey Paul,

I didn't realize you were up to so many. Hmm, Open that form in Designer and then under Commands choose Export Form to XML. Save it as a .XML file and send it on over to me. I'll just create a database to pull it into and bind enough elements for it to work so that I can see what you are seeing.

-Ray
  

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