openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

Conflicting limits in MockServer association and Gateway Modeller association

Open DerGuteWolf opened this issue 11 years ago • 10 comments

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?

DerGuteWolf avatar Jun 24 '15 16:06 DerGuteWolf

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

machwitt avatar Jun 26 '15 14:06 machwitt

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

galroter-sap avatar Jun 30 '15 13:06 galroter-sap

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 avatar Jul 23 '15 14:07 machwitt

@machwitt : What was the result of your question to the colleagues regarding time frame?

DerGuteWolf avatar Sep 01 '16 09:09 DerGuteWolf

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?

matz3 avatar Sep 09 '16 13:09 matz3

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

DMihaylova avatar Dec 02 '16 13:12 DMihaylova

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.

DerGuteWolf avatar Dec 02 '16 14:12 DerGuteWolf

You're right, sorry. Reopened here, reopened in our tracking system.

Thanks and Kind Regards, Diana,

DMihaylova avatar Dec 02 '16 16:12 DMihaylova

Documentation was updated but the issue was not closed. Thanks to all of you bringing up this issue.

flovogt avatar Mar 03 '22 16:03 flovogt

@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...

DerGuteWolf avatar Mar 03 '22 17:03 DerGuteWolf