spacemonkey Posted October 16, 2006 Posted October 16, 2006 (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 October 16, 2006 by Guest
spacemonkey Posted October 16, 2006 Author Posted October 16, 2006 I've managed to resolve the problem by deleting the buttons and recreating them.
Recommended Posts
This topic is 6882 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 accountSign in
Already have an account? Sign in here.
Sign In Now