Skip to Content
author's profile photo Former Member
Former Member

Tie Multiple Characteristics to Inputed Values in Variable entry screen?

I am writing a report against a custom product that has an unknown amount of characteristics to it. The characteristics describe the attributes and parts required to construct the product.

For example: product is a car. The characteristics can include color, model, weight, year, lighting, tires, etc.

In the report, I will need to allow the user to select any number of characteristics and assign values. They could do the following:

Characteristics:

weight

length

price

tires

Then they could enter in the Characteristic values they want the report to run against.

Characteristic values:

2000

15

24500

Firestone

What this means is this:

weight = 2000

length = 15

price = 24500

tires = Firestone

I **never** know what characteristics they will enter, and I have to trust they enter the values in the proper order to match the characteristics they entered.

My problem is now the query will run like this

Select * FROM Cube

Where (Characteristic = weight OR length OR price OR tires)

AND (Characteristic value = 2000 OR 15 OR 24500 OR Firestone)

What I'd like the query to do is this

Select * FROM Cube

Where (weight = 2000) OR (length = 15) OR (price = 24500) OR (tires Firestone)

That's just pseudo code, don't delve to much in to the SQL statements. It's just an example of what I'm trying to do.

Does anyone have a suggestion?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 11, 2007 at 09:15 PM

    I am writing a report against a custom product that has an unknown amount of characteristics to it.

    what do you mean by unknown chars? and when you say char, do you mean attributes of the char.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.