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

Use QueryFilter in WD

Hi everybody,

i have imported a Enterprise Java Model from CAF into my WD.

Within the imported model i have several methods like findByMultipleParameters().

My purpose is to use this method but until now i didn't get any results back?

What is my mistake?

KZS_MONI_WS kzs_moni_ws = new KZS_MONI_WS();

Request_KZS_MON_DOC_BOServiceLocal_findByMultipleParameters1 lRequest = new

Request_KZS_MON_DOC_BOServiceLocal_findByMultipleParameters1(kzs_moni_ws);

QueryFilter queryFilter = new QueryFilter(kzs_moni_ws);

queryFilter.setAttribute("number");

queryFilter.setCondition("EQ");

queryFilter.setValue("4711");

//----not used until now

// queryFilter.setAction("");

// queryFilter.setAssociation(false);

// queryFilter.setOperation("OPERATION_NOT");

// queryFilter.setValueHigh("");

// queryFilter.setValueLow("");

lRequest.addArg0(queryFilter);

//binding

wdContext.nodeRequest_KZS_MON_DOC_BOServiceLocal_findByMultipleParameters1().bind(lRequest);

//execute

wdThis.wdGetKZS_MONITORINGController().execute_findByMultipleParam_1();

Please help. Thank you!

Regards,

Sid

WD-Model.PNG (27.6 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jul 24, 2012 at 12:14 PM

    Hi,

    After you execute the model, you also need to invalidate the corresponding response model node in your context. This will reinitialize the node, populating it with the model response results, if any.

    So, after the execute statement, add the following:

    wdContext.<your_model_response_node>.invalidate();

    Hope this helps!

    Robin

    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.