on 04-05-2024 4:06 PM
Hello Gurus,
I'm new to SAPUI5 and need help with one issue.
I have a button on the UI and when the user clicks it, a dialog(wrapped in Fragment) opens. The dialog has two columns "Book" and "Quantity". I want this "Quantity" field to be editable by default, without clicking any button.
It is important not to redefine table columns on the frontend side, i.e. using CustomData (in fragment.xml) is not the answer.
Would be grateful for any useful tips and idea(s).
Thank You!
My fragment.xml
<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns:f="sap.ui.layout.form" xmlns:l="sap.ui.layout"
xmlns:smartTable="sap.ui.comp.smarttable" xmlns="sap.m" xmlns:smartFilterBar="sap.ui.comp.smartfilterbar">
<Dialog title="Books" contentWidth="65rem" contentHeight="40rem" id="idBooksDialog" showHeader="true"
type="Standard" draggable="true" resizable="true" afterOpen="onBooksDialogAfterOpen">
<content>
<Page id="idBooksDialog.page" title="" showHeader="false">
<content>
<smartTable:SmartTable id="idBooksDialog.smartTable"
header="{Books}" entitySet="ZC_MyBooks" tableType="ResponsiveTable"
useVariantManagement="false" useExportToExcel="false" showRowCount="true" showVariantManagement="false" showTablePersonalisation="false"
enableAutoBinding="true" placeToolbarInTable="true" noData="{No Books}">
<Table id="idBooksDialog.responsiveTable" growing="true" growingScrollToLoad="true" growingThreshold="25"
sticky="ColumnHeaders,HeaderToolbar"/>
</smartTable:SmartTable>
</content>
<footer>
<Toolbar id="idBooksDialog.toolbar">
<content>
<ToolbarSpacer id="idBooksDialog.toolbarSpacer"/>
</content>
</Toolbar>
</footer>
</Page>
</content>
</Dialog>
</core:FragmentDefinition>
User | Count |
---|---|
80 | |
11 | |
10 | |
8 | |
8 | |
6 | |
6 | |
6 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.