Hi,
i am using a sap m table with mode as singleselect. Below is the screenshot of table:
and here is the code used for displaying the above table in xml :
<l:Grid defaultSpan="L12 M12 S12" id="redforscan">
<l:content>
<Table id="S1Table2" growing="true" growingScrollToLoad="true"
layout="ResponsiveGridLayout" inset="false" width="100%" mode="SingleSelectLeft">
<columns id="S1Table2_columns">
<Column id="S1Table2_col1" minScreenWidth="Tablet" hAlign="Left"
demandPopin="true">
<header id="S1Table2_col1_header">
<Text id="S1Table2_col1_label" text="{i18n>S1tab2col1Text}" />
</header>
</Column>
<Column id="S1Table2_col2" minScreenWidth="Tablet"
demandPopin="true">
<header id="S1Table2_col2_header">
<Text id="S1Table2_col2_label" text="{i18n>S1tab2col2Text}" />
</header>
</Column>
<Column id="S1Table2_col3" minScreenWidth="Tablet" width="11em"
hAlign="Center" demandPopin="true">
<header id="S1Table2_col3_header">
<Text id="S1Table2_col3_label" text="{i18n>S1tab2col3Text}" />
</header>
</Column>
<Column id="S1Table2_col4" minScreenWidth="Tablet" hAlign="Center"
demandPopin="true">
<header id="S1Table2_col4_header">
<Text id="S1Table2_col4_label" text="{i18n>S1tab2col4Text}" />
</header>
</Column>
<Column id="S1Table2_col5" minScreenWidth="Tablet" hAlign="Center"
demandPopin="true">
<header id="S1Table2_col5_header">
<Text id="S1Table2_col5_label" text="{i18n>S1tab2col5Text}" />
</header>
</Column>
<Column id="S1Table2_col6" minScreenWidth="Tablet" hAlign="Center"
demandPopin="true">
<header id="S1Table2_col6_header">
<Text id="S1Table2_col6_label" text="{i18n>S1tab2col6Text}" />
</header>
</Column>
<Column id="S1Table2_col7" minScreenWidth="Tablet" hAlign="Center"
demandPopin="true">
<header id="S1Table2_col7_header">
<Text id="S1Table2_col7_label" text="{i18n>S1tab2col7Text}" />
</header>
</Column>
</columns>
</Table>
</l:content>
</l:Grid>
I am not able to get the index of the selected row as i need to navigate to next view depending on the index of current views table.
Please suggest a way to get the index of selected row as soon as possible.
Thanks,
Saurabh.