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

Searching Records based on multiple paramteres?


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

Recommended Posts

Posted

Hi,

Customer --< Jobs.

I have got a layout based on Customer where bascially user enters the search criteria and it contains a Drop down list of all the Customers & 2 date fields that are both associated to Jobs::StartDate and a find Button.

When find button is clicked i want to search/display all the jobs in a different layout for the selected company where job start date is between the selected date range. The reason i want to display in different layout is to print the found records.

Thanks in advance.

Mitesh

Posted

I kind of dislike the idea of having extra fields to facilitate this, why not make dialogs during the run of the script:


Go to Related Record [ From table: “Jobs”; Using layout: “Jobs” (Jobs) ] [ Show only related records ] 

Enter Find Mode [  ] 

Loop 

      Show Custom Dialog [ Message: Case(Get ( RequestCount )-1;"Enter an end date for the search";"Enter a start date for the 

search"); Buttons: “OK”; Input #1: Jobs::StartDate ] 

      Go to Field [ Jobs::StartDate ] 

      Set Variable [ $criteria; Value:Get ( ActiveFieldContents ) ] 

      If [ Get ( RequestCount ) = 1 ] 

              Set Field [ ">"  & $criteria ] 

      Else 

              Set Field [ "<"  & $criteria ] 

      End If 

      Exit Loop If [ Get ( RequestCount ) = 2 ] 

      New Record/Request 

End Loop 

Constrain Found Set [  ] 

--sd

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