October 16, 200619 yr 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, 200619 yr by Guest
October 16, 200619 yr Author I've managed to resolve the problem by deleting the buttons and recreating them.
Create an account or sign in to comment