hi all,
i want to click to button,and open the FragmentDefinition dialog page.i want to get click getBindingContext and show the frangment..
can you help me please?
master page code:
var oContext = evt.getSource().getBindingContext(); this.oAlertDialog = sap.ui.xmlfragment("view.MapRMSA",oContext,this); this.oAlertDialog.open();
fragment xml:
<core:FragmentDefinition xmlns="sap.m" xmlns:l="sap.ui.layout" xmlns:core="sap.ui.core"> <Dialog title="RMSA"> <content> <Label id="label1" text="{company}"></Label> <Label id="label2"></Label> </content> <endButton> <Button text="Kapat" press="onDialogClose" /> </endButton> </Dialog> </core:FragmentDefinition>