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

Qual Table Question - Java API

Hello all,

my question is in the area of searching for products via the non-qualifier using the Java API. Can it be done? If so, how? I don't think there is a QualifiedLookupParameter class.

A concrete example of what I want to do is something like the following:

Product pricing is set by quantity. So, the quantity is the non-qualifier and price is the qualifier. I want to easily see all products with a "1-9 quantity" price (along with the price).

Is there a way to set up such a search?

Thanks in advance.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 09, 2006 at 12:37 PM

    Hi Bruce,

    Your code should look something like this:

    ResultSetDefinition rsd = new ResultSetDefinition(<TABLECODENAME>);

    rsd.AddField(<FIELDNAME (that points to qualified table)>);

    Search search = new Search(<TABLECODENAME>);

    FreeFormTableParameter fftp = searchPricing.GetParameters().NewFreeFormTableParameter(<TABLECODENAME);

    FreeFormParameterField ffpf = new FreeFormParameterField((<FIELDNAME (that points to qualified table)>);

    ffpf.Add(new NumericParameter(1,FreeFormParameter.GreaterThanOrEqualToSearchType));

    ffpf.Add(new NumericParameter(9,FreeFormParameter.LessThanOrEqualToSearchType));


    A2iResultSet rs = catalog.GetResultSet(search, rsd, (<FIELDNAME (that points to qualified table)>), true, 0);

    Hop this helps you out,

    Good luck,


    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.