Skip to Content
0

How to divide rows and columns in a table with xml view in SAP UI5

Dec 24, 2016 at 01:56 PM

85

avatar image

I was currently working on UI5 .I need to divide the rows and columns of a table in SAP UI5.What is the approach for that.Suggest me.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Jun Wu Dec 24, 2016 at 03:18 PM
1

what are u talking about...............

Share
10 |10000 characters needed characters left characters exceeded
Sai Thota Dec 24, 2016 at 04:26 PM
0

I have to divide the columns in a table using xml code in sap ui5

Share
10 |10000 characters needed characters left characters exceeded
Noufal Farah Dec 25, 2016 at 06:48 PM
0

Hello,

Your requirement is not very clear. If you want to use Table Control, You can take this example :

Columns are declared independently from rows. If you want to modify this case, please elaborate more and members will respond to your request.

<Table id="idProductsTable" inset="false" items="{    path: '/ProductCollection',    sorter: {     path: 'Name'    }   }">
   <headerToolbar>
      <Toolbar>
         <Title text="Products" level="H2" />
      </Toolbar>
   </headerToolbar>
   <columns>
      <Column width="12em">
         <Text text="Product" />
      </Column>
      <Column minScreenWidth="Tablet" demandPopin="true">
         <Text text="Supplier" />
      </Column>
      <Column minScreenWidth="Tablet" demandPopin="true" hAlign="Right">
         <Text text="Dimensions" />
      </Column>
      <Column minScreenWidth="Tablet" demandPopin="true" hAlign="Center">
         <Text text="Weight" />
      </Column>
      <Column hAlign="Right">
         <Text text="Price" />
      </Column>
   </columns>
   <items>
      <ColumnListItem>
         <cells>
            <ObjectIdentifier title="{Name}" text="{ProductId}" />
            <Text text="{SupplierName}" />
            <Text text="{Width} x {Depth} x {Height} {DimUnit}" />
            <ObjectNumber number="{WeightMeasure}" unit="{WeightUnit}" state="{        path: 'WeightMeasure',        formatter: 'sap.m.sample.Table.Formatter.weightState'       }" />
            <ObjectNumber number="{         parts:[{path:'Price'},{path:'CurrencyCode'}],         type: 'sap.ui.model.type.Currency',         formatOptions: {showMeasure: false}        }" unit="{CurrencyCode}" />
         </cells>
      </ColumnListItem>
   </items>
</Table>				
Share
10 |10000 characters needed characters left characters exceeded