cancel
Showing results for 
Search instead for 
Did you mean: 

Feature Showcase App - Quick View Facet

rupert_nold
Explorer
0 Kudos

Dear experts,

can somebody help me with the Quick View Facet of a fiori application?

I followed exactly the description on the "SAP Fiori Element Feature Showcase App for the ABAP RESTful Application Programming Model"


Adding a Quick View Facet to a Table
https://github.com/SAP-samples/abap-platform-fiori-feature-showcase/wiki/Feature-Showcase-App-Guide#...

I have create a list:

And I have created a target with a quick view facet:

In the list the link is active. But when you click on it, it always shows a little popup: "No details available. This might happen if your access is restricted or the data is incomplete."

I have tried many variations, but the result ist always the same.

Does the semantic Object have to be created somewhere? How does the system know where to navigate? Is it following the ObjectModel.foreignKey.association? Or is it by the same semantic object name in the target CDS view?

I'm working on SAP BTP ABAP environment 2308 with OData V4 Service Binding.

In the Feature Showcase App it is working correctly, but I have not found the difference.

Thank you and kind regards,
Rupert

JessieCheah
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Rupert,

can you check the $metadata and see if there is a ReferentialConstraint property at the NavigationProperty? An example looks like this:

<NavigationProperty Name="_Navigation" Type="com.sap.gateway.srvd.dmo.ui_featureshowcaseapp.v0001.NavigationType">
<ReferentialConstraint Property="NavigationID" ReferencedProperty="ID"/>
</NavigationProperty>

Regards,

Jessie

rupert_nold
Explorer
0 Kudos

Hello Jessie,metadata.xml

hm, I have not found any ReferentialConstraint.

Attached is the content of the $metadata. Can you please have a look if it is OK?

Thank you.

JessieCheah
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Rupert, as you have noticed, the ReferentialConstraint is missing and this property tells the UI where to retrieve the data to show in QuickView. Unfortunately I do not see anything amiss, so unless someone else in the community has another idea, this is worth raising a ticket. You can use the component BC-ESI-ESF-GW.

Accepted Solutions (1)

Accepted Solutions (1)

rupert_nold
Explorer

Dear Community,

I just wanted to let you know about the solution. Thanks to the SAP support.

The ReferentialConstraint in $metadata file is missing since the the corresponding navigation property _QuickView and principal property are nullable = false, but dependent property is nullable.


For more information regarding OData referential constraints please check:
http://docs.oasis-open.org/odata/odata-csdl-xml/v4.01/cs01/odata-csdl-xml-v4.01-cs01.html#sec_Refere...


To get the field in the CDS view to nullable = false you have to set the addition not null in the database table.

define table /ja41/ivc_no_a {

key client : abap.clnt not null;
key note_uuid : /ja41/ivc_note_uuid not null;
case_uuid : /ja41/ivc_case_uuid not null
}

Then it is working.... 🙂

Maybe this point could be mentioned in the documentation section of the feature show case app.

Answers (0)