Skip to Content
0
May 29, 2020 at 05:14 AM

Smart Field in a Dialog In Fiori Element List Report Action button

521 Views

Hi all,

I have requirement in which a Fiori List Report Action button will open a dialog Pop up for user input and based on the input the page navigates to object using code below in ListReport Extension

var sPath = "/ZCDS_XXX_C_NewEntry('" + oEntryNumber + "')";

var oContext = new sap.ui.model.Context(this.getView().getModel(), sPath);
this.getView().getController().extensionAPI.getNavigationController().navigateInternal(oContext);

oContext above is created by oModel.create method and navigation is different as we have usually from List Report table record click .

My isssue was the Dialog Popup which was for user input was a fragment and keeping a smart field inside was not recognizing the field as there cant be binding context to Dialog.

How can we attach a binding for Dialog that was opened in list report action button to recogize the smart input field ?

Regards

Prasad