Skip to Content

Adding entity with parameter as navigation in xsodata services

Hi,

I want to add navigation property to my oData services. I want to add a navigation property with a parameter. And of course I want to know how to construct the URL.

I have a calculation view with all players and a calculation view with all transfervalues. The results from the view with the transfervalues has key fields PLAYER_ID and TEAM_ID. This view also has a input parameter IP_PLAYER_ID to make sure the values of only 1 player is being calculated.

I've tried it with a generated key, parameters via entity and a lot of other things but I am not able to make it work.

Example

"wve.calcviews.dim::Player" as "Player" key ("id")
navigates("TransferValueAssociation" as "TransferValues"); "wve.calcviews.dim::TransferValue" as "TransferValue" key("PLAYER_ID", "TEAM_ID")
parameters via key and entity "TransferValueParam"
results property "Results"; association via parameters "TransferValueAssociation"
principal "Player"("id") multiplicity "1"
dependent "TransferValue"("PLAYER_ID") multiplicity "*";

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Apr 06 at 01:31 PM

    Is it possible to give the key of an entity to an input parameter of an associated entity?

    Add comment
    10|10000 characters needed characters exceeded