Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

Good afternoon!

In my database I have a search layout with a field on it where you can enter you search criterias etc. Problem is if I'm on that layout and I go to my menu and click Records > Show all or > Browse last/first, the records appear in my search field and I don't want that.

My question is, is there a way to disable the Show all/Browse etc scripts when I go to the Search layout?

Posted

Vilem,

Your question is a bit short on details but perhaps you could add a step like this to the beginning of your scripts:

If Status(CurrentLayoutName) = "Whatever"

Do this

End If

Posted

Ok I'll explain in details:

I am on my Search layout, which is only supposed to be used to search specific criterias throughout my database via a "search field". That field is not supposed to show any data, except if you enter some data yourself to launch to search. The problem is, when I am on that Search layout and instead of typing something in the field, I go in the menu and chose Records > Show all, the records appear in the search field and I would like to prevent that because that field should only be used to enter criterias for a search and not for displaying any of them (When you do a search, the results are displayed in the List layout).

Maybe there's some way to prevent that field from displaying records or like I asked earlier, to disable the "Records > Show all" script when I am on that Search layout.

Edit: I forgot to mention, the Records > Show all is a script that I made because I am running my solution in kiosk mode using a custom made interface.

Posted

I think the way a lot of developers get around this problem is to base the search layout on globals. What I mean is that your searching layout doesn't contain any fields that contain data, rather it is just a bunch of globals that take the place of your existing data fields. The users wouldn't notice the difference.

Then you script the find operation to copy the values in the globals to the equivalent data fields.

Make sense?

This topic is 7300 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.