Jump to content
  • 0

DataPage Dynamic Search Logic?


Becca37
 Share

Question

I'd *like* to be able to pass parameters in a URL of: ?ClientRID=ClientRIDValue&AdmissionRID=AdmissionRIDValue&Type=Client (or Admission)

Where

ClientRID -- a field in the target table

AdmissionRID -- another field in that target table

Type -- a purely virtual value which will tell me which field to query

Then use logic in the search query such as:

OR

     AND  [@Type] = "Client" +  [ClientRID] = [@ClientRID]

     AND [@Type] = "Admission" +  [AdmissionRID] = [@AdmissionRID]

Can this be done?

This would save me many DataPages to be able to dynamically create listings from a single DataPage instead of having to have 1 which pulls the listing for Clients and another which pulls the-otherwise-exactly-the-same-listing for Admissions. :0)

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

@Becca37

Hello!
Can you elaborate a bit more on the logic of OR statement?
What is the condition to choose different groups of the parameters?

Also, you mentioned that you want to choose different fields. Does it mean that you want to show a tabular report with the different set of fields depending on the group of the search parameters?

I am looking forward to your reply.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...