Skip to Content

Not able to get checkbox in table for the multiselect of the row.

view

<t:Table rows="{/ProductCollection}" title="" selectionMode="MultiToggle"

  visibleRowCount="5" >

  <t:columns >

      <t:Column width="11rem">

  <Label text="{i18n>Tablelable1}" />

  <t:template>

  <Text text="{sender cost}" />

  </t:template>

  </t:Column>

  <t:Column width="11rem">

  <Label text="{i18n>Tablelable2}" />

  <t:template>

  <Text text="{sender activity}" />

  </t:template>

  </t:Column>

  <t:Column width="11rem">

  <Label text="{i18n>Tablelable3}" />

  <t:template>

  <Link text="{profitability}" />

  </t:template>

  </t:Column>

  <t:Column width="11rem">

  <Label text="{i18n>Tablelable4}" />

  <t:template>

  <Text text="{quantity}" />

  </t:template>

  </t:Column>

  <t:Column width="11rem">

  <Label text="{i18n>Tablelable5}" />

  <t:template>

  <Text text="{UoM}" />

  </t:template>

  </t:Column>

  <t:Column width="11rem">

  <Label text="{i18n>Tablelable6}" />

  <t:template>

  <Text text="{description}" />

  </t:template>

  </t:Column>

  <t:Column width="11rem" >

  <Label text="{i18n>Tablelable7}" />

  <t:template>

  <Text text="{amount}" />

  </t:template>

  </t:Column>

  <t:Column width="11rem" >

  <Label text="{i18n>Tablelable8}" />

  <t:template>

  <Text text="{currency}" />

  </t:template>

  </t:Column>

  <t:Column width="11rem" >

  <Label text="{i18n>Tablelable9}" />

  <t:template>

  <Text text="{GL Account}" enabled="false" />

  </t:template>

  </t:Column>

  </t:columns>

  </t:Table>

Implemented this code but not getting checkbox

checked in SAPUI5 Explored here checkbox is there for selection but the same code is not working for me.

And the last three columns i wanted to make it disabled as given in the below expected output screen so the user cannot edit that field . Which property do i need to use it for that ?

Output

Expected output

kindly give your suggestion

Regards,

Abhishek lohiya

screen1.PNG (20.3 kB)
screen2.PNG (23.6 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Nov 03, 2015 at 01:07 PM

    Hi Abhishek,


    Add style class to your table "sapUiSizeCompact" (or)  "sapUiSizeCozy".

    Check this sample from explored: SAPUI5 Explored

    Regards,

    Sai Vellanki.

    Add comment
    10|10000 characters needed characters exceeded