AnsweredAssumed Answered

Simple Solution but Stumped

Question asked by smunshaw on Feb 7, 2012
Latest reply on Feb 7, 2012 by RonCates

Title

Simple Solution but Stumped

Post

Hi there,

I'm writing a script that should be quite simple but I'm stumped.  I'd like to create a script that allows a "custom dialogue" box to pop up each time there are no records within the found set and continues to do so until there are records available.  Right now my script only works great on the first custom dialog but only works once on the second dialog box before going to my third page.  This is what I have.  

Set Error Capture [On]

Perform Find []

If [Get (FoundCount) = 0]

    Show Custom Dialog ["There Are No Members in this State]

    Enter Find Mode [Pause]

    Perform Find []

End If

Go to Layout ["Page 2 Search"]

Enter Find Mode [Pause}

Constrain Found Set []

If [Get (FoundCount) = 0]

    Show Custom Dialog ["No Data Available"]

    Enter Find Mode [Pause]

    Perform Find []

End If

Constrain Found Set []

Go To Layout ["Data List"]

Enter Browse Mode []

Anyone have some advise for this newbie?

Thanks!

 

Outcomes