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

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

Recommended Posts

Posted

Hello All

I've been tryng to implement a search summary field that would return:

"Results of your search for 'Red' and 'New' and '1999' has returned 299 items"

I've tried with a SetField script with calculation which sets a "Search summary" field with contents of the Find window. This returns nothing when run as part of a Find script but runs OK in browse mode. All I need is the values entered by the user in Find mode.

Any ideas?

Thanks

Posted

I think I need to get it established, if the search really is a AND search, and this means either "Constrain Found Set" is used extensively or all criterias are made inside the same request???

--sd

Posted (edited)

Thanks for the reply Copenhagen.

The search request is all from one 'Search' layout which is accessed in Find mode. Its actually a normal find with several criteria.

My script within the search script is:

If ( Product Catalog::Brand > 0 ; "Brand: " & Product Catalog::Brand & ¶ ; "" )

&

If ( Product Catalog::Date > 0 ; "Date: " & Product Catalog::Date & ¶ ; "" )

.... etc

Should I be using Constrain Found Set instead?

Thanks from Paris

Edited by Guest
Posted (edited)

Should I be using Constrain Found Set instead?

No it's different fields so it's just one request, but there are something wrong in you message calculation, neither Brand which I expect is text as format nor Date makes much sence in your shown calculation why compare the field value of current record with 0???

The straight forward method is to display the result of the search as a subsummary report without the body or a dialog box. Is the calc of yours meant for such a dialog ...if so needs Get(FoundCount) have a place in the calc' instead of > 0 ...

Well, I still have too little to go on!!!!

UPDATE - Alright after reading your question again, have I made a template I think must be what you're after provided the users keep away from multiple requests.

--sd

make.zip

Edited by Guest
Posted (edited)

Thanks for the example. I've studied it carefully and am begining to understand the $ concept - powerful stuff!

I'm running your script within my search script (attached below) but the calc only returns the FoundCount not the search criteria. I think this is a problem with my portion of the script, not yours! Do I specify a first field in 'GoToField [select/Perform]' ?

Thanks again, I'm getting there I think...

EDIT:

I just noticed that your script was running AFTER my change of layout. Everything is working fine now.

Thanks for the lesson.

FindScript.jpg

Edited by Guest

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