on ‎2020 Mar 12 1:21 PM
Hello,
its my first Application with SAPUI5 and JavaScript, so i try to work near the SAP Standards.
I created a smarttable with a Date on the leftside and some Boolean Values on the rightside. What i have to do is to resize the width from my Date Column because my View looks like this:

Following is my Coding of my View:
<IconTabFilter text="Headline">
<smartFilterBar:SmartFilterBar id="smartFilterBar" persistencyKey="UniqueAndStablePersistencyKey" entitySet="TESTSet" enableBasicSearch="true" liveMode="true">
<smartFilterBar:controlConfiguration></smartFilterBar:controlConfiguration>
<smartFilterBar:layoutData>
<FlexItemData shrinkFactor="0"/>
</smartFilterBar:layoutData>
</smartFilterBar:SmartFilterBar>
<smartTable:SmartTable id="smartTableRepair" height="100%" smartFilterId="smartFilterBar" entitySet="TESTSet" editable="false" header="Headline2" useVariantManagement="false" useTablePersonalisation="false" showRowCount="false" useExportToExcel="true"
initiallyVisibleFields="Ordernr" showFullScreenButton="false" demandPopin="false" beforeRebindTable="onBeforeRebindTable" enableAutoBinding="true">
<Table growing="true" growingScrollToLoad="true"></Table>
</smartTable:SmartTable>
<smartTable:SmartTable id="TESTSet" height="100%" smartFilterId="smartFilterBar" entitySet="TESTSet" editable="false" header="Testheader" useVariantManagement="false" useTablePersonalisation="false" showRowCount="false" useExportToExcel="true" initiallyVisibleFields="Ordernr" showFullScreenButton="false" demandPopin="false" beforeRebindTable="onBeforeRebindTable" enableAutoBinding="true">
<Table growing="true" growingScrollToLoad="true">
</Table>
</smartTable:SmartTable>
</IconTabFilter>
So my Question:
Is is possible to change the width of the column "date" in a Smarttable like i choose? Can somebody explain me how to do it in the view?
Thanks and Regards
Nils
Request clarification before answering.
Hi nilslucas
Please use Width="SomeValue rem" like width="11rem" . It will work for your problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi nilslucas,
Try one of the following to see which meets best to requirements:
Regards,
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.