Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted (edited)

I have got a find button on the main database layout which is as follows:

Close Window [ Name: "Failed Search"; Current file ]

If [ Get ( PrivilegeSetName ) = "Web_User" ]

Perform Script [ “find_SearchWeb” ]

Else Perform Script [ “find_SearchFMA” ]

End If

This works fine in that the user is taken to the find form layout and the relevant script is run. However when the user enters search criteria into the form and clicks on the Find button which is set just to Resume Script the Find button is not seen as an active button and the script isn't resumed!

The find_SearchWeb script is as follows:

Allow User Abort [ Off ]

Set Error Capture [ On ]

Show/Hide Status Area [ Lock; Hide ]

New Window (VIRTUAL WINDOW ON WEB) [ Name: "Find Material"; Height: 440; Width: 680; Top: 200; Left: 160 ]

Go to Layout [ “web_findMaterial” (lib_Materials) ]

Go to Field [ lib_Materials::mat_Product ]

Enter Find Mode [ ] [ Pause ]

Perform Find [ ]

If [ Get ( FoundCount ) < 1 or Get ( LastError ) = 400 ]

Perform Script [ “goto_noResultLayout” ]

Exit Script [ ]

Else If [ Get ( FoundCount ) > 1 ]

Close Window [ Name: "Materials"; Current file ]

Go to Layout [ “web_List” (lib_Materials) ]

Perform Script [ “size_Window” ]

Set Window Title [ Current Window; New Title: "Materials" ]

Show/Hide Status Area [ Lock; Hide ]

Go to Record/Request/Page [ First ]

Perform Script [ “sortby_01_Ascend” ]

Perform Script [ “grab_ActiveRecordID” ]

Exit Script [ ]

Else Close Window [ Name: "Materials"; Current file ]

Go to Layout [ “web_Details” (lib_Materials) ]

Perform Script [ “size_Window” ]

Set Window Title [ Current Window; New Title: "Materials" ]

Show/Hide Status Area [ Lock; Hide ]

Go to Record/Request/Page [ First ]

Perform Script [ “grab_ActiveRecordID” ]

End If

Any help would be appreciated.

Edited by Guest

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