defining a service with variable number of output attributes

Posted by Jaki-2 on
URL: http://ofbiz.116.s1.nabble.com/defining-a-service-with-variable-number-of-output-attributes-tp153215.html

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)