on 07-17-2015 9:19 AM
Hi experts,
I am facing an issue that I can't figure out.
I will try to simplify my problem to make it understandable:
I have three entities, demand, position and grappe.
You can find the graph in attached file
Demand's table is stored in a real database, when position and grappe are stored in a cluster database. The id of the cluster is saved in demand.
I can't have a direct access to the positions because I need to know the id of the cluster, so all my URL are build this way :
.../DemandSet('0')/PositionSet
.../DemandSet('0')/GrappeSet
.../DemandSet('0')/PositionSet('0')/Grappe etc
But when I call ".../DemandSet('0')/PositionSet('0')?$expand=Grappe, it called the method GrappeSet_GetEntity but the source is Position and not demand. If I do not have the parameter of Demand, do not have the id of the cluster and then I cannot access my data.
Really appreciate your help !
Please let me know if you need more information from me.
Hello Travaux,
With the URL /DemandSet('0')/PositionSet('0')?$expand=Grappe, i see you are mixing both Data Provider Expand and Frame Work Expand in a single URL.
I would Suggest to implement Data Provider Expand alone and accomplish it.
Like ->
/DemandSet('500000005')?$expand=DemandToPosition/PositionToGrappe
Implement Get_Expand_Entity method of your DPC_EXT class and Get the Position ID from the Demand ID. Now then get Grappe data based on Both the above Position & Demand ID's.
Fill these data inside a Deep Structure Correctly and send as GW Response.
Check this for technical help ->
Regards,
Ashwin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
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.