Skip to Content
author's profile photo Former Member
Former Member

tableview index based on button

hai all,

i added a button to my tableview as a tablecolumn, now i need to findindex when i click on this button

here i am giving my code.

<innu:tableView id = "tbl"

design = "ALTERNATING"

headerText = "Sales Order Details"

headerVisible = "true"

footerVisible = "False"

fillUpEmptyRows = "TRUE"

visibleRowCount = "<%= page_rows %>"

onHeaderClick = "MyEventHeaderClick"

onRowSelection = "MyEventRowSelection"

table = "<%=gt_vbap %>"

keepSelectedRow = "TRUE"

columnWrapping = "TRUE"

visibleFirstRow = "<%= pageindex * page_rows - 19 %>"

iterator = "<%= iterator%>" >

<innu:tableViewColumns>

<innu:tableViewColumn columnName="Add Items"

type = "button"

title = "Add to cart"

cellDesignKey = "STANDARD"

horizontalAlignment="CENTER"

onItemClick=" ">

</innu:tableViewColumn>

<innu:tableViewColumn columnName="VBELN"

fixedColumn="FALSE">

</innu:tableViewColumn>

<innu:tableViewColumn columnName="POSNR">

</innu:tableViewColumn>

<innu:tableViewColumn columnName="MATNR"

edit="TRUE">

</innu:tableViewColumn>

<innu:tableViewColumn columnName="MATWA"

>

</innu:tableViewColumn>

<innu:tableViewColumn columnName="PMATN">

</innu:tableViewColumn>

<innu:tableViewColumn columnName="CHARG">

</innu:tableViewColumn>

<innu:tableViewColumn columnName="MATKL">

</innu:tableViewColumn>

<innu:tableViewColumn columnName="ARKTX">

</innu:tableViewColumn>

<innu:tableViewColumn columnName="PSTYV">

</innu:tableViewColumn>

<innu:tableViewColumn columnName="POSAR">

</innu:tableViewColumn>

<innu:tableViewColumn columnName="LFREL">

</innu:tableViewColumn>

<innu:tableViewColumn columnName="FKREL">

</innu:tableViewColumn>

<innu:tableViewColumn columnName="UEPOS">

</innu:tableViewColumn>

<innu:tableViewColumn columnName="GRPOS">

</innu:tableViewColumn>

<innu:tableViewColumn columnName="ABGRU">

</innu:tableViewColumn>

<innu:tableViewColumn columnName="PRODH">

</innu:tableViewColumn>

<innu:tableViewColumn columnName="ZWERT">

</innu:tableViewColumn>

</innu:tableViewColumns>

</innu:tableView>

plz send imm't response if anyone knows...

leoiz

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 17, 2004 at 03:44 PM

    Hello leoiz,

    First you have to get the data from tableview like this :

    tableview ?= cl_htmlb_manager=>

    get_data( request = request

    name = 'tableView'

    id = 'tv1' ).

    The index can be found with :

    x_row = tableview->data->rowselection.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.