on 03-06-2019 10:47 AM
Hello,
I want to add a Checkbox at the header level of sap.m.TableSelectDialog,which is not available in standard control.
I know we can achieve by extending a standard control but I am not sure whether I can add it in aggregation level or property level in metadata section.
Please guide or provide me any reference link.
Regards,
venkatesh.
Hi,
Instead of tableSelectDialog , you can simply use Dialog.
In the dialog , you can use <f:DynamicPage> in , it contains header and you can add controls there
you can refer to following fragment example:
<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core">
<Dialog title="Sample">
<Text text="Sample text other than table" />
<Table id="viewtable" headerText="Comapany Info" class="sapUiResponsiveMargin" width="auto"
items="{/data}">
<headerToolbar>
<Toolbar>
<Title text="Search Document Number"/>
<ToolbarSpacer/>
<SearchField width="50%" search="onSearch"/>
</Toolbar>
</headerToolbar>
<columns>
<Column hAlign="Center">
<Text text="Item1"/>
</Column>
<Column hAlign="Center">
<Text text="Item2"/>
</Column>
<Column hAlign="End" demandPopin="true" minScreenWidth="small">
<Text text="Item3"/>
</Column>
<Column hAlign="End" demandPopin="true" minScreenWidth="small">
<Text text="Item4"/>
</Column>
<Column hAlign="End" demandPopin="true" minScreenWidth="small">
<Text text="Item5"/>
</Column>
</columns>
<items>
<ColumnListItem type="Navigation" press="onPress">
<cells>
<Text text="{item1}"/>
<Text text="{item2}"/>
<Text text="{item3}"/>
<Text text="{item4}"/>
<Text text="{item5}"/>
</cells>
</ColumnListItem>
</items>
</Table>
<endButton>
<Button text="Cancel" press="onClose" />
</endButton>
</Dialog>
</core:FragmentDefinition>
🙂
Best Regards,
Rajvardhan Thakare
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.