cancel
Showing results for 
Search instead for 
Did you mean: 

How do I "go deeper" in message popover?

156

I have the following code:

<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core">
<MessagePopover id="popoverNavCon" items="{ToMessages}">
<MessageItem title="{Msgtx}" type="{= ${Msgty} === 'E' ? 'Error' : ${Msgty} === 'W' ? 'Warning' : 'Success'}"/>
</MessagePopover>
</core:FragmentDefinition>
handleMessagePopoverPress: function (oEvent) {
var oButton = oEvent.getSource();
var oContext = oButton.getBindingContext();
var sPath = oContext.getPath();
// create popover
if (!this._oPopover) {
Fragment.load({
id: "popoverNavCon",
name: "InterfaceMonitor.InterfaceMonitor.view.PopoverMessage",
controller: this
}).then(function (oPopover) {
this._oPopover = oPopover;
this.getView().addDependent(this._oPopover);
this._oPopover.bindElement(sPath);
this._oPopover.openBy(oButton);
}.bind(this));
} else {
this._oPopover.bindElement(sPath);
this._oPopover.openBy(oButton);
}
},

It allows me to see the results from https://imodataservicep2001270708trial.hanatrial.ondemand.com/im-odata-service-2.0.0/Executions(Exei...

How do I add links to the items in the popover, so I could click and see its children messages in the same popever (ToChildred in the model, I suppose)? What is the proper way to do it?

Accepted Solutions (0)

Answers (0)