cancel
Showing results for 
Search instead for 
Did you mean: 

Fiori Worklist automatically filter through inbound parameter

0 Kudos

Dear experts,

I have two Fiori Elements apps, both based on the Listreport - Objectpage template. My apps expose an inbound parameter, so that calling applications can filter the list based on an external reference. Taken from here, Point 4:

https://blogs.sap.com/2019/05/22/10-interesting-hacks-for-ui5-apps-using-fiori-elements-object-page-...

The relevant section in manifest.json

    "sap.ui.generic.app": {
      "_version": "1.3.0",
      "settings": {
        "inboundParameters": {
            "parent_externalreference": {
                "useForCreate": true
            }
        },

For the "vanilla" Fiori Listreport app this works well. When the parameter is given the list is automatically filtered with the supplied value. The parameter name is exactly the same as the property that is being filtered by. Metadata:

<EntityType Name="OrderItems">
<Key>
<PropertyRef Name="ID"/>
</Key>
<Property Name="ID" Type="Edm.Guid" Nullable="false"/>
<NavigationProperty Name="parent" Relationship="ResellerService.OrderItems_parent" FromRole="OrderItems" ToRole="Orders"/>
<NavigationProperty Name="app" Relationship="ResellerService.OrderItems_app" FromRole="OrderItems" ToRole="Apps"/>
<Property Name="quantity" Type="Edm.Int32"/>
<Property Name="parent_externalreference" Type="Edm.String" MaxLength="10"/>
<Property Name="app_ID" Type="Edm.Guid"/>
</EntityType>

Now the problem is with my second app. It's also a Listreport, but with the isWorkList option:

        "ListReport|OrderItems": {
          "entitySet": "OrderItems",
          "component": {
            "name": "sap.suite.ui.generic.template.ListReport",
            "list": true,
            "settings": {
                "multiSelect": true,
                "variantManagementHidden": true,
                "isWorkList": true
            }
          }
        }

It appears that the isWorkList option breaks the inbound parameter / automatic filtering.

Is there a way to filter a Worklist automatically by an inbound parameter value?

Accepted Solutions (0)

Answers (0)