Jump to content
Sign in to follow this  
kennedy

Controlling visibility in Find Mode?

Recommended Posts

Is there a way to have some buttons appear in a layout only when in Find Mode??

For example, an "omit" button.

Or a "perform find" button.

And the inverse... if I have next and previous buttons, how can I make them vanish

in Find Mode?

(In fact, I'd like those pairs to occupy the same space on screen... you see one or the other pair depending upon the mode. In both cases, the buttons need to be

transparent to show through the graphic object underneath.)

Can it be done?

Share this post


Link to post
Share on other sites

About three ways come to mind:

1) You can switch to a nearly identical layout in find mode, except with different buttons.

2) You can put the buttons in a container field and only fill the field with the "Find" button in find mode.

3) You can use a portal and a relationship to contain a "hide" the buttons (and other objects) when the relationship is invalid. To do this define two fields:

gShow (global, number)

One (calculation, number, indexed) = 1

Define a self relationship (from your file to the same file) with gShow on the left side and One on the right side. Place a one line portal with a transparent outline on your layout. Anything in the portal (except another portal) will be visible when gShow is 1 and invisible when gShow is empty.

-bd

Share this post


Link to post
Share on other sites

I'm assuming that you are in control of the entire navigation of this database...

If so, you can always hide the "Toggle Bar" and only open it while in Find Mode. You just have to make sure it's hidden through out the database. Here is the "Find Record" script that I use:

Toggle Status Area [show]

Allow User Abort [Off]

Loop

Enter Find Mode [Pause]

Perform Find [Replace Found Set]

if["Status(CurrentError) = 0"]

Toggle Status Area [Hide,Lock]

Exit Script

else

Show Message["Nothing was found with your request. Try Again or Cancel?"]

if["Status(CurrentMessageChoice) = 2]

Show All Records

Toggle Status Area [Hide,Lock]

Exit Script

else

if["Status(CurrentMessageChoice) = 1]

end if

end if

end if

End Loop

This script work perfectly for me... Try it out!

Cheers!

~Addam~

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.