cancel
Showing results for 
Search instead for 
Did you mean: 

CE7.1 SP3/SP4 Application service - complex return type

Former Member
0 Kudos

Hi all,

can anybody tell me how to create an operation with a complex return type (collection) within an application service.I can't find it in the documentation!

I would appreciate helpful answers.

BR,

Martin

Accepted Solutions (1)

Accepted Solutions (1)

ashutosh_rastogi
Active Contributor
0 Kudos

Hi,

It isnt that tough ... following are the steps ..

Suppose you want to return a list of customers. First create a structure "Customer". Once that is done create another structure "CustomerList" ... now add "Customer" to it as the attribute. Set the cardinality of this "Customer" attribute as 0-n or 1-n ...

Thats it .. Hope this helps.

Ashutosh

Answers (2)

Answers (2)

Former Member
0 Kudos

Found the solution in another thread!

Thanks !

former_member4529
Active Contributor
0 Kudos

Hi,

If you use NW 7.0 you can specify the return type of an application service operation as List in the property editor. But in NW CE 7.1 it's not possible that way. You need to create a new data structure where you add child attributes and data structures specifying the cardinality (0...n) and add the parent data structure as the return type of the operation. You can follow this solution for NW 7.0 as well.

Thanks,

Dipankar