HTMLB: tableview filter problems

Hi,
We developed a BSP application in CRM Web_IC. Whenever user goes to this screen, it retrieves the results from SAP CRM table and lists the entries. We used htmlb:tableview with filter attribute set to 'SERVER'. The first row of the entry is used to filter the entries displayed based on wildcard search and redisplay the same.
We noticed that all this handled by client side eventing (Java Script) and it works okay in our development and testing environment.
But we got wierd results when it went for user testing. On some of the machines, the page looks refreshed but the list display does not change based on the search. We thought it might be caching problem so we tried with different IE settings, it looks okay for some time on one of the machines but the problem gets repeated after wards. The situation is we cannot afford intermittent problems.
OS are win'2000 and XP and browser is IE 6 with sp1 and sp2. The problem is not consistent so none of the combinations actually suggested if the problem is related to one area.
Has anyone experienced similar to above. Any ideas are welcome.
Message was edited by: Raju Datla

Thanks Rainer,
Without making any changes, today majority of the users are did not encounter the problem. I could not check the browser server cache settings as the BSP is using MVC and these fields are missing.
Thanks and Regards,
Raju
I lost how to add points. I remember there was a document on how to add points, which I could not get by search. Could you help me how I can award points to you.
Sorry for that and Thanks
Message was edited by: Raju Datla

Similar Messages

  • ICWC htmlb:tableview filter problems

    Hi,
    We developed a BSP application in CRM Web_IC. Whenever user goes to this screen, it retrieves the results from SAP CRM table and lists the entries. We used htmlb:tableview with filter attribute set to 'SERVER'. The first row of the entry is used to filter the entries displayed based on wildcard search and redisplay the same.
    We noticed that all this handled by client side eventing (Java Script) and it works okay in our development and testing environment.
    But we got wierd results when it went for user testing. On some of the machines, the page looks refreshed but the list display does not change based on the search. We thought it might be caching problem so we tried with different IE settings, it looks okay for some time on one of the machines but the problem gets repeated after wards. The situation is we cannot afford intermittent problems.
    OS are win'2000 and XP and browser is IE 6 with sp1 and sp2. The problem is not consistent so none of the combinations actually suggested if the problem is related to one area.
    Has anyone experienced similar to above. Any ideas are welcome.

    Hi Sasi,
    Unfortunately I could not get any direct solution to the problem. I chased SAP OSS and SAP direct consultant who was working with us with no solution. Last time, I heard it was sent to htmlb team at SAP. I stopped chasing after that as project gone live and I fixed the problem by putting a search area and button using client side eventing. 
    If you read the source code once the page is displayed, you can see that SAP writes Javascript to handle the search. I copied the code as Javascript function and placed a button to fire this function which handles the filter as normally SAP does.
    Regards,
    Raju

  • Htmlb:TableView title problem

    Hello,
    recently we installed some support packages (now at SP59). After the installation my TableView titles are not shown correctly. Before the installation the titles were displayed completely, now after the installation the width of the column is only determined by the shown values in the columns.
    The problem I have now is that vor a column which only contains the values A or B, the title "Status" is not shown. Any suggestions?
    ALEX

    If you are using an iterator,
    use the method IF_HTMLB_TABLEVIEW_ITERATOR~GET_COLUMN_DEFINITIONS
    there you can edit the width of your columns:
    APPEND INITIAL LINE TO p_column_definitions ASSIGNING <tv_column>.
      <tv_column>-columnname               = c_type.
      <tv_column>-sort                     = c_x.
      <tv_column>-title                    = c_energy_type.
      <tv_column>-disable_filter           = c_x.
      <tv_column>-edit                     = '1'.
      <tv_column>-width                    = 15.
    grtz
    Koen
    Message was edited by: Koen Labie

  • How to insert check box fields in a htmlb: tableview

    Hi,
    Can anybody tell me how to insert check box fields in a htmlb: tableview in a sequence of rows in a table view. How to generate the sequence no for the checkbox inorder to know the row that is checked.
    Thanks in advance,
    Aruna.

    Here is the code which has the custom "Checkbox" in the tableview & Triggers the event. <b>You can identify the checkbox based on cell ID (p_cell_id)</b> in the method "IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START" & Based on the event name + Cell ID. Look at the code & let me know if you any issue.
    <b>Layout:</b>
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content id               = "content"
                   design           = "design2002+design2003"
                   controlRendering = "SAP"
                   rtlAutoSwitch    = "true"
                   forceEncode      = "ENABLED" >
      <htmlb:page title="Test " >
        <htmlb:form>
          <%
      data TV_ITERATOR Type Ref To zcl_itr.
      data iterator type ref to IF_HTMLB_TABLEVIEW_ITERATOR.
      create object tv_iterator exporting appl_cons = application.
      iterator = tv_iterator.
          %>
          <htmlb:tableView id              = "fligts"
                           headerText      = "Flight"
                           width           = "100"
                           headerVisible   = "true"
                           design          = "alternating"
                           visibleRowCount = "10"
                           fillUpEmptyRows = "true"
                           showNoMatchText = "true"
                           filter          = "server"
                           sort            = "server"
                           onHeaderClick   = "MyEventHeaderClick"
                           table           = "<%= APPLICATION->itab %>"
                           iterator        = "<%= ITERATOR %>" />
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    <b>Event Handling:</b>
    DATA: EVENT_ID1 TYPE REF TO IF_HTMLB_DATA.
    EVENT_ID1 = CL_HTMLB_MANAGER=>GET_EVENT_EX( REQUEST ).
    CASE EVENT_ID1->EVENT_SERVER_NAME.
    IF NOT event_id1 IS INITIAL.
       if event_id1->server_event+0(9) = 'chkevent'.
      SPLIT event_id1->server_event AT '-' INTO v_event v_dummy v_row v_col.
      endif.
    endif.
    method IF_HTMLB_TABLEVIEW_ITERATOR~GET_COLUMN_DEFINITIONS.
         CLEAR p_column_definitions.
        CLEAR p_overwrites.
        DATA: tv_column  TYPE TABLEVIEWCONTROL.
        tv_column-COLUMNNAME  = 'FLDATE'.
        tv_column-edit        = 'X'.
        tv_column-sort        = 'X'.
        tv_column-TITLE               = 'Flight Date'.
        tv_column-WIDTH  = '100'.
        APPEND tv_column TO p_column_definitions.
        CLEAR tv_column.
        tv_column-edit        = 'X'.
        tv_column-COLUMNNAME          = 'CONNID'.
        tv_column-TITLE               = 'Conn.ID'.
        tv_column-WIDTH  = '70'.
        tv_column-HORIZONTALALIGNMENT = 'center'.
        APPEND tv_column TO p_column_definitions.
        CLEAR tv_column.
        tv_column-edit        = 'X'.
        tv_column-COLUMNNAME          = 'CHECKBOX1'.
        tv_column-TITLE               = 'Check Box'.
        tv_column-WIDTH  = '30'.
        tv_column-HORIZONTALALIGNMENT = 'center'.
        APPEND tv_column TO p_column_definitions.
    endmethod.
    METHOD IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START.
           DATA: L_EVENT TYPE STRING.
      CASE P_TABLEVIEW_ID.
        WHEN 'fligts'.
          CASE P_COLUMN_KEY.
            WHEN 'CHECKBOX1'.
    *          CONCATENATE 'chk_event' '123' '2323' INTO L_EVENT SEPARATED BY '-' .
    CONCATENATE 'chkevent' p_cell_id INTO l_event SEPARATED BY '-'.
              P_REPLACEMENT_BEE = CL_HTMLB_CHECKBOX=>FACTORY( ID = P_CELL_ID
            ONCLICK = L_EVENT CHECKED = 'false' ).
          ENDCASE.
      ENDCASE.
    ENDMETHOD.
    Hope this will solve your problem.
    <b><i>* Reward each helpful answer.</i></b>
    Raja T
    Message was edited by:
            Raja T

  • TableView - Filter more than one value in same column

    Hi folks,
    I faced a problem on <b>filtering a field more than one value</b>.
    Does it possible solution for us to bring out filtering function while user try to enter few values in the SAME filter field?
    Thank you.
    First, i need to clarify my exact problem.
    --> I have created one tableView with filter = "server". Then i want to allow my user to enter few filter values in same field column.
    Example 1:
    Before
    COL1 COL2 COL3 COL4
    l--II--
    l-filter1I--I--
    *filter1 = AAA, BBB
    AAA AAA AAA AAA
    BBB BBB BBB BBB
    CCC CCC CCC CCC
    DDD DDD DDD DDD
    EEE EEE EEE EEE
    After
    COL1 COL2 COL3 COL4
    l--II--
    l-filter1I--I--
    *filter1 = AAA, BBB
    AAA AAA AAA AAA
    BBB BBB BBB BBB
    Is that any good suggestions to solve my doubt?
    Message was edited by:
            GP Poh

    check out this work around. in this sample currency column supports multiple values and multiple values in the filter column should be enter with comma as separater.
    <u><b>page attribute:</b></u>
    filtertab     TYPE     RSELOPTION
    filter_wa     TYPE     RSDSSELOPT
    itab     TYPE     FLIGHTTAB
    <u><b>layout</b></u>
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page title=" " >
        <htmlb:form>
        <htmlb:textView id ="tex"
                        text = "Filter on Currency Column support multiple values, they can be entered with comma as separater like 'usd,DEM'"/>
          <htmlb:tableView id                  = "tv1"
                           design              = "ALTERNATING"
                           table               = "<%= itab %>"
                           filter              = "APPLICATION"
                           columnHeaderVisible = "true"
                           sort                = "SERVER" />
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    <u><b>oninitialization</b></u>
    select * from sflight into table itab where currency in filtertab .
    <u><b>oninputprocessing</b></u>
    * event handler for checking and processing user input and
    * for defining navigation
    DATA: table           TYPE REF TO cl_htmlb_tableview .
    DATA: tv_data TYPE REF TO cl_htmlb_event_tableview.
    DATA: filter_value TYPE string .
    DATA: fil_val TYPE STANDARD TABLE OF string ,
          fil_val_wa TYPE string .
    REFRESH filtertab .
    table ?= cl_htmlb_manager=>get_data( request = request
                                               name    = 'tableView'
                                               id      = 'tv1' ).
    IF table IS NOT INITIAL .
      tv_data = table->data .
      IF NOT tv_data IS INITIAL .
        CALL METHOD tv_data->get_row_filter_value
          EXPORTING
            column_index = 6
          RECEIVING
            value        = filter_value.
        IF NOT filter_value IS INITIAL .
          TRANSLATE filter_value TO UPPER CASE .
          REFRESH fil_val .
          SPLIT filter_value AT ',' INTO TABLE fil_val .
          CLEAR fil_val_wa .
          LOOP AT fil_val INTO fil_val_wa .
            filter_wa-sign = 'I' .
            filter_wa-option = 'EQ' .
            filter_wa-low = fil_val_wa .
            APPEND filter_wa TO filtertab .
          ENDLOOP .
        ELSE .
          REFRESH filtertab .
        ENDIF .
      ENDIF .
    ENDIF .
    Regards
    Raja

  • Htmlb:tableView event navigation within frameset

    hello,
    i have a problem with event navigation in a frameset triggered from htmlb:tableView. the structure of my bsp-application:
    DEFAULT.HTM
          <frameset noresize cols="70%,*">
              <frame src="links.htm" name="left">
              <frame src="rechts.htm" name="right">
          </frameset>
    PAGE LEFT in the frameset with the tableView
    <htmlb:form target = "right">
          <htmlb:tableView id="myTable"
                           headerText = "Mitarbeiter"
                           headerVisible = "true"
                           design = "alternating"
                           visibleRowCount      = "10"
                           fillUpEmptyRows      = "true"
                           onRowSelection       = "MyEventRowSelection"
                           selectionMode        = "singleselect"
                           table                = "<%= table_csks %>" >
          </htmlb:tableView>
    PAGE RIGHT in the frameset shuold display details of the selected tableView row:
    <htmlb:form target = "right">
         <br>
         <%= lstable_csks-mandt %>
         <br>
         <%= lstable_csks-kostl %>
         <br>
         <%= lstable_csks-verak %>
         <br>
         <%= lstable_csks-ersda %>
         <br>
        </htmlb:form>
    PROBLEM description:
    when row is selected, displaying of the details on the right frame works well. but when another event of the tableView is triggered eg. browsing between table pages, the wohle table is displayed in the right frame instead to turn the table-page but stay in the same frame. of course this is done, because i have set the form-target attribute.
    and here the question: how can i differentiate between the onRowSelection-Event (navigation to the right frame) and the page-browsing event (stay in same frame but change the tableView page)?
    thanks a lot!
    kalina

    <i><htmlb:tableView keyColumn       = "smtp_addr"
                               id              = "searchhelp"
                               table           = "<%= t_searchhelp %>"
                               visibleRowCount = "10"
                               selectionMode   = "SINGLESELECT"
                               onRowSelection  = "setHelp" ></i>
    since you dont have sort or filter option for your table value, you can simply use the rowindex to read the itab.
    read table itab index selectedrowindex.
    on your other question of using more than one field in the itab for key of a record.
    declare  another field in the itab and fillit with the concatenation of the key fields (say concatenate recornumber itemnumber into keyfield) and dont show it in the tableview. declare this field as the key column in tableview.
    onrowselection this key value will be available in
    tabvie->selectedrowkey which you can use to read the itab. however in your case this is not required as you dont use sort or filter.
    Raja

  • Error when displaying amount field in HTMLB Tableview

    Hi all,
       I am displaying some 'X' table in HTMLB Tableview and it has one amount field.But reference(currency) field of that amount field is in other table . I know it gives the error.
    Please tell me there is any other way to resolve this problem with out adding reference(currency)field in the same table?
    Thanks and Regards ,
    Harikrishna .

    Hi Hari,
    But reference(currency) field of that amount field is in other table . I know it gives the error.
    It will not give any error , you can use the currency key field of other table or structure .
    Alternatively you can use  predifined type DEC instaed of CURR  .
    Regards,
    Anubhav

  • How open URL in an htmlb TableView ?

    Hi guys,
    Here is my problem:
    - I have in my BSP an HTMLB:TableView which display a table of Document Info Record.
    - In this table of DIRs, there is a column which contains an URL in order to open an original.
    ex of url :
    https://daplmdv.sylvania.com:10443/sap/bc/bsp/sap/CVAW_VIEW_DOCFILE/ViewDocFile.htm?pa_document_key=ZPI000000000000000000185255000FR&pa_file_id=4B5DB6C66C9B0094E1008000C61CAA2D&filename=C:\Copie de SSO on PLP.pdf
    - At the moment in htmlb:tableViewColumn, I use the property onCellClick which call a javascript function :
    window.open( "<%= application->url%>", target='_blank' , 'toolbar=no, menubar=no, resizable=yes, scrollbars=yes');
    - It works in IE6 but I tested it in IE7 and it doesn't work.
    My question :
    Is it possible to open directly the link through the tableView and without using javascript ?
    I tried the property linkClickTarget but it doesn't work
    Thanks for your help

    Hi Regis,
    If you need a new window to load the document contents, then you should use the Javascripts. Because only a javascript could openup a new window in a BSP applicaiton.
    But if you do not want to open up the document in a new window and want to load it by replacing the current page, then you could do it by navigating to another page which could render the document contents in this page.
    Hope it helps!
    Regards,
    Maheswaran

  • HTMLB TableView in customer CI/CD layout

    Hello,
    i want to create a BSP with htmlb tableview, so
    i can simply use the given features (sorting, filter, ...) but the customer want to adapt hic CI/CD Colours Blue and Orange to the hole application.
    Is there a chance to use a own stylesheet instead of design2002 or design2003 or is it prossible to create a own design.
    I`ve searched this topic in forum, and gets only answers that mixing design and css is not good, and there is a way with EP6 - but we have no portal.
    Thanks for any help.
    Regards
    Marcus

    Hi Ulli and Marcus,
    I'm currently designing my own style (not in Portal, I'm using 6.20), and yes, it might not be straightforward customizing the design.
    But I started with following approach:
    After implementing the basic layout of my page (like header pictures and so on) I added the functional parts (htmlb elements, ...) and tried to change them one by one ... that's how I did it:
    - add a htmlb element to the layout
    - access the page via browser to get the generated html code
    - in this code just look for all the classes used for your htmlb elements
    - edit the .css file that gets included in the html header accordingly
    Important Points you have to be aware of:
    *) There might be styles used for your elements which are not shown in every html code (because element might be displayed differently from page to page). You can either call every possible page combination in order to get all the used classed (not recommended, you could still miss something), or have a closer look at the class names - the classes that belong to a certain element are named in a way you can tell which class belongs where.
    (like "urBdyStd" for the body-tag, "urbtn*" for buttons, ...)
    From the postfix after the element name part you can guess the detailed function of the class - with a little patience and looking at many different classes used in the html code you can figure out what to change for your style.
    *) Be careful which .css-file gets included when looking at the html code. There are css files for different browsers and versions, so if you want to make your application look the same way on all supported browsers (which you probably want), then don't forget to edit these files as well.
    *) Changing a css file and testing the results on the WAS is very complicated, so I recommend you create sample html files (which contain one htmlb element each for example), edit the css file and also test it locally, so you don't get caugt in importing a new file version just for changing that one nasty little style attribute that is wrong
    Ok, after writing all of this, I can see that it really is a bit of work ... but seeing how your application gets your personal touch is worth it (at least for me) ... and you don't have to change all of the styles, I found that some of the standard styles fit into my design quite good, so I didn't change them. (I copied the chrome design to start from)
    Cheers,
    Max
    P.S.: Would such a topic be worth a weblog?

  • HTMLB:TableView

    Hi,
    I have used the table view in my BSP application and use the concept of iterator class inherited from  interface 'IF_HTMLB_TABLEVIEW_ITERATOR' to manipulate the column of each row
    ABAP CODE:
    <%data: LV_ITERATOR  type ref to if_htmlb_tableview_iterator.
      create object LV_ITERATOR  type zcl_test
             exporting ir_context_node = db_controller
                       data_tab = =<LT_TABLE1>
    %>
    BSP CODE:
    <htmlb:tableView
                             fillUpEmptyRows = "true"
                             id              = "ResultTable"
                             onNavigate      = "navigate"
                             selectionMode   = "SINGLESELECT"
                             table           = "<%=<LT_TABLE1>%>"
                             visibleFirstRow = "1"
                             visibleRowCount = "8"
                             width           = "100%"
                             filter = "server"
                             sort = "server"
                             iterator        = "<%=LV_ITERATOR %>"
                             keyColumn = "template_id"
                             design = "alternating"
    <%--                         columnFilters="<%=filters%>"--%>
                             tabIndexCell = "FALSE"
                    selectedRowIndexTable = "<%=LT_SELECTEDROWINDEXTABLE%>"
                             >
    and implemented class 'zcl_test' , for some reason something strange is happening , the BSP page will be something like
    at the top there are buttons and below this is the TableView that display the content store in internal table 'LT_TABLE1'
    now the table contain 10 records,the 1-8 records are displayed on page1 and next 2 records are displayed on page2.
    So the issue is , if i naviagte to page2 and press any of the button on top of table view ,it redirect me to page1(display 1-8 records) and don;t stay back on 2'nd page.
    Please let me know how i can achieve this of staying on the same page

    Hi All,
    Sorry for the delay,explanation provided is amazing and may help other searching for the same issue but unfortunately selected row travel back to page index1
    and i don;t understand why the selected record is the first record in the internal table of iterator class and that result in this record to appear on page index1
    any how i have resolve this by pointing always to page index1.
    Code that can be useful:
    View:
    <htmlb:tableView fillUpEmptyRows = "true"
                     id              = "tvTempl"
                     onNavigate      = "navigate"
                     selectionMode   = "SINGLESELECT"
                     table           = "xyz"
                     visibleFirstRow = "<%= lv_first_rowindex %>"
                     selectedRowIndex = "<%= lv_selected %>"
                     visibleRowCount = "8"
                     width           = "100%"
                     filter          = "server"
                     sort            = "server"
                     iterator        = "<%= lr_iterator %>"
                     keyColumn       = "template_id"
                     design          = "alternating"
                     tabIndexCell    = "FALSE" />
    code in do_handle_event  or in do_request:
    DATA: lv_row_index TYPE i,
                  lv_page_index TYPE i,
                  lv_mod TYPE i,
                 lr_html_table_view TYPE REF TO cl_htmlb_event_tableview.
            lr_cl_descriptor = cl_abap_refdescr=>describe_by_object_ref( htmlb_event ).
            IF lr_cl_descriptor->absolute_name CS 'CL_HTMLB_EVENT_TABLEVIEW'.
              lr_html_table_view ?= htmlb_event.                                                                            // parameter: importing in method   HTMLB_EVENT  Type Ref To   CL_HTMLB_EVENT
              CASE lr_html_table_view->navigationtype.
                WHEN 'pageUp'.
                  MOVE mv_first_rowindex TO lv_row_index.
                  lv_row_index = lv_row_index - lr_html_table_view->visiblerowcount.
                  MOVE lv_row_index TO mv_first_rowindex.
                  WHEN'pageDown'.
                  MOVE mv_first_rowindex TO lv_row_index.
                  lv_row_index = lv_row_index + lr_html_table_view->visiblerowcount.
                  MOVE lv_row_index TO mv_first_rowindex.
                  WHEN'top'.
                  MOVE mv_first_rowindex TO lv_row_index.
                  lv_row_index = 1.
                  MOVE lv_row_index TO mv_first_rowindex.
                WHEN 'bottom'.
                  MOVE mv_first_rowindex TO lv_row_index.
                  lv_mod =  lr_html_table_view->rowcount MOD lr_html_table_view->visiblerowcount.
                  lv_row_index = lr_html_table_view->rowcount - lv_mod + 1 .
                  MOVE lv_row_index TO mv_first_rowindex.
                WHEN 'Index'.
                  READ TABLE mt_last_formfields INTO ls_formfields WITH KEY name = 'notificationstv_pager_index'.
                  IF ls_formfields IS NOT INITIAL.
                    MOVE ls_formfields-value TO lv_page_index.
                    lv_row_index = 1.
                    IF lv_page_index > 1.
                      lv_page_index = lv_page_index - 1.
                      DO lv_page_index TIMES.
                        lv_row_index = lv_row_index + lr_html_table_view->visiblerowcount.
                      ENDDO.
                    ENDIF.
                  ENDIF.
                  MOVE lv_row_index TO mv_first_rowindex.
              ENDCASE.
            ENDIF.

  • HTMLB TableView Tab Stops

    We have some HTMLB TableViews in our JSPDynPage developed portal application.  After we upgraded to NetWeaver 7.0(2004S) the table views now require the users to tab across each cell within the tableview.  The accessibility flag is turned off within the users profiles so that is not what is causing it.  Is there a way to disable this functionality.  I would hope so otherwise I would have to say that SAP did a bit of a dis-service to some of it's customers.
    Thanks.
    Curtis

    Hi Curtis,
    We are also facing the same problem. Customer is complaining for this. Could you please tell us what needs to be done to go to the next editable cell.
    Thanks in Advance....
    Satya

  • HTMLB TableView Iterator & Edit columns, cells

    Hi friends,
    I am getting errors when , I tried to edit the columns, & Cells of  HTMLB TableView by using Iterator.Actually, I got the whole edit buttons and when I edit the values of particular column & cell fileds, it is not saving the values, instead it is giving same old values. The code I used is as follows.
    <u><b>To Edit the  columns,</b></u>
    method
    IF_HTMLB_TABLEVIEW_ITERATOR~GET_COLUMN_DEFINITIONS.
    FIELD-SYMBOLS: <def> LIKE LINE OF p_column_definitions.
      APPEND INITIAL LINE TO p_column_definitions ASSIGNING <def>.
    <def>-COLUMNNAME = 'STUDENTID'.<def>-EDIT = 'X'.
    endmethod.
    <u><b>To Edit the  cells,</b></u>
    RENDER_CELL_START Method:
    method
    IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START.
    CASE p_column_key.
    WHEN 'ICON'.
    WHEN 'STUDENTID'.
           IF p_edit_mode IS NOT INITIAL.
    ENDIF.
    WHEN 'SDATE'.
           IF p_edit_mode IS NOT INITIAL.
    ENDIF.
    ENDCASE.
    endmethod.
    <u><b>To Edit the SDATE cells,</b></u>
    WHEN 'SDATE'.
      IF p_edit_mode IS NOT INITIAL.
    DATA: date TYPE STRING.
    date = m_row_ref->SDATE.
    p_replacement_bee = CL_HTMLB_INPUTFIELD=>FACTORY(
                          id        = p_cell_id
                           value     = date
                           type      = 'DATE'
                             showHelp  = 'TRUE'
                             cellValue = 'TRUE' ).
                               ENDIF.
    Why the either column or cell is not saving the new values, when I edit them? where it went wrong? please mail me in this regard.
    regards
    CSM Reddy

    Hi REDDY CSM 
    To learn coding these Methods.
    You need to learn everything from scratch about MVC.
    To learn functionalities of Methods in Controller and how to use them,its Better,if you start with some tutorial(Little application) on MVC.
    Here is link,Just follow this,You will get some Exposure to these methods.
    http://help.sap.com/saphelp_erp2005/helpdata/en/c8/101c3a1cf1c54be10000000a114084/frameset.htm
    Rest keep posting whenever you face and Problem..
    Happy Coding..!!
    Vijay Raheja

  • TableView Filter doesnu00B4t work for added columns

    In my model I have a column type SPRAS with a language key, but I want to render the language text so in the iterator I added a new column (hiding the one with the lang key), and I fill this new column with the following code:
      DATA: lang_txt TYPE string.
      DATA: lang_key LIKE sy-langu.
      FIELD-SYMBOLS: <fs> LIKE model->client.
      ASSIGN p_row_data_ref->* TO <fs>.
      lang_key = <fs>-spras.
      SELECT SINGLE sptxt FROM t002t INTO lang_txt
           WHERE spras = sy-langu
           AND   sprsl = lang_key.
      p_replacement_bee = cl_htmlb_textview=>factory(
           id = p_cell_id
           text = lang_txt ).
    It works good, but the problem comes because filtering doesn´t work with this column.
    Adding a new column to the model would be a solution but I don´t like it very much, it´d be better to solve this problem here in a class associated with the view/rendering od the data instead of changing the model.
    Best Regards!
    Jonathan.

    You can't use a column for filtering which isn't acutally present in your table. With an iterator you only control/change the rendering of your tableview, but the table data stays the same. (Unless you change the data, which would make the iterator useless?) You can not filter values that are not present in your table.
    So, if you want to filter an iterator-changed column, make sure the column contains data to sort/filter, and also provide a way for the user to be able to use the filter (as it doesn't make much sense to enter a filter value when the displayed data does not correspond to the table data.
    Have a look at this thread, it describes how you can add a dropdown to your filter:
    TableView: Filter as Dropdown
    Now if you alter this dropdown generating code to use your descriptive text (that you use in your iterator for display in column) as dropdown display values, then you should have a working filter for your tableview.
    Max
    (goes off writing the weblog promised in the mentioned thread)

  • Sums in htmlb:tableView

    Hi Community,
    how to you guys usually display a line with sums under a htmlb:tableView.
    As far as I have understood this, I can do either one of the following two ways:
    1) I add a line to the internal table where I calculate the sums I need. I then have to make sure that this line will always be displayed at the bottom after sorting, filtering etc. and that the sums are re-calculated after filtering.
    2) I display a second htmlb:tableView underneath the first, which will have only one line containing the sums. By this, I have to make sure that the widths of the columns of both tableViews has to be equal (which is not that easy when you text in the table that is larger than the allowed width).
    Is there another way? What is the preferred way?
    Daniel

    you can also handle it thru iterator. but the easiest would be add another row to itab and handle the sorts and filter and positioning of the total row yourself.
    samle code for iterator.
    RENDER_CELL_START method.
    assuming you have 10 rows in the itab.
    IF p_row_index EQ 10 .
      DATA: icon_plane TYPE string.
            icon_plane = cl_bsp_mimes=>sap_icon( id = 'ICON_WS_PLANE' ).
            if_first = cl_htmlb_image=>factory( id = p_cell_id id_postfix = '_first' src = icon_plane onclick = 'image_click' ).
            CLEAR icon_plane .
            icon_plane = cl_bsp_mimes=>sap_icon( id = 'ICON_WS_PLANE' ).
            if_bus = cl_htmlb_image=>factory( id = p_cell_id id_postfix = '_bus' src = icon_plane onclick = 'image_click' ).
            CREATE OBJECT multi_bee.
            multi_bee->add( if_first ).
            multi_bee->add_html( html = '<div style="border-top-style: solid; border-top-width: 1px;  padding-top: 1px">' ).
            multi_bee->add( if_bus ).
            multi_bee->add_html( html = '</div> ' ).
            p_replacement_bee = multi_bee.
    in the above example if_bus is for holding the last row value and if_bus is for holding the total value .
    in the above example i just showed how you have have two rows in the last row and just rendered two images.
    Regards
    Raja

  • TableView: Filter as Dropdown

    Hi @all
    Has someone experiences with rendering the filter-row in an TableView? I get the access to the "data-rows" and i am able to render them, but how to get access to the filter row and create a "dropdown-Filter".
    I want to create a functionality which is know from Excel: Autofilter!
    Thank you for helping on this
    Thorsten

    As promised, here is my example (using MVC):
    In DO_REQUEST, I call a model method to create my filter table, because the content in my table is changing all the time, I need my filter to be up to date as well.
    Example: LASTNAME as column name for the filter
    data: lt_filter      type tableviewfiltertab,
          lv_last_insert type string,
    * here go your table and table structure definitions
    * lt_tvdata type ...
    * ls_tvdata type ...
    field-symbols: <filter> like line of lt_filter,
                   <wa>     type ihttpnvp2.
      append initial line to lt_filter assigning <filter>.
      <filter>-columnname = 'LASTNAME'.
    * define a pre-selection
      <filter>-selection  = '*'.
    * append filter lines:
    * first a joker character
      append initial line to <filter>-dropdownlistbox_table assigning <wa>.
      <wa>-name  = '*'.
      <wa>-value = '*'.
    * ... and now the tableview table entries
    * lt_tvdata is a copy of the table for the tableview
    * sort table
      sort lt_tvdata ascending by 'LASTNAME'.
    * now do the loop ...
      clear lv_last_insert.
      loop at lt_tvdata into ls_tvdata.
    *   if not in filter already ...
        if lv_last_insert is initial or lv_last_insert ne ls_tvdata-lastname.
    *     then append the value
          append initial line to <filter>-dropdownlistbox_table assigning <wa>.
          <wa>-value  = ls_tvdata-lastname.
          <wa>-name   = ls_tvdata-lastname.
    *     set last insert
          lv_last_insert = ls_tvdata-lastname.
        endif.
      endloop.
      sort <filter>-dropdownlistbox_table by value.
    This should do for a quick example, all left to do is use the filter in your tableview:
    <htmlb:tableview
      id = ".....
      columnFilters = "<%= model->filter %>" />
    * filter table as model attribute in this case
    Well, I should turn this topic into a weblog, as I got another (slightly different) dropdown in my filter ...
    Hope you get your part going with this example for a start.
    Max

Maybe you are looking for

  • When downloading i can only download one link at a time per window. i used to be able to download six links at a time per page. how do i go back to this?

    got a new laptop. unsure of firefox verson on old as the computer quit taking a charge. but essentially on my old laptop if a window had six downloadable links i would be able to download all six at once. now i can only download one link at a time. t

  • Multi room dvr not working

    I signed up for Home Media DVR, however, I have never been able to view recorded programs from the other tv.  After a VERY lengthy phone call with tech support the problem remains unchanged. They had me unplug every set top box and the router and the

  • Query Search Panel not displaying search items in 11g on Windows 7 x64

    I have defined a view object with two bind variables in a query criteria. when I drag the query criteria onto a page - I get the panel with the search box - but the message says "no search items have been added". I went back and ran through the steps

  • Shuffle works with mac, but not PC

    I bought an ipod shuffle two days ago and I wanted to try it out right away. At the time, I only had my macbook with me, so I put the little music I had on that on my shuffle. It worked fine then. When I was able to get on my PC (that has all my musi

  • OpenOffice font issue

    Last semester I was running Slackware with the OpenOffice binary package from openoffice.org. I typed up some papers in "times" font. All was cool. Now I am running Arch on the same hardware with the openoffice package via pacman. The same documents