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:tableViewColumn columnName="Add Items"

type = "button"

title = "Add to cart"

cellDesignKey = "STANDARD"


onItemClick=" ">


<innu:tableViewColumn columnName="VBELN"



<innu:tableViewColumn columnName="POSNR">


<innu:tableViewColumn columnName="MATNR"



<innu:tableViewColumn columnName="MATWA"



<innu:tableViewColumn columnName="PMATN">


<innu:tableViewColumn columnName="CHARG">


<innu:tableViewColumn columnName="MATKL">


<innu:tableViewColumn columnName="ARKTX">


<innu:tableViewColumn columnName="PSTYV">


<innu:tableViewColumn columnName="POSAR">


<innu:tableViewColumn columnName="LFREL">


<innu:tableViewColumn columnName="FKREL">


<innu:tableViewColumn columnName="UEPOS">


<innu:tableViewColumn columnName="GRPOS">


<innu:tableViewColumn columnName="ABGRU">


<innu:tableViewColumn columnName="PRODH">


<innu:tableViewColumn columnName="ZWERT">




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


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.