Tableview - Zeile markieren und "Button" drücken

BusinessServerPages; Erstellung von Webapplikationen.

Tableview - Zeile markieren und "Button" drücken

Postby Julien5311 » Thu May 29, 2008 2:03 pm

Hallo Leute,

Ich habe eine TableView Tabelle und gebe ich meine interne Tabelle(Ausgabetabelle)aus. Das funktioniert es.
Nun weill gerne eine Zeile von dieser Ausgabe auswählen und "Botton" zu drucken, damit aus dem TableView zu lesen auf neue Seite.

Kann jemand dafür Idee zum Laufen bringen(Eventhandler)?
Layout:
<htmlb:tableView id = "Anzeigen"
design = "STANDARD"
width = "100%"
table = "<%= zhrp1000 %>"
headerVisible = "true"
selectionMode = "SINGLESELECT"
onRowSelection = "Anzeigen"
visibleRowCount = "20"
selectedRowIndex = "1"
selected
navigationMode = "BYPAGE"
onNavigate = "myOnNavigate" >


<htmlb:tableViewColumn columnName="objid" title="VeranstaltungsNummer">

</htmlb:tableViewColumn>
<htmlb:tableViewColumn columnName="short" title="Beschreibung">
</htmlb:tableViewColumn>
<htmlb:tableViewColumn columnName="stext" title="Kurzbeschreibung">
</htmlb:tableViewColumn>
<htmlb:tableViewColumn columnName="mc_stext" title="Beschriebung im DB">
</htmlb:tableViewColumn>
<htmlb:tableViewColumn columnName="begda" title="Beginndatum">
</htmlb:tableViewColumn>
<htmlb:tableViewColumn columnName="endda" title="Endedatum">
</htmlb:tableViewColumn>

<htmlb:button id= "weiter" text="weiter" onClick = "OnInputprocessing(weiter)" />


Danke für jede Hilfe..
Gauguin
Julien5311
.
.
 
Posts: 6
Joined: Thu May 29, 2008 2:03 pm

Postby Lee831 » Mon Apr 06, 2009 9:10 am

Hallo Gaugin,

versuch es mal hiermit. Das habe ich mir irgendwo zusammengesucht, aber es funktioniert. Du musst es an sich nur noch etwas auf deine Variablennamen anpassen.

Schöne Grüße
Christian

Code: [Select all] [Expand/Collapse] [Download] (Untitled.txt)
  1. data: myselectedrows type selectedrows,
  2.       wa_myselectedrows type line of selectedrows,
  3. data: tv_data type ref to cl_htmlb_event_tableview.
  4. data: tv type ref to cl_htmlb_tableview.
  5.  
  6.   tv ?= cl_htmlb_manager=>get_data&#40;
  7.   request      = runtime->server->request
  8.   name         = 'tableView'
  9.   id           = 'matlist' &#41;.
  10.   refresh myselectedrows.
  11.   tv_data = tv->data.
  12.   call method tv_data->get_rows_selected
  13.     receiving
  14.       selected_rows = myselectedrows.
  15.  
  16.   loop at  myselectedrows into wa_myselectedrows.
  17.     clear: wa_it_mlist, hmeng.
  18.     read table it_mlist into wa_it_mlist index wa_myselectedrows-index.
  19.     check sy-subrc = 0.
  20.  
  21. * Editierte Zelle abholen
  22.     call method tv_data->get_cell_value
  23.       exporting
  24.         row_index     = wa_myselectedrows-index
  25.         column_index = 5
  26. *    DEFAULT = ' '
  27.       receiving
  28.         value   = hmeng. "wa_it_mlist-bmeng
  29.  
GeSHi ©
Lee831
..
..
 
Posts: 13
Joined: Wed Nov 16, 2005 6:28 pm


Return to BSP + BHTML

Who is online

Users browsing this forum: No registered users and 6 guests