cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Smarttable fields not become editable when I press the edit button

MihalceaGeorgian
Explorer
0 Likes
812

Hello all

In my SmartTable (UI5) i set my EntitySet which comes from Rap Backend. Here the fields are set as read only. When i bind this fields to smartField it works as expected. The Fields are read only. I want that when I press the toggle button display/edit some columns to become editable but I do not succeed.

 

< smartTable:SmartTable id="LineItemsSmartTable" entitySet="ZEWM_C_MATERIAL" smartFilterId="smartFilterBar" tableType="ResponsiveTable"
                placeToolbarInTable="true" enableExport="true" beforeExport="onBeforeExport" useVariantManagement="true" useTablePersonalisation="true" header="Line Items"
                showRowCount="true" persistencyKey="listReportFloorplanTable" enableAutoBinding="true" class="sapUiResponsiveContentPadding"
                enableAutoColumnWidth="true" editTogglable="true" showDetailsButton="true" detailsButtonSetting="Medium,Low" demandPopin="true"
                app:useSmartField = "true" editToggled="onEditToggled">
                    <smartTable:layoutData>
                        <m:FlexItemData id="_IDGenFlexItemData2" growFactor="1" baseSize="0%"/>
                    </smartTable:layoutData>
                    <m:Table id="_IDGenTable" sticky="ColumnHeaders,HeaderToolbar" growing="true" growingThreshold="20" />
                </smartTable:SmartTable>
This is my smart table code.
Does anyone know why I might be having trouble getting my SmartField to render in edit mode? No matter what I do, it seems to insist on being display-only.

Accepted Solutions (1)

Accepted Solutions (1)

junwu
SAP Champion
SAP Champion

check your metadata

if the entity is update enabled, if the individual fields are update enabled.

MihalceaGeorgian
Explorer
0 Likes

I have checked the metadata and the entity update is on false. Can you please help me with a guidance in order to move it to true ? Thank you in advance

junwu
SAP Champion
SAP Champion
depends on how your odata is implemented at backend.

Answers (0)