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

Using standard "findAll" operation of CAF Business Object in VC

Hi,

I would like to ask if it is possible to make use of the standard "findAll" operation of a local Business Object modeled in CAF Core by exposing it as a Web service. Then I could use that Web service in Visual Composer to return a list of all the BO instances.

I have tried to choose the "Expose service as Web service" option of the BO but I did not know why I could not select "findAll", "findByMultipleParameters". It returned the error message "Improper operation message cardinality". The custom find operation I have added was not in the list too. So I guess only CRUD operation can be exposed. Am I right?

Apart from this, I have such a problem that I cannot expose additional CRUD operations after I have done that once. At the first time, I have exposed the operations "create" and "update" as Web service. After that, I realized I need to use "delete" too. But unfortunately the option "Expose service as Web service" is by now deactivated (grey). Why is this happening?

Regards,

Joon Meng

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 01, 2009 at 08:39 AM

    Hi,

    you need to create wrapper method of findAll,

    The reason you are not able to expose it as service because findAll resturning array of values instead of one response (or candinality of return is 0..n). So create one wrapper complex type add your BO as datatype of that complex type with multiple cardinality,

    In new method add this complex type as response (with cardinality 0..1) and within code call standard findAll and mapp return value to complext type.

    It will work.

    Regards,

    Gourav

    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.