cancel
Showing results for 
Search instead for 
Did you mean: 

Fiori Elements List Report navigation using filter parameter

Former Member

I am investigating if I can somehow navigate to a list report view of a Fiori Elements application with a certain filter applied.

The UI5 Documentation states:

"SAP Fiori elements automatically process inbound navigation. ... If the parameters provided are specific enough to define an instance, the app navigates directly to the object page. Otherwise, the list report is shown, with filters set according to the provided parameters."

So I am looking for some guidance or examples of how to configure such navigation that I can move from the object page of one application to the list report of another one with the correct filter applied.

Thanks for any help on this.

Armin

Accepted Solutions (1)

Accepted Solutions (1)

gregorw
Active Contributor

Dear Armin,

seems I'm not the only one searching for an answer. But I think I've made it work. I've just created an Intent Parameters which is named exactly as one of the attributes of the Entity Set. So i.e. if you Entity Set is Products and you have an Attribute Category you just specify Category in the Name field and a the value you want to filter for in the Value field. This field of the filter bar is then pre-filled with the value. But now I'm looking for a possibility to start the search directly. Perhaps you've found a solution to that and can answer my question: Fiori Elements List Report Filter Bar update mode.

Best regards
Gregor

lfrey91
Participant
0 Kudos

hi Gregor,

i tryed, but i failed.. 😄

Called URL:

https://XYZ.../sap/bc/ui2/flp#MaterialBOM-pia_maintenance?MaterialForEdit=16&sap-app-origin-hint=&sap-appvar-id=customer.ZHK1813V2&sap-xapp-state=TASY63YT8FTT7YGC2P3SZWUTW42M12GN6V8S2C028&source=MaterialBOM&type=E&/?sap-iapp-state--history=TASHIIPYLR2O26D149BMP363MGBJEOJFNY8QJXLHL&sap-iapp-state=AS04703KULXK5JF8JACARAX7XJEVGMORW4Q3PXTZ

Code which calles the URL:

onStuecklisten: function(oEvent) {

//Naviagation auf List Report übergabe Materialien

var vSemanticObject = 'MaterialBOM';

var vAction = 'pia_maintenance';

var vMaterial = '16';

// var Workplace = this.getView().byId("idWorkplace").getValue();

var oCrossAppNavigator = sap.ushell.Container.getService("CrossApplicationNavigation"); //get a handler on global xnav service

var oAppState = oCrossAppNavigator.createEmptyAppState(this.getOwnerComponent());

var hash = (oCrossAppNavigator && oCrossAppNavigator.hrefForExternal({

target: {

semanticObject: vSemanticObject,

action: vAction

},

params: {

"source": vSemanticObject,

"type": "E",

"sap-appvar-id": 'customer.ZHK1813V2',

"MaterialForEdit": vMaterial

},

appStateKey: oAppState.getKey()

})) || "";

oCrossAppNavigator.toExternal({

target: {

shellHash: hash

}

});

},

thanks,

Luis

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Gregor,

thanks for your answer, this worked for me as well!

Regards, Armin

Joseph_BERTHE
Active Contributor
0 Kudos

Hello,

Did you find a solution ? I would like to use selectionVariant to acheive this, is it possible ? In my scenario, I want to navigate from an OverviewPage which a card have some search creteria (thanks to selecectionVariant). I want to forward those criteria to my ListReport.

Regards,

Joseph

0 Kudos

Hi Joseph,

I also have the same requirement . Did you find any solution ? If yes, please let me know how to achieve this.

Br,

Pankaj Pandey