on 01-24-2008 4:02 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Found the solution in another thread!
Thanks !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.