Conflicting limits in MockServer association and Gateway Modeller association
According to https://openui5.hana.ondemand.com/#docs/guide/c9a91ddaef47461c9c44bfc2198ea3f0.html „Due to a limitation of the mock server, you can not use the same association to describe a two-way navigation. If the navigation shall work for both directions, you need to define an appropriate association for each direction.” according to http://help.sap.com/saphelp_gateway20sp10/helpdata/en/b0/03dd7114824a53b5cc2865d6784985/content.htm „Principal Key: Enter a key property of the principle Entity Type. Use the input help to select an existing property.” i.e. in the SAP Gateway modelling transaction SEGW the fromRole of a association can only use key properties for referential integrity constraints, thus I can define the association only in one direction.
Unfortunately these conflicting limitation make building OPENUI5/SAPUI5 based applications accessing sap gateway odata services modelled with SEGW hard.
We currently add the referential constraints for the reverse direction manually with statements like
oMockServer._mEntitySets.AssignmentSet.navprops.DemandItem.from.propRef = ["DemandItemKey"];
oMockServer._mEntitySets.AssignmentSet.navprops.DemandItem.to.propRef = ["DemandItemKey"];
after starting the MockServer which seems to work but is not very nice...
Couldn't you relax this MockServer restriction and make the use of a association for both direction be available out-of-the-box?
Hi guter Wolf, thanks for reporting. I opened internal incident 1570529820 for this. We will come back to you when there is news on this one.
Best Regards, Martin
Hi, We are making sure to incorporate all feedback into the product, in hope of getting to it as soon as possible. We are treating your reported issue as a enhancement request, since it is not a regression from the delivered functionality. Regards, Gal
Hi all, colleagues regard this issue as and enhancement request. I asked them to provide an estimate as to when it will make it into the backlog.
Best Regards, Martin
@machwitt : What was the result of your question to the colleagues regarding time frame?
Hey @DerGuteWolf ! I just had a look into the internal incident and it actually states that this should be fixed with 28e1e7bb990399619eb9ea7bfcda3263aeabb623. Could you please check if this fits to your reported issue?
Hi @DerGuteWolf ,
I'll close the issue because of its fix. Feel free to reopen it if needed.
Thanks and Kind Regards, Diana, openui5 dispatcher
At least then the documentation is still wrong cf referenced page in the openui5 documentation. So please reopen the issue to fix at least the documentation. I will also recheck if the commit really fixes the problem.
You're right, sorry. Reopened here, reopened in our tracking system.
Thanks and Kind Regards, Diana,
Documentation was updated but the issue was not closed. Thanks to all of you bringing up this issue.
@flovogt unfortunately I do not see a change in the documentation. The ui5 documentation page linked above still has the sentence I cited. The problem with testing was/is that without documentation change I don't know exactly to expect and what not...