Skip to Content
0
Former Member
Jul 15, 2016 at 11:02 AM

Adding the button in the Footer of table select Dialog

3543 Views

Hi,

I am trying to add a button in the footer area of table select dialog which is present inside a fragment.I am trying to edit some fields in the table select Dialog and want to add a save button in the footer.but I am unable to add any button in the footer area.

I have given the code of the fragment as well as the method in the controller which is defining it.

Kindly suggest.

<core:FragmentDefinition xmlns="sap.m"

xmlns:core="sap.ui.core">

<TableSelectDialog id="tableSelectDialog" noDataText="{i18n>NO_GOODS_MOVEMENT_LABEL}"

title="{i18n>GOODS_MOVEMENT_TITLE}" search="doTableDialogSearch">

<columns>

<Column>

<header>

<Text text="{i18n>MATERIAL}" />

</header>

</Column>

<Column minScreenWidth="Tablet" demandPopin="true">

<header>

<Text text="{i18n>STORAGE_LOCATION_LABEL}" />

</header>

</Column>

<Column minScreenWidth="Tablet" demandPopin="true" hAlign="Right">

<header>

<Text text="{i18n>BATCH_NO_LABEL}" />

</header>

</Column>

<Column hAlign="Right">

<header>

<Text text="{i18n>QUANTITY_LABEL}" />

</header>

</Column>

</columns>

<ColumnListItem>

<cells>

<Text class="sapPPHeaderText" text="{MaterialNo}" />

<Text text="{StorageLocation}" />

<Text text="{BatchNo}" />

<ObjectNumber number="{EntryQuantity}" unit="{EntryUOM}" />

</cells>

</ColumnListItem>

</TableSelectDialog>

</core:FragmentDefinition>

Controller.js

if (!this._oDialog) {

this._oDialog = sap.ui

.xmlfragment(

"i2d.pp.prodorder.confirm.view.fragment.GoodsMovement",

this);

this._oTemplate = this._oDialog._oTable.getItems()[0]

.clone()

}

I am getting only cancel button which is part of table select dialog, i guess.Apart from that i am not able to add any button like save.