Skip to Content
May 04, 2016 at 02:54 PM

FragmentDefinition data binding


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);;

fragment xml:

<core:FragmentDefinition xmlns="sap.m" xmlns:l="sap.ui.layout" xmlns:core="sap.ui.core">
  <Dialog title="RMSA">
  <Label id="label1" text="{company}"></Label>
  <Label id="label2"></Label>
  <Button text="Kapat" press="onDialogClose" />