on 04-14-2017 12:41 PM
Hi Team,
We have a requirement to create an OData Services with complex type . Structure of this type is as follows
Parent structure
Header name- TESTFR
-------- Table of Child Structure
-------- Vehicle Num : 876787
---------LIC Plate : YUII
Header name - TESTSM
-----TABLE of child structure
End of parent structure.
Please let me know if any one has done this type of requirement.
I tried this with GET_EXPAND_ENTITYSET but I am not getting data in desired format.
Hi,
Do we have any other way to display the structure exactly like this below.
Parent structure
Header name- TESTFR
-------- Table of Child Structure
-------- Vehicle Num : 876787
---------LIC Plate : YUII
Header name - TESTSM
-----TABLE of child structure
End of parent structure.
Regards
Shaik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
This is the expected output of Gateway Client when you use expanded entityset. It will always display Child entries first and Parent entity details will be displayed at the end.
Regards,
Karan Shaheri.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Where are you checking the data display? Can you provide the screenshot?
Regards,
Karan Shaheri.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Karan,
I already done that in the same manner, but the data is getting displayed in the reverse way.
Child data is coming above , once child data is completed Parent data is getting displayed.
I need the data to be displayed in parent and child relation ship manner correctly. I don't know what I am missing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can create one entity for Parent structure and another entity with child structure. Create Association and Navigation from Parent entity to Child entity.
Once association and navigation are done, implement GET_EXPAND_ENTITYSET method to fetch the data.
Regards,
Karan Shaheri.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
You can model this type with correct navigation and cardinality between the entities.
But if you want to pass inputs as table then Complex Types cannot be used and is only intended for defining the structures.
Can you share the current model and details on how entities are defined and associated ?
Regards,
Ashwin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ashwin,
Please find the Navigation details and the cardinality between the entities and the output I am getting for the get expanded entityset.
Please let me know where I am doing wrong.
Thanks
Shaik
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.