Re: defining a service with variable number of output attributes

Posted by Jacques Le Roux on
URL: http://ofbiz.116.s1.nabble.com/defining-a-service-with-variable-number-of-output-attributes-tp153215p153216.html

You can't define dynamically the number of output attributes (or use something like java ellipsis). Why don't you use an output
attribute of type Map for these ?

Jacques

From: "jaki" <[hidden email]>

>
> How do I define the output attributes of a service if the number of output
> attributes and their names can't be decided until the program/service is
> run.
> For example, the returning map for my current service contains a list of
> products. But the number of products returned can change with a change in
> the db and also their key-names in the map since I'm naming each product
> corresponding to its position in the map (i.e. product1, product 2..etc)
> --
> View this message in context:
> http://www.nabble.com/defining-a-service-with-variable-number-of-output-attributes-tp17624305p17624305.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>