Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

Tried going through my 100 or so saved templates and demos and nothing comes up so far that isn't just a simple enter find mode and perform find type of deal.

Pls and thanks! grin.gif

Posted

Well, anything will do, as long as it's not a simple ENTER FIND MODE and PERFORM FIND.

I'd just like to start a collection of templates/demos, whatever that have different find scripts, that's all. So no real requirements other than the above. I want to play around with the scripts and learn what different things will do.

Posted

A technique that works well in many situations is to enter all the search request data into global field in Browse Mode and when a "search" button is clicked, enter Find Mode, setup the find and perform it.

Enter Find Mode []

SetField [Name, gName]

SetField [Address, gAddress]

SetField [City, gCity]

SetField [state, gState]

SetField [Zip, gZip]

Perform Find []

If(Status(CurrentFoundCount) = 0)

Go to Layout (MyNoneFoundLayout)

End If

If(Status(CurrentFoundCount) > 1)

Go to Layout (MyListLayout)

Else

Go to Layout (MyFormViewLayout)

End If

Just threw in the last bit, a set of tests to take you to different layouts depending upon how many records are found. With the new options to extend and constrain the found set, many more options for a find scripting are available.

-bd

Posted

Thanks, LiveOak! That looks, to my inexperienced eyes, pretty great. I'll give it a try. Worked a lot of overtime this week (unfortunately, not paid), so didn't get a chance at all to work on my solution. Hope to do better this week.

Will make a copy of one of my db's and incorporate this script to get a feel for it.

Thanks once again!

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