AnsweredAssumed Answered

show/hide status bar error in search script

Question asked by dlreed on Mar 31, 2009
Latest reply on Apr 2, 2009 by TSGal

Title

show/hide status bar error in search script

Post

I'm getting an odd result from a controlled search script in my database that uses the show/hide status bar script step. The problem is that despite the database being in Browse mode at the end, the layout bar section of the status toolbar continues to display the Find mode elements (Matching Records: Include Omit and the Insert: Operators menu). I've copied the relevant scripts below. Am I overlooking something, or is this a bug?

 

ETA: I've resolved my problem by toggling the status bar back to show before performing the find, but having to do that seems a little buggy.

 

Find

Allow User Abort [ Off ]
Set Error Capture [ On ]
Go to Layout [ “Find Summary” (Customers) ]
Perform Script [ “Fix Window NoStatus” ]
Enter Find Mode [  ]
Pause/Resume Script [ Indefinitely ]
Perform Find [  ]
Perform Script [ “Goto List or Summary” ]
Perform Script [ “Fix Window” ]
Set Error Capture [ Off ]
Allow User Abort [ On ]

 

Fix Window NoStatus contains 3 steps

Show/Hide Status Area
[ Lock; Hide ]
Scroll Window
[ Home ]
Adjust Window
[ Resize to Fit ]

 

Goto List or Summary

If [ Get(FoundCount)=0 ]
   Show Custom Dialog [ Title: "Message"; Message: "Sorry, no records were found..."; Buttons: “OK” ]
   Perform Script [ “Home Button” ]
Else
   If [ Get(FoundCount)>1 ]
      Go to Layout [ “List” (Customers) ]
   Else
      Go to Layout [ “Summary” (Customers) ]
   End If
End If
 
Fix Window
Show/Hide Status Area
[ Show ]
Scroll Window
[ Home ]
Adjust Window
[ Resize to Fit ]













Outcomes