Tableview - LineEdit

Hi Forum,
I want to update some columns on a tableview. I have seen that the attribute selectionmode has an option called lineedit...
Anybody has an example or a guide how to perform that¿?
Thanks in advance, regards.
Mon

hi Mon
Here is an example of Lineedit..
<b>Code IN Page Layout</b>
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<%@extension name="xhtmlb" prefix="xhtmlb" %>
<htmlb:content id     = "content"
               design = "design2002+design2003" >
  <htmlb:page>
    <htmlb:form>
      <xhtmlb:protectDoubleSubmit timer="1" />
      <htmlb:group>
        <htmlb:groupHeader>
          <htmlb:textView text="SFLIGHT Table: LINEEDIT" />
        </htmlb:groupHeader>
        <htmlb:groupBody>
          <htmlb:tableView id                   = "tvX"
                           width                = "100%"
                           visibleRowCount      = "8"
                           selectedRowIndex     = "<%= selectedRowIndex %>"
                           selectionMode        = "LINEEDIT"
                           focus1stSelectedCell = "X"
                           table                = "<%= sflight %>" />
        </htmlb:groupBody>
      </htmlb:group>
    </htmlb:form>
  </htmlb:page>
</htmlb:content>
<b>Code in Event Handler</b>
<b>OnCreate</b>
select * from sflight into corresponding fields of table sflight.
selectedRowIndex = 4.
<b>OnInputProcessing</b>
  CLASS CL_HTMLB_MANAGER DEFINITION LOAD.
  DATA: tv          type ref to CL_HTMLB_TABLEVIEW,
        event       type ref to CL_HTMLB_EVENT,
        table_event type ref to CL_HTMLB_EVENT_TABLEVIEW.
  tv ?= CL_HTMLB_MANAGER=>GET_DATA( request = request
                                    name    = 'tableView'
                                    id      = 'tvX' ).
  IF tv IS NOT INITIAL.
    table_event = tv->data.
    selectedRowIndex = table_event->PREVSELECTEDROWINDEX.
    if table_event->event_type eq CL_HTMLB_EVENT_TABLEVIEW=>CO_ROW_SELECTION.
      if selectedRowIndex eq table_event->ROW_INDEX.
        selectedRowIndex = '0'.
      else.
        selectedRowIndex = table_event->ROW_INDEX.
      endif.
    endif.
  ENDIF.
<b>In Page Attribute</b>
selectedRowIndex TYPE STRING
sflight TYPE FLIGHTTABEX
<b>In Type Dfinition</b>
types: begin of flightwa,
          CARRID       type sflight-CARRID,
          CONNID       type sflight-CONNID,
          FLDATE       type sflight-FLDATE,
          PRICE        type sflight-PRICE,
          CURRENCY     type sflight-CURRENCY,
          PLANETYPE    type sflight-PLANETYPE,
          PAYMENTSUM   type sflight-PAYMENTSUM,
          SEATSOCC     type sflight-SEATSOCC,
          SEATSMAX     type sflight-SEATSMAX,
        end of flightwa.
types: flighttabex type standard table of flightwa.
<b>Check this code this from some SAP Tutorial..</b>
Regards
Mithlesh

Similar Messages

  • TableView LINEEDIT works differently when viewed through Portal

    I have a simple table with a few columns of data that I display and allow the user to change a row using the selectionMode = "lineedit".  The columns are all controlled using htmlb tableViewColumns.
    When I test my application from the WebAs the table looks fine.  If a user selects a row they can see the entire amount of text that appears in a column they want to change
    However, when the BSP comes up in our SAP portal and the user selects a row only the first 20 (or so) characters can be seen and the user must use the arrows keys to get to the part of the text they wish to change.  Is this a setting somewhere?

    For the <htmlb:inputField> look at attributes maxlength, size and width.
    <b>width:</b> Determines the text width for the input field. We recommend that you use the size attribute instead of width.
    <b>size:</b> Determines the size of the input field.
    <b>maxLength:</b> Maximum length of the user input.
    I must admit that this documentation is not tell me enough. Will ask on Monday about this.
    As for your remark "works differently when viewed through Portal": You keep in mind that once a BSP application is running with the portal, all stylesheets (*.CSS) files are loaded from the portal server, and not the webAS.
    Now it could happen that you are running an EP and an older (or incompatible) patch level than your BSP stylesheets are at the moment. For EP6, starting from what I remember at SP11, there is planned a technique to install the latest stylesheets from service market place. You ask about this via OSS, queue EP-PIN-?-STY (something like this).

  • Method "lineedit" in a tableView doesnu00B4t work

    hello,
    I have a table, which is called itab_move.
    This internal table is shown on a bsp with a tableView.
    This tableView contains a button with the method "lineedit". When I click the button the actual line changes its colour and you can make changes.
    So far it works...
    But the internal table doesn´t save the changes. I don´t know where the problem is.

    Hi,
    To edit the row in tableview . You have to first catch the  event in oninputprocessing.
    Do this in following way. (dtab is your internal table)
    DATA: tv TYPE REF TO CL_HTMLB_TABLEVIEW.
      tv ?= CL_HTMLB_MANAGER=>GET_DATA(
                       request      = runtime->server->request
                       name         = 'tableView'
                       id           = 'tableViewid' ).
    IF tv IS NOT INITIAL.
    DATA: tv_data TYPE REF TO CL_HTMLB_EVENT_TABLEVIEW.
      tv_data = tv->data.
      IF tv_data->SelectedRowIndex IS NOT INITIAL.
        FIELD-SYMBOLS: <row> LIKE LINE OF dtab.
        READ TABLE dtab INDEX tv_data->SelectedRowIndex ASSIGNING <row>.
    UPDATE Ztable set field1 = <row>-field1
    where keyfield = <row>-keyfield.
    endif.
    endif.
    Hope this helps if not revert back.
    Regards
    Amit
    Reward points if this reply helps you.

  • Instruction "lineedit"  of the tableView element doesnu00B4t work

    hello,
    I have a table, which is called itab_move.
    This internal table is shown on a bsp with a tableView.
    This tableView contains a button with the method "ineedit". When I click the button the actual line changes its colour and you can make changes.
    So far it works...
    But the internal table doesn´t save the changes. I don´t know where the problem is.

    post this in BSP forum (Business Server Pages (BSP)) for better response.
    the changed values will not automatically get modified into the internal table. you have to write a code in the oninputprocessing event for the same.
    check the sample application SBSPEXT_TABLE for sample code.
    Regards
    Raja

  • Single column in Tableview

    Hi all,
            I want to know how can we display single column of a table using tableview. In the syntax we have  <htmlb:tableView table =......>
    My actual requirement is to display a single column on pressing F4 help and that needs to be done using tableview, but i want to display only one required column instead of all the columns. Plz suggest.
    Regards,
    Rohit Khetarpal

    Hi,
    this code sample can help you..
      <htmlb:tableView id              = "tab01"
                                   table           = "<%= itab2 %>"
                                   headerText      = "Channel and Account Details"
                                   headerVisible   = "TRUE"
                                   width           = "100%"
                                   filter          = "server"
                                   footerVisible   = "true"
                                   visibleRowCount = "10"
                                   onRowSelection  = "myEvent"
                                   selectionMode   = "LINEEDIT" >
                    <htmlb:tableViewColumns>
                      <htmlb:tableViewColumn title      = "Division "
                                             columnName = "DIVISION"
                                             wrapping   = "True" >
                      </htmlb:tableViewColumn>
                      <htmlb:tableViewColumn title      = "Distribution Channel"
                                             columnName = "DISTR_CHAN" >
                      </htmlb:tableViewColumn>
                      <htmlb:tableViewColumn title      = "Sales Org"
                                             columnName = "SALESORG" >
                      </htmlb:tableViewColumn>
                      <htmlb:tableViewColumn title      = "Channel"
                                             columnName = "CHANNEL"
                                             edit       = "TRUE" >
                      </htmlb:tableViewColumn>
                      <htmlb:tableViewColumn title      = "Account"
                                             columnName = "ACCOUNT"
                                             edit       = "TRUE" >
                      </htmlb:tableViewColumn>
                    </htmlb:tableViewColumns>
                  </htmlb:tableView>
    Regards,
    Ravikiran.

  • How to display data in tableview based on a dropdown filter selection

    Hi All,
    I have implemented a flow logic based BSP page to display the SFLIGHTS table when I open this page it displays all records in the table SFLIGHTS. I would like the set a drop down box filter on CARRID and CONNIND. Only once the user selects the CARRID and CONNID and presses on display buttont the data for that selection in the drop down box should be displayed.
    Can you kindly share the code how I can put 2 drop down boxes and make the data retrieval on the page occur based on the dropdown box selection. The layout page is  as below. Appreciate if you could kindly share the code to implement this.
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page>
        <htmlb:form>
          <htmlb:tableView id              = "tv1"
                           visibleRowCount = "10"
                           selectionMode   = "lineEdit"
                           table           = "<%= flights %>"
                           filter = "SERVER"
                           sort = "server"
                           iterator        = "<%= iterator %>" />
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    Thanks
    Karen

    Yeh Karen,
    What  i have written is that only.. ok fine i will tell you in detail ok...
    first what you do is if ur wrking with MVC concept in *do request * add the code for the dropdown as
    select single connid from sflights into wa_sflights.
    this code will give you the coniid  in the dropdown ok
    if you not wrking with MVC ,if its just a Flow with page login then write the same code in Oninitialization
    now if you select the connid from the dropdown and you want to display the details of the that connid in the tableview .. rite?
    then in do handle event write the code when i have written before  if itsnot MVC add in oninputProcessing
    DATA: HTMLB_EVENT TYPE REF TO CL_HTMLB_EVENT,
    W_ID TYPE STRING,
    W_VARIABLE TYPE STRING,
    tvdata TYPE REF TO CL_HTMLB_TABLEVIEW.
    IF HTMLB_EVENT IS NOT INITIAL.
    W_ID = HTMLB_EVENT->ID.
    IF W_ID EQ 'dd_project_name' . ------>this is the name of the dropdown
        DATA ?= CL_HTMLB_MANAGER=>GET_DATA( REQUEST = RUNTIME->SERVER->REQUEST
                             NAME = 'dropdownListBox'
                             ID = 'dd_project_name' ).
        IF DATA IS NOT INITIAL.
          W_variable = DATA->SELECTION.
        ENDIF.
    if w_variable is not initial.
    select * from sflights into table lt_flights where connid eq w_variable.
    endif.
    now in the view you should
    <htmlb:tableView id = "tv1"
    visibleRowCount = "10"
    selectionMode = "lineEdit"
    table = "<%= lt_flights %>"
    filter = "SERVER"
    sort = "server" />
    Hope it works fine

  • Unable to read edited cell values from table view 'LineEDIT' mode

    Hello Gurus,
    Need urgent help on Cell binding - Here's what I have:
    I have a bsp with one tableview for users to update shelf quantity.
    Selection mode is <b>Lineedit</b>. I used this only bcos in this I need not select a row to update it - let me know if this is wrong.
    Our users do not like to click on the row to select and edit it! I am not getting the edited values from the tableview.
    Although I am using a contoller and view, it's not really an MVC. Can someone please guide me on this?
    <b>
    code in IF_HTMLB_TABLEVIEW_ITERATOR~GET_COLUMN_DEFINITIONS
    append initial line to p_column_definitions assigning <def>.
    <def>-columnname = 'SHLQTY'.
    <def>-title = 'Shelf Qty'.
    <def>-EDIT = 'X'.
    Code in IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START.
    p_replacement_bee = CL_HTMLB_INPUTFIELD=>FACTORY(
                                id        = p_cell_id
    *                            type      = 'DATE'
    *                            showhelp  = 'TRUE'
    *                            type       = 'QUAN'
                                VALUE      = val
                                cellvalue = 'TRUE'
                                _VALUE = P_CELL_BINDING )
    </b>
    I do not see anything coming in <b>P_CELL_BINDING</b> .
    Tableview in layout
    <b>
    <htmlb:tableView id                    = "result"
                           design                = "STANDARD"
                           headerText            = "Header Text"
                           filter                = "SERVER"
                           onNavigate            = "onMyNavigate"
                           selectionMode         = "lineedit"
                           emptyTableText        = "No records found!"
                           onRowSelection        = "onMyRowSelection"
                           allRowsEditable       = "TRUE"
                           selectedRowKeyTable   = "<%= rkTab %>"
                           table                 = "<%= datatab %>"
                           selectedRowIndexTable = "<%= sRTable %>"
                           iterator              = "<%= iterator %>"
                           visibleRowCount       = "10" >
          </htmlb:tableView>
    </b>
    I update an internal table Datatab with all the values I require.
    Any idea why the cell binding id not working?
    Many thanks in advance.
    Mike

    Hi Mike,
    databinding is not possible with application classes. There are just a nice way to handle "session variables". You can use them with MVC as well.
    Before MVC there was flow logic. Single formfield-values are receved e.g. when declared as page parameters. Values from tableViews are received e.g. in OnInputProcessing" by fetching the TV-Object from HTMLB_MANAGER and then calling methods like "GET_CELL_VALUE".
    DATA: tv          type ref to CL_HTMLB_TABLEVIEW,
          table_event type ref to CL_HTMLB_EVENT_TABLEVIEW.
    tv ?= CL_HTMLB_MANAGER=>GET_DATA( request = request
                                      name    = 'tableView'
                                      id      = 'mytv1' ).
    table_event = tv->data.
    myValue = table_event->get_cell_value( row_index  = 1 column_index = 1 ).
    good luck,
    stefan.

  • IC WebClient (Tableview modification

    Hi,
    We need to modify the view 'BuPaSelectCustomer.htm' which displays all the business partner data based on the search options. This data is displayed in a tableview.
        <crmic:tableView id              = "<%= controller->tableview_id  %>"
                         navigationMode  = "BYPAGE"
                         onRowSelection  = "select"
                         onNavigate      = "onNavigate"
                         table           = "//Customers/Table"
                         selectionMode   = "LINEEDIT"
                         columnWrapping  = "FALSE"
                         fillUpEmptyRows = "FALSE"
                         keyColumn       = "BP_NUMBER"
                         emptyTableText  = "Table is empty!"
                         visibleFirstRow = "<%= First_Row  %>"
                         focus           = "TRUE"
                         visibleRowCount = "4"
                         selectedRowIndex  = "<%= Row_Selection %>"
                         headerText      = "<%=lv_size %> <%=otr(crm_ic_appl/BupaResultsCustomer) %>"
                         headerVisible   = "TRUE"
                         width           = "100%" >
            <crmic:tableViewColumn columnName  = "NAMEVER"
                                    title       = "<%= otr(crm_ic_appl/bupaAccount) %>" />
          </crmic:tableViewCols>
    a> Can anyone please explain me how the statment
                      table           = "//Customers/Table" works?
         Customers is a context node and there is no SET_TABLE or GET_TABLE  
         method.
    b> If I want to add one more column, even after adding that as an atribute             (SET       and GET methods gets developed) and after adding the statement
    <crmic:tableViewColumn columnName  = "NEWCOL", the new column is displayed as NULL. I tried putting a breakpoint in the GET method for the new field. But the processing does not stop there. Do I need to modify any other structures?
    Please consider this as an urgent issue and any help will be highly appreciated.
    Thanks,
    Shankar

    Hi,
    I had similar issues with document search.
    <crmic:tableView
                             id              = "<%= controller->tableview_id %>"
                             navigationMode  = "BYPAGE"
                             onRowSelection  = "select"
                             onNavigate      = "onNavigate"
                             table           = "//Documents/Table"
    and through debugging I found the method GET_T_TABLE of the context note used to get the values for each column and row.
    Mihai

  • How to save a row edited in the tableview

    Hi All
    I have implemented a flow logic based BSP table maintenance page as follows to display and maintain the data in SFLIGHTS table:
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page>
        <htmlb:form>
          <htmlb:tableView id              = "tv1"
                           visibleRowCount = "10"
                           selectionMode   = "lineEdit"
                           table           = "<%= flights %>"
                           filter = "SERVER"
                           sort = "server"
                           iterator        = "<%= iterator %>" />
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    When I click on the row and edit the row and exit the edit mode I still do not see the data that I changed is not reflected back when I exit the edit mode nor it is saved in the database table. Can you please kindly share the code how I can make only the following columns editable:
    FLDATE
    PRICE
    CURRENCY
    PLANETYPE
    the rest of the columns I want to disable for editing and whatever the changed data in these columns I want to reflect it back to the database table.
    Please kindly share the code for implementing to capture what was edited and save it back to the database table
    Thanks
    Karen

    Pls search this forum, this has been discussed N number of times.
    Raja

  • How to display only selected columns in the table on the tableview

    Hi All,
    I am displaying in the below tableview the data from the SFLIGHTS tables in the tableview using flow logic. It displays all the columns in the database table. How can I set in the code to display only selected columns and not all columns.
    Also, in these columns displayed I want to make the key columns of SFLIGHT as non editable and the rest of the columns in SFLIGHT editiable. Can you please kindly share the code to implement this.
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page>
        <htmlb:form>
          <htmlb:tableView id              = "tv1"
                           visibleRowCount = "10"
                           selectionMode   = "lineEdit"
                           table           = "<%= flights %>"
                           filter = "SERVER"
                           sort = "server"
                           iterator        = "<%= iterator %>" />
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    Thanks
    Karen

    Hi,
       Please try this code.
    <!-- To display Table control on BSP page with table internal table it_hist  --!>
              <htmlb:tableView id              = "TV_HIST"
                               headerText      = "Previous History"
                               headerVisible   = "TRUE"
                               footerVisible   = "TRUE"
                               design          = "ALTERNATING"
                               selectionMode   = "LINEEDIT"
                               visibleRowCount = "5"
                               fillUpEmptyRows = "TRUE"
                               table           = "<%= it_hist %>"
                               width           = "500" >
    <!--  to show selected columns give required field name --!>
    <htmlb:tableViewColumns>
      <htmlb:tableViewColumn columnName          = "FIELD1"
                                         title               = "COLUMN1"
                                         horizontalAlignment = "CENTER"
                                         width               = "65" >
                  </htmlb:tableViewColumn>
      <htmlb:tableViewColumn columnName          = "FIELD2"
                                         title               = "COLUMN2"
                                         horizontalAlignment = "CENTER"
                                         width               = "65" >
                  </htmlb:tableViewColumn>
      <htmlb:tableViewColumn columnName          = "FIELD3"
                                         title               = "COLUMN3"
                                         horizontalAlignment = "CENTER"
                                         width               = "65" >
                  </htmlb:tableViewColumn>
      <htmlb:tableViewColumn columnName          = "FIELD4"
                                         title               = "COLUMN4"
                                         horizontalAlignment = "CENTER"
                                         width               = "65" >
                  </htmlb:tableViewColumn>
    <!--  to make column editable set edit property to TRUE --!>
      <htmlb:tableViewColumn columnName          = "FIELD4"
                                         title               = "COLUMN4"
                                         edit = "TRUE"
                                         horizontalAlignment = "CENTER"
                                         width               = "65" >
                  </htmlb:tableViewColumn>
                </htmlb:tableViewColumns>
              </htmlb:tableView>

  • Problem with generic table in tableview

    Hi,
    I need a generic editable table in my tableview. I coded the page as shown below. Displaying the data works fine but after editing, the modifications are not present in my variable model->table. It seems that my reference is lost.
    How can I solve this problem
      field-symbols: <tab> type table.
      assign model->table->* to <tab>.
      if <tab> is assigned.
    %>
    <htmlb:tableView id              = "itab"
                      selectionMode   = "LINEEDIT"
                      table           = "<%= <tab> %>"
                      columnDefinitions  = "<%= model->controltab %>"
                      filter          = "SERVER"
                      selectedRowIndex = "<%= model->selected_row %>"
                      onRowSelection  = "row_select"
                      sort            = "SERVER"
                      columnHeaderVisible = "TRUE"
                      visibleRowCount = "<%= model->ROW_COUNT %>"
                      iterator = "<%= iterator %>"     />

    i guess somewhere (may be in oninputprocessing) you need to get the ref of <tab> to your model table .
    <b> get reference of <tab> into model->table-> .</b>
    i never tried anything like this, but i suggest you to try this.
    Regards
    Raja

  • BSP - TableView overwritten by input fields in same page

    Hi everybody!
    We try to implement a page with a tableview, loading datas in the onCreate with a CallFunction, and then looping on itself to modify the datas before saving in a cookie:
    OnCreate
    OnInitialize <--
    Layout          |
    Processing -
    The tableView is displaying a table "T".
    There is an input field "F" in the table.
    We have a "reset to 0" button in the page affecting the field F of table T.
    The reset is done in OnInputProcessing.
    Problem : when reseting, the TableView displays the input field value, and not 0. Yet, when debugging, I can see that T contains 0, in the Layout execution.
    So I guess the page input fields are overwritting the  table of the tableView.
    Thanks a lot in advance, best regards
    François

    Thanks a lot for your reply
    This is what happens more in details:
    In my page, I have a table with a modifiable column, that maybe I want to reset:
    Let's suppose I have typed "1" in many rows, but aftewards, I want to reset to 0.
    Layout:
            <htmlb:groupBody>
              <%-- TableView with columns description table  --%>
              <htmlb:tableView id              = "tvX"
                               table           = "<%= requisition %>"
                               design          = "ALTERNATING"
                               headerVisible   = "TRUE"
                               keepSelectedRow = "TRUE"
                               visibleRowCount = "15"
                               fillUpEmptyRows = "true"
                               onHeaderClick   = "MyEventHeaderClick"
                               onRowSelection  = "MyEventRowSelection"
                               selectionMode   = "LINEEDIT"
                               width           = "100%"
                               iterator        = "<%= tv_iterator %>" >
                <htmlb:tableViewColumns>
                  <htmlb:tableViewColumn columnName = "BANFN"
                                         title      = "N° Demande d'achat"
                                         sort       = "true" >
                  </htmlb:tableViewColumn>
                  <htmlb:tableViewColumn columnName = "MENGE_VAL"
                                         title      = "Quantité modifiée"
                                         type       = "INPUT" >
              <htmlb:button id      = "init"
                            text    = "Init"
                            onClick = "onInputProcessing(init)" />
    OnInputProcessing :
    Nothing (so when clicking on "Init", we come back on the same page into OnInitialization)
    OnInitialization:
        loop at requisition into wa_requisition.
          wa_requisition-menge_val = 0.
          modify requisition from wa_requisition.
        endloop.
    The page still displays the "1" whereas I see "0" in debug in the Layout.
    I suppose the tableView is displayed not only from the table "requisition" but from a table corresponding to the inputs in page, which is initialized in the OnCreate part, but not in the On Initialization.
    The iterator is the standard one.
    Do you have an idea?
    Best regards

  • HTMLB Tableview: questions..;

    Hello,
    Simply I output my table as follows :
    <htmlb:form>
      <htmlb:tableView id              = "tv1"
                       visibleRowCount = "10"
                       selectionMode   = "lineEdit"
                       table           = "<%=mytable%>"
                       iterator        = "<%=iterator%>" />
    </htmlb:form>
    (NOTE: where iterator is type IF_HTMLB_TABLEVIEW_ITERATOR)
    Ok, its nice, but I need to customize things a bit.  I have 5 fields... and I want 4 uneditable, and the 5th able to be updated and modified back into the SAP table.
    How can I do this?
    Thanks,
    Timothy

    Hello,
    I have read many times the iterator weblogs, especially 830.  I understand most but still have trouble.  Allow me to show you what I have, and please tell me what is wrong.
    My BSP, index.htm:
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page title="EPCOT" >
        <%
      SELECT * FROM ZEPCT002 INTO TABLE epcots
               WHERE ZANNE = anne
               AND   ZPAYS = pays.
        %>
        <htmlb:form>
          <htmlb:tableView id              = "tv1"
                           visibleRowCount = "12"
                           selectionMode   = "lineEdit"
                           table           = "<%= epcots %>"
                           iterator        = "<%= iterator %>" />
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    For my iterator, I have made the 5th field an input field (CL_HTMLB_INPUTFIELD).  And the 6th field an ICON:
    image2->onclick = 'OnSaveClick'.
            image2->src = cl_bsp_mimes=>sap_icon( `ICON_SYSTEM_SAVE` ).
    I want, when user selects a line, enters text in this 5th field, and then clicks the icon... an event to write/modify directly this change into my table (SAP table I created).  So, for index.htm, in OnInputProcessing, I have:
    DATA: event TYPE REF TO CL_HTMLB_EVENT,
          id type string,
          row type string,
          col type string,
          other type string.
    CLASS cl_htmlb_manager DEFINITION LOAD.
    clear: event, id, row, col, other.
    event = CL_HTMLB_MANAGER=>get_event( runtime->server->request ).
    id = event->id.
    split id at '_' into other row col.
    case col.
    WHEN '6'.
    <b>?????</b>
    endcase.
    My <b>?????</b> is where I have tried many things and just dont get it.  In weblog 830, I see what he is doing, but some things he does don't work for me, like:
    id = htmlb_event->id.
        case htmlb_event->server_event.
          when 'OnUpdateUserClick'.
            data: event1 type ref to cl_htmlb_event_selection.
            event1 ?= htmlb_event.
            read table model->ug_users index i_row assigning <irow>.
    this <b>htmlb_event->id</b>, <b>htmlb_event</b>, and <b>model->ug_users</b>... for these I get syntax errors.
    So, could you tell me what I need to do here?
    Any guidance would be greatly appreciated,
    Thanks,
    Tim

  • Tableview: Call Javascript-Function when row is selected

    Hi everybody,
    I have created a tableview with selectionmode lineedit.
    Now, I'm looking for a way to call a Javascript function when a row is selected.
    The value of the selected row shall be passed to this function.
    How can I sove this.
    Best regards
    Alberto

    HI Alberto,
    referr to JavaScript to check if any row is selected or not..!...
    Even I am waiting for an answer...Now atleast I have a partner in th wait..!!
    Thanks,
    Tatvagna...

  • Tableview setting to enable to select the table columns to display

    Hi All,
    In webdynppto in the table ALV display we have the settings option with which users can control what columns of the table to display and what columns to hide in the table display.
    Users can also control the columns of the display to show or hide in the display. Can any of you please clarify how we can do this with the tableview
    The tableview I am using is below what setting do I need to enable to get the column display/hide by users at runtime
    Thanks
    Karen
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
    <htmlb:page>
    <htmlb:form>
    <htmlb:tableView id = "tv1"
    visibleRowCount = "10"
    selectionMode = "lineEdit"
    table = "<%= flights %>"
    filter = "SERVER"
    sort = "server"
    iterator = "<%= iterator %>" />
    </htmlb:form>
    </htmlb:page>
    </htmlb:content>

    hello,
    I do not think it's possible dynamically like ALV...on screen itself...
    to hide / display a column you can code in iterator class with some condition...
    Thanks,

Maybe you are looking for

  • Us Payoll : Tax Model Changes : Creation Of A New Tax Class : Impact

    Hi Experts, Has anyone earlier created a new tax class specification of PC 71 for a wagetype so that it is taxed only for a particular tax authority , if yes how did you handle the impact on the other tax authorities ,did you create new entries ( wit

  • LDAP : retreive the password from LDAP

    Hi, I am trying to authenticate the user with the password that is entered by him with the password in LDAP. Basically i have to do a String comparison. I am able to retreive all the attributes set for that user but the password is retrieved as: [B@8

  • What does this excpetion mean and how do I fix it?

    Exception in thread "main" java.lang.NoClassDefFoundError: script I copied and pasted it from the java tutorials into my own class...i hope that's not illegal but maybe that's why it's apparently having classpath problems? Edited by: cubswar on Mar 2

  • Credit setting

    Dear gurus,      How can i have credit setting active at only delivery level(Static check).System should pop up message at delivery level (exceeded value) and a block delivery.Also it shoud calculate open items(payment not posted).               i ha

  • Poor multi-camera performance in Premiere Pro CS6

    I've been trying to edit my camera footage using multi-camera window and the playback is extremely choppy and slow in the viewer, so I pretty much cannot use it. Any ideas? Are there certain settings I can tweak? I did a search and it seems like the