on 09-02-2022 11:44 AM
I have picked up a strange problem with Fiori Elements when displaying an entity with a GUID as key and then a semantic key used as a selection field on screen. When using the screen without doing a search, everything works fine and when you click to view the details, you can see in network tab a correct drilldown calling URL:
GET Books(ID=f41ea387-5337-446c-9cbe-6062ad8ff851,IsActiveEntity=true)
However if you enter something in the semantic key search field, it for some reason starts getting added to the GET when navigating to details page:
GET Books(ID=f41ea387-5337-446c-9cbe-6062ad8ff851,IsActiveEntity=true,code=201)
As you can imagine, the back-end rejects this GET as code is not a key and you are greeted with error screen image.png.
I tested this on the sample Bookshop example and was able to reproduce the same error so this is not something in my code. I noted that the problem is linked to making the semantic key a ValueList field and hence the search is not a '=201' but rather specific to just '201' in the search field. I do not know why and how this would affect the screen when now navigating to detail page.
See steps below in order to reproduce. Please let me know if I am doing something wrong here or if this is indeed a bug on Fiori Elements itself.
Your environment:
Steps to reproduce:
annotate service.Books with {
@(Core.Computed, Common.Text: title)
ID;
@Common.ValueList : {
$Type : 'Common.ValueListType',
CollectionPath : 'Books',
FetchValues : 1,
Parameters : [
{
$Type : 'Common.ValueListParameterInOut',
LocalDataProperty : code,
ValueListProperty : 'code',
InitialValueIsSignificant : true,
},
],
}
@Core.Immutable
code
};
UI.SelectionFields : [
code
],
Additional information (if applicable):
OSS was raised and SAP has come back with a fix in version 1.105.2 of SAPUI5 libraries. I can confirm the fix is working as expected.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
11 | |
10 | |
8 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.