Jump to content

This topic is 6725 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (edited)

I have setup my databse so it does not show the Satus Area View to the left of the screen. I have setup my search function etc, but when it goes into Find Mode, I want to be able to press a button that says Search Now (or similar), instead of having to press the Find button that appears on the Status Area.

So my question is this, is there a script that I can create that would force an Enter or Carriage Return command that I can then attactch to a button?

I know I can just hit return on my keyboard, but it would be a lot easier for people to use a button.

Hope someone can help.

Mark

Edited by Guest
Posted

I am not sure how I would do this.

In the Browse Mode, I have a button that has this script attacthed to it:

Enter Find Mode[]

Go To Field [chsacs::Surname]

Insert Text [surname; chsacs::Surname["Enter Search Here"]

Now that script takes me to the layout to allow a search for the surname. I do not understand how I can then create a script to another button that triggers this script to actually do the search.

I know I am a bit dim!

Mark

Posted

On the button definition for your "Search Now" button, you have a list of commands that the button can be set to run. One of them is Perform Script[]. Ignore that one. Use the command below it called "Resume Script".

Your Find script should then include the whole Find process, including what to do when the records have been found. Something like:

Go to Layout [ Find ]

Enter Find Mode []

Go To Field [chsacs::Surname]

Pause Script [ indefinately ]

Perform Find []

Go to Layout [ List View ]

...

This topic is 6725 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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