Composite Element in Tableview Iterator

I want to use a <phtmlb:matrix> element in a tableview iterator to arrange the content of a cell.
I tried to follow Brians Weblog on composite elements.
In my test example, I just want to combine two fields of t000 into one cell. Of course I know, that concatenation would be more easy here, but that would not answer my questions.
Thought it could look like this:
METHOD render_cell_start.
  DATA:
    l_o_matrix             TYPE REF TO cl_phtmlb_matrix,
    l_o_bsp_element        TYPE REF TO cl_bsp_element,
    l_string               TYPE STRING.
  CASE p_tableview_id.
    WHEN 'TABLE_T000'.
    l_o_matrix = cl_phtmlb_matrix=>factory( ).
    WHILE o_page_context->element_process( element = l_o_matrix )
      = cl_bsp_element=>co_element_continue.
Cell 1
      CLEAR: l_o_matrix->mc_backgrounddesign,
             l_o_matrix->mc_design,
             l_o_matrix->mc_separation.
      l_o_matrix->do_set_data( element_name = 'matrixCell' ).
      l_string = me->t000-mandt.
      l_o_bsp_element = cl_htmlb_textview=>factory( text = l_string ).
      WHILE o_page_context->element_process( element = l_o_bsp_element )
       = cl_bsp_element=>co_element_continue.
      ENDWHILE.
Cell 2
      CLEAR: l_o_matrix->mc_backgrounddesign,
             l_o_matrix->mc_design,
             l_o_matrix->mc_separation.
      l_o_matrix->mc_halign = 'LEFT'.
      l_o_matrix->mc_valign = 'TOP'.
      l_o_matrix->do_set_data( element_name = 'matrixCell' ).
      l_string = me->t000-mtext.
      l_o_bsp_element = cl_htmlb_textview=>factory( text = l_string ).
      WHILE o_page_context->element_process( element = l_o_bsp_element )
       = cl_bsp_element=>co_element_continue.
      ENDWHILE.
    ENDWHILE.
    p_replacement_bee = l_o_matrix.
  ENDCASE.
ENDMETHOD.
However, that does not work.
First, the list of T000-MANDT fields is rendered twice:
into the tableview and into a list before the tableview.
Second:  T000-MTEXT does not show up at all.
What do I do wrong?
I feel that I do not completely understand how the rendering is processed.
Thanks for our help.
Juergen

The following is the example from Brian's weblog, updated for design2003.  It doesn't use the Matrix however.  Perhaps it will help.
It still doesn't render quite like it did under design2002.  I'm not sure if there is a good way to combine multiple input fields into one cell any longer.  I know others have had a problem with this as well.  I will have to look closer at your matrix attempt.
when 'SEATS'.
      if p_edit_mode is initial.
        data: max type string, occ type string,
              value type string.
        max = m_row_ref->seatsmax + m_row_ref->seatsmax_b
            + m_row_ref->seatsmax_f.
        occ = m_row_ref->seatsocc + m_row_ref->seatsocc_b
            + m_row_ref->seatsocc_f.
        condense: max, occ.
        concatenate occ ` / ` max into value.
        p_replacement_bee = cl_htmlb_textview=>factory(
            text = value ).
      else.
        data: icon_plane2 type string.
        icon_plane2 = cl_bsp_mimes=>sap_icon(
             id = 'ICON_WS_PLANE' ).
        data: image type ref to cl_htmlb_image.
        image = cl_htmlb_image=>factory(
             id = p_cell_id
             src = icon_plane2 ).
        data: if_first type ref to cl_htmlb_inputfield.
        if_first = cl_htmlb_inputfield=>factory( id = p_cell_id
            id_postfix = '_first'
            type = 'INTEGER' size = '4' ).
        if_first->value = m_row_ref->seatsocc_f.
        data: if_bus   type ref to cl_htmlb_inputfield.
        if_bus   = cl_htmlb_inputfield=>factory( id = p_cell_id
            id_postfix = '_bus'
            type = 'INTEGER' size = '4' ).
        if_bus->value = m_row_ref->seatsocc_b.
        data: if_econ  type ref to cl_htmlb_inputfield.
        if_econ = cl_htmlb_inputfield=>factory( id = p_cell_id
            id_postfix = '_econ'
            type = 'INTEGER' size = '4'  ).
        if_econ->value = m_row_ref->seatsocc.
        data: tag_gl       type ref to cl_htmlb_gridlayout,
              tag_glc_if1  type ref to cl_htmlb_gridlayoutcell,
              tag_glc_if2  type ref to cl_htmlb_gridlayoutcell,
              tag_glc_if3  type ref to cl_htmlb_gridlayoutcell.
        tag_gl       = cl_htmlb_gridlayout=>factory(
                    columnsize  = '3' rowsize  = '1' ).
        tag_glc_if1 = cl_htmlb_gridlayoutcell=>factory(
                    columnindex = '1' rowindex = '1' ).
        tag_glc_if2  = cl_htmlb_gridlayoutcell=>factory(
                    columnindex = '2' rowindex = '1' ).
        tag_glc_if3  = cl_htmlb_gridlayoutcell=>factory(
                    columnindex = '3' rowindex = '1' ).
        data: seats_bee type ref to cl_bsp_bee_table.
        create object seats_bee.
        seats_bee->add( level = 1 element = tag_gl ).
        seats_bee->add( level = 2 element = tag_glc_if1 ).
        seats_bee->add( level = 3 element = if_first ).
        seats_bee->add( level = 2 element = tag_glc_if2 ).
        seats_bee->add( level = 3 element = if_bus ).
        seats_bee->add( level = 2 element = tag_glc_if3 ).
        seats_bee->add( level = 3 element = if_econ ).
        p_replacement_bee = seats_bee.
      endif.
Message was edited by: Thomas Jung

Similar Messages

  • How to write a composite element in iterator?

    Hi,
      I want to write a composite element in iterator which has the same result as BSP element like this in BSP layout:
      <htmlb:link id = "link1"
                  reference = "http://www.sap.com">
      <htmlb:textView id = "text1"
                      textColor = "<%=gv_color%>"
                      text      = "ddddd" />
      </htmlb:link>
      Do you know how to write this in iterator? Thanks!

    Hi,
    you can use the replacement bee:
    data: o_link TYPE REF TO cl_htmlb_link.
    CASE p_column_key.
        WHEN 'column_name'.
            w_event = model->get_sapevent_string(
                            name    = 'activity'
                            system  = 'crm'
                            key     = o_ref->guid ).
            o_link    = cl_htmlb_link=>factory( id  = p_cell_id
                                              text = 'text'
                                              tooltip = 'tooltip'
                                              reference = w_event ).
            p_replacement_bee  = o_link.
    ENDCASE.
    in w_event you declare your event, eg. the calling of a
    sap event or you navigation.
    you can find an example in:
    <a href="/people/thomas.jung3/blog/2004/09/15/bsp-150-a-developer146s-journal-part-xi--table-view-iterators by Thomas Jung</a>
    grtz
    Koen

  • Matrix in tableView iterator

    Hi,
    I have created a composite BSP element that outputs a matrix with two cells, the first containing an icon, the second with a description.  This works fine when placed in a BSP page.
    When, however, I try to use the element in a tableView iterator, it blanks the whole table.  Do I need to do something special to get the element working inside a tableView?
    My element code is posted here:
    METHOD if_bsp_element~do_at_beginning.
    * use matrix to control alignment
    * <phtmlb:matrix width = "100%" >
      DATA: phtmlb_matrix TYPE REF TO cl_phtmlb_matrix.
      phtmlb_matrix = cl_phtmlb_matrix=>factory( width = '100%' ).
    * create matrix and set alignment
      WHILE m_page_context->element_process( element = phtmlb_matrix ) = co_element_continue.
        CLEAR:  phtmlb_matrix->mc_backgrounddesign,
                phtmlb_matrix->mc_col,
                phtmlb_matrix->mc_design,
                phtmlb_matrix->mc_row,
                phtmlb_matrix->mc_halign,
                phtmlb_matrix->mc_separation.
        phtmlb_matrix->mc_valign = 'MIDDLE'.
        phtmlb_matrix->mc_halign = 'LEFT'.
        phtmlb_matrix->do_set_data( element_name = 'matrixCell' ).
    *   get status info
        data: ls_status type /baasow/status.
        clear: ls_status.
        select single * from /baasow/status
          into ls_status where status = status.
        DATA: html TYPE string.
    *   no status found
        if sy-subrc ne 0.
          html = status.
          me->print_string( html ).
          exit.
        endif.
    *   status icon
        DATA: lr_icon TYPE REF TO cl_htmlb_image.
        lr_icon = cl_htmlb_image=>factory(
                src = ls_status-icon ).
        WHILE m_page_context->element_process( element = lr_icon )
          = co_element_continue.
        ENDWHILE.
        CLEAR:  phtmlb_matrix->mc_backgrounddesign,
                phtmlb_matrix->mc_col,
                phtmlb_matrix->mc_design,
                phtmlb_matrix->mc_row,
                phtmlb_matrix->mc_halign,
                phtmlb_matrix->mc_separation.
        phtmlb_matrix->mc_valign = 'MIDDLE'.
        phtmlb_matrix->mc_halign = 'LEFT'.
        phtmlb_matrix->do_set_data( element_name = 'matrixCell' ).
    *   status text
        html = ls_status-TEXTSH.
        me->print_string( html ).
      ENDWHILE.
      rc = co_element_done.
    ENDMETHOD.

    Hi,
    I have created a composite BSP element that outputs a matrix with two cells, the first containing an icon, the second with a description.  This works fine when placed in a BSP page.
    When, however, I try to use the element in a tableView iterator, it blanks the whole table.  Do I need to do something special to get the element working inside a tableView?
    My element code is posted here:
    METHOD if_bsp_element~do_at_beginning.
    * use matrix to control alignment
    * <phtmlb:matrix width = "100%" >
      DATA: phtmlb_matrix TYPE REF TO cl_phtmlb_matrix.
      phtmlb_matrix = cl_phtmlb_matrix=>factory( width = '100%' ).
    * create matrix and set alignment
      WHILE m_page_context->element_process( element = phtmlb_matrix ) = co_element_continue.
        CLEAR:  phtmlb_matrix->mc_backgrounddesign,
                phtmlb_matrix->mc_col,
                phtmlb_matrix->mc_design,
                phtmlb_matrix->mc_row,
                phtmlb_matrix->mc_halign,
                phtmlb_matrix->mc_separation.
        phtmlb_matrix->mc_valign = 'MIDDLE'.
        phtmlb_matrix->mc_halign = 'LEFT'.
        phtmlb_matrix->do_set_data( element_name = 'matrixCell' ).
    *   get status info
        data: ls_status type /baasow/status.
        clear: ls_status.
        select single * from /baasow/status
          into ls_status where status = status.
        DATA: html TYPE string.
    *   no status found
        if sy-subrc ne 0.
          html = status.
          me->print_string( html ).
          exit.
        endif.
    *   status icon
        DATA: lr_icon TYPE REF TO cl_htmlb_image.
        lr_icon = cl_htmlb_image=>factory(
                src = ls_status-icon ).
        WHILE m_page_context->element_process( element = lr_icon )
          = co_element_continue.
        ENDWHILE.
        CLEAR:  phtmlb_matrix->mc_backgrounddesign,
                phtmlb_matrix->mc_col,
                phtmlb_matrix->mc_design,
                phtmlb_matrix->mc_row,
                phtmlb_matrix->mc_halign,
                phtmlb_matrix->mc_separation.
        phtmlb_matrix->mc_valign = 'MIDDLE'.
        phtmlb_matrix->mc_halign = 'LEFT'.
        phtmlb_matrix->do_set_data( element_name = 'matrixCell' ).
    *   status text
        html = ls_status-TEXTSH.
        me->print_string( html ).
      ENDWHILE.
      rc = co_element_done.
    ENDMETHOD.

  • Nested image Tag in tableview iterator

    In the past I use the tableview tag "tableViewColumn". In this tag a nested image tag inside a link tag was used.
    Now I use the tableview iterator. But I can only define one p_replacement_bee in the RENDER_CELL_START method.
    Does anyone knows a solution for my problem?
    Example:
    <htmlb:tableViewColumn columnName = "transport"
    tooltipColumnKey = "transport_tooltip"
    type = "user"
    title = "<%= otr(zinternet/tracking) %>"
    horizontalAlignment = "center" >
    <htmlb:link id = "$TVCID$"
    reference = "$TRANSPORT_LINK$"
    target = "_blank" >
    <htmlb:image src="$TVCVALUE$" />
    </htmlb:link>
    </htmlb:tableViewColumn>

    Just off hand I see one problem.  In your reference you have 'www.sap.com'.  This link wouldn't work (and might be causing your problem, because without the http:// on the front it would assume that was a relative path.
    Other than that I don't see a problem off hand.  I normally don't render my elements to BEEs and then add the BEEs to the BEE Tree. I prefer to render to elements and then use the ADD method instead of the ADD_BEE method:
            data: tag_gl       type ref to cl_htmlb_gridlayout,
                  tag_glc_if1  type ref to cl_htmlb_gridlayoutcell,
                  tag_glc_if2  type ref to cl_htmlb_gridlayoutcell,
                  tag_glc_if3  type ref to cl_htmlb_gridlayoutcell.
            tag_gl       = cl_htmlb_gridlayout=>factory(
                        columnsize  = '3' rowsize  = '1' ).
            tag_glc_if1 = cl_htmlb_gridlayoutcell=>factory(
                        columnindex = '1' rowindex = '1' ).
            tag_glc_if2  = cl_htmlb_gridlayoutcell=>factory(
                        columnindex = '2' rowindex = '1' ).
            tag_glc_if3  = cl_htmlb_gridlayoutcell=>factory(
                        columnindex = '3' rowindex = '1' ).
            data: seats_bee type ref to cl_bsp_bee_table.
            create object seats_bee.
            seats_bee->add( level = 1 element = tag_gl ).
            seats_bee->add( level = 2 element = tag_glc_if1 ).
            seats_bee->add( level = 3 element = if_first ).
            seats_bee->add( level = 2 element = tag_glc_if2 ).
            seats_bee->add( level = 3 element = if_bus ).
            seats_bee->add( level = 2 element = tag_glc_if3 ).
            seats_bee->add( level = 3 element = if_econ ).
            p_replacement_bee = seats_bee.

  • Attributes in tableview iterator

    how to retrive my inputField value in tableview iterator ?
    I have a page with inputField : eno
                    & tableview (and onclicking the cellvalue in the column it goes to other page)
    <i>
    <b> here i want to get the value of my inpufield </b>
    concatenate 'preview.htm?ref_no=' wf_text into wf_url.
          call method cl_htmlb_link=>factory
            exporting
              id        = p_cell_id
              reference = wf_url
              target    = '_self'
              text      = wf_text
            receiving
              element   = p_replacement_bee.
    </i>
    Pts Assured.
    Thanks,
    JBP.
    I have added the field also in the row iterator and now able to get its value.
    Message was edited by: P24101990

    Hi Mark,
    Thanks for your reply. I tried that in DO_INIT and in DO_REQUEST as well. I started of this application well with the values selecting from Dropdown and then rendering the table columns. But now I have commented everything and just trying to render one column of the table....
    I have one concern.
    I have declared like this
    tv_iterator type ref to ZITERATOR.
    and in DO_INIT I have instantiated. Create Object tv_iterator.
    If you have any suggestions please let me know....
    Thanks

  • Passing Parameters to tableview iterator class

    Hi all,
    I have a tableview with 2 fields say A and B.
    When i click any of the field(row) i want to open a new page with the parameters A and B.
    I have used iterator and able to get the value for either  field-A or field-B..How to get both field values in
    IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START
    This my code,
    *Oncreate*
    create object tv_iterator type ycl_salary_review.
    method if_htmlb_tableview_iterator~render_cell_start .
        data: wf_text type string,
            wf_url type string,
            test type char1.
      data: htmlstring type string ,
      rono type string .
      field-symbols: <fs> type any ,
                       <l_a> type any,
                     <l_b> type any.
      assign p_row_data_ref->* to <fs>.
      case p_column_key.
        when 'A'.
          assign component p_column_key of structure <fs> to <l_a>.
          wf_text = <l_a> .
        concatenate 'page2.htm?field_a=' wf_text into
          wf_url.
          call method cl_htmlb_link=>factory
            exporting
              id        = p_cell_id
              reference = wf_url
              target    = '_self'
              text      = wf_text
            receiving
              element   = p_replacement_bee.
      endcase.
    Rgds,
    Venkonk

    Hi Ven,
    pls Go thro this step-by-step creation of Tableview with iterator...
    /people/brian.mckellar/blog/2003/10/31/bsp-programming-htmlb-tableview-iterator
    Look at the Standard BSP Application BSP_MODEL --> Page Name:- table.htm
    *pls assign points,if link is useful*
    Regards
    CSM reddy

  • Link inside tableview iterator

    Hi Experts,
    I kept a link inside tableview iterator it is working fine, when i click the link it shows error, i cant understand it.
    The error is
    The following error text was processed in the system:
    BSP Exception: Das Objekt targetbspapplication/page.htm in der URL /sap(bD1lbiZjPTgwMA==)/bc/bsp/sap/ztableview1/targetbspapplication/page.htm?link=WWW.SDN.SAP.COM ist nicht gültig.
    please help me to solve it.
    Thanks & Regards,
    Arun

    Hi Arun,
    You can try the method mentioned below:
    RENDER_CELL_START
    when 'ACTION'.
            if p_edit_mode is not initial.
              data: bee_table  type ref to cl_bsp_bee_table,
                       link       type ref to cl_htmlb_link.
              data: cell_id_del(20).
              cell_id_del = p_cell_id.
              create object bee_table.
              link ?= cl_htmlb_link=>factory( id = p_cell_id
                                               text = 'Modify Entries'
                                               on cli ck = 'modify').
              bee_table->add( element = link level = 1 ).
              p_replacement_bee ?= bee_table.
            endif.
    OnInputprocessing of BSP page:
    when 'modify'.
          gv_flg_tv_popup = 'X' .
          gv_matcode = gs_materials-matnr.
    In Layout:
    <%
      if gv_flg_tv_popup is not initial.
            %>
            <s cript type='te xt/ jav ascript'>
            var m atcode="<%= gv_matcode %>";
            windo w.open('tv_popup.htm?ma tcode='+ma tcode+'&end','my window','width=450,height=230,res izable=no');
            </s cript>
            <%
      clear gv_flg_tv_popup.
            %>
            <%
      endif.
            %>
    In the above code , I have a tableView in which last  column is a link.On Click of this link a new window is opened in whicn details of one material is displayed in tableview.on click of link OnInputprocessing is trigered and I read the row no for which link is clicked and the material numnber for that row.Now in OnCreate of popup window I fetch the data for that material and display it in the tableView.
    Regards,
    Anubhav

  • Problem with tableview iterator

    Dear friends.
    I try to adopt tableview iterator in my customer's BSP pages. So, I programmed test page.
    METHOD if_htmlb_tableview_iterator~render_row_start .
      m_row_ref ?= p_row_data_ref.
    ENDMETHOD.
    M_ROW_REF is "Static Attribute" and "Public" and "Type Ref To Z3TYDISP"
    z3tydisp has structure as below
    REQNO          NUMC     12
    VGUBUN          CHAR     1
    DSCOFVGUBUN     STRING     0
    REQDT          DATS     8
    RNAME          CHAR     10
    VCOMP          CHAR     30
    VNAME          CHAR     10
    VPLACE          CHAR     5
    VPLACEDSC     CHAR     20
    APPROVAL     CHAR     1
    DSCOFAPPROVAL     STRING     0
    AND... p_row_data_ref has structure below
    REQNO     N     12
    VGUBUN     C     1
    DSCOFVGUBUN     g     0
    REQDT     D     8
    RNAME     C     10
    VCOMP     C     30
    VNAME     C     10
    VPLACE     C     5
    VPLACEDSC     C     20
    APPROVAL     C     1
    DSCOFAPPROVAL     g     0
    In my option, p_row_data_ref has same structure compared with z3tydisp. But there is "CX_SY_MOVE_CAST_ERROR". How I have to define "z3tydisp"????

    >><b>M_ROW_REF is "Static Attribute" and "Public" and "Type Ref To Z3TYDISP"</b>
    instead of this make your M_ROW_REF a instantaneous attribute. since static attribute are intantiated only once when object created and are shared by all other intances. m_row_ref contains data about the table you are going to render using tableview. so it should be public, so that get different data for different iterator objects.
    your p_row_data_ref must be of type ref to data which is superior class of data types.
    and if you have defined iterator "IF_HTMLB_TABLEVIEW_ITERATOR" in your interfaces. then you need not to define structure for p_row_data_ref, its already there in interface.
    hope this will solve your problem,
    regards,
    hemendra

  • TableView Iterator in WebDynpro as in BSP

    Hi all,
    i'm planning to move from BSP to WebDynpro ABAP and have a question:
    Does WD ABAP provide the same kind of <htmlb:tableView> as BSP? Especially, does it support the concept of an tableview iterator?
    Thx & Regards,
    Daniel

    Yes you'll find everything.
    You'll find also the ALV extension of a table.
    I was familiar with iterator and I like it so much; in WDA you can reach the same result but in a different way.
    Basically you have to prepare, in advance, all the data in the table rows and then in the table configuration you'll describe the rules for each column (even with variants per row).
    You have to study the Table UI object with table cell variant and then ALV features.
    Sergio

  • BSP Extension Composite Element with Body

    Hello,
    I created an own BSP Extension element "myLink" which should be a composite element containing HTMLB:LINK element.
    The myLink-DO_AT_BEGINNING looks like follows:
      DATA: orgLink  TYPE REF TO CL_HTMLB_LINK.
      orgLink = CL_HTMLB_LINK=>FACTORY( id = id
                                      reference = reference
                                      text = text ).
      WHILE m_page_context->element_process( element = orgLink )
        EQ CO_ELEMENT_CONTINUE.
      ENDWHILE.
      rc = CO_ELEMENT_CONTINUE.
    This works fine for  - Tag (coming from DO_AT_END of HTMLB:LINK) is inserted before the body of my element.
    It is possible to add the text "LinkText" as a literal in the WHILE - loop. But: I don´t find a way to do this dynamically! The body of a myExtension:myLink can contain text, images, other BSP elements. How can I access this during runtime so that I can supply the BODY-parameter of method "element_process"? How to do this? Or isn´t this the solution for this problem?
    Maybe I´m to silly to see obvious things. I read a lot of articles about composite BSP elements - but I didn´t find an example handling dynamic or unknown element-bodies.
    Thank you for any help,
    best regards,
    Stefan

    Hi Stefan,
    I understand what you want to achieve - maybe you have to play around with the "delegated" attributes/methods to really achieve what you want using HMTLB:LINK from within your element this way.
    Here is what I did for a similar problem: I created my own tooltip-on-mouseover extension, which can be wrapped around any kind of other elements that are placed in the tooltip element body.
    I also have a special attribute in this element, "contentAsLink". If this attribute is set, I render the opening href HTML tag (<a>) in method DO_AT_BEGINNING, and the closing tag (</a>) in DO_AT_END. Not the best way if you really want to stick with HTMLB everywhere, but it's nice and easy.
    Here is the precise opening tag I use:
    <a class="urLnkFunction" href="javascript:void(0);">
    Hope this helps you to find a solution for your needs.
    Cheers,
    Max

  • HTMLB TableView Iterator

    Hello,
    I try the weblog OF Brian McKellar corresponding to the HTMLB TableView Iterator and as like certain people, the Dropdownlist of the column 'CURRENCY' is empty. This is cetainely due of how in the constructor the table is declared. So, for those which succeeded in replir the Dropdownlist of the column 'CURRENCY' can they give me the code of your constructor.
    Thanks a lot.
    Farid BERRA

    Hello Ariel,
    Thanks to your councils, i succeeded to get data in the DROPDOWNLISTBOX.
    In the method RENDER_CELL_START, for CURRENCY, i have:
        WHEN 'CURRENCY'.
          IF P_EDIT_MODE IS NOT INITIAL.
            DATA: DROP_DOWN TYPE REF TO CL_HTMLB_DROPDOWNLISTBOX.
            DROP_DOWN = CL_HTMLB_DROPDOWNLISTBOX=>FACTORY(
                                ID                = P_CELL_ID
                                SELECTION         = M_ROW_REF->CURRENCY
                              TABLE             = ME->M_CURRENCIES_REF
                                NAMEOFKEYCOLUMN   = 'NAME'
                                NAMEOFVALUECOLUMN = 'VALUE' ).
            GET REFERENCE OF TT_CURR INTO DROP_DOWN->TABLE.
            P_REPLACEMENT_BEE = DROP_DOWN.
          ENDIF.
    And in the constructor:
      DATA: LS_TCURT TYPE TCURT,
            WA_LINE TYPE LINE OF TIHTTPNVP.
      SELECT WAERS LTEXT
             INTO (LS_TCURT-WAERS, LS_TCURT-LTEXT)
             FROM TCURT.
        CLEAR WA_LINE.
        MOVE LS_TCURT-LTEXT TO WA_LINE-NAME.
        MOVE LS_TCURT-WAERS TO WA_LINE-VALUE.
        APPEND WA_LINE TO TT_CURR.
      ENDSELECT.
    And finally, I declared in the Instance Attribut:
    TT_CURR TYPE REF TO TIHTTPNVP.

  • BSP tableview Iterator

    Dear Experts,
    I am currently working with BSP tableview iterator.
    I have use many internal tables and the data are store in my class.
    My question is how can i use certain data which already store in my class and display them in my tableview with iterator.
    I use another internal table in my tableview, but when i try to refer my other data which already stored in my class, the internal table is empty.
    Please guide and advise.
    Thanks and regards,
    Simon Kiew

    Hi Bin,
    You can use HTMLB Link in your RENDER_CELL_START method.
    WHEN 'LINK'.
    p_replacement_bee = cl_htmlb_link=>factory(  id    = p_cell_id
    reference= 'http://www.yahoo.com/'
    text      = 'YAHOO'
    target = '_new' ).
    Hope this helps,
    Regards,
    Ravikiran.

  • [svn:osmf:] 14797: Decouple MetadataGroup from synthesizer API, MetadataGroup should only be linked in when a composite element is used.

    Revision: 14797
    Revision: 14797
    Author:   [email protected]
    Date:     2010-03-16 16:34:48 -0700 (Tue, 16 Mar 2010)
    Log Message:
    Decouple MetadataGroup from synthesizer API, MetadataGroup should only be linked in when a composite element is used.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/elements/compositeClasses/CompositeMetadata.as
        osmf/trunk/framework/OSMF/org/osmf/metadata/Metadata.as
        osmf/trunk/framework/OSMF/org/osmf/metadata/MetadataGroup.as
        osmf/trunk/framework/OSMF/org/osmf/metadata/MetadataSynthesizer.as
        osmf/trunk/framework/OSMF/org/osmf/metadata/NullMetadataSynthesizer.as
        osmf/trunk/framework/OSMFTest/org/osmf/elements/compositeClasses/TestCompositeMetadata.as
        osmf/trunk/framework/OSMFTest/org/osmf/metadata/TestMetadataGroup.as

    The Morena 6.0 - Image Acquisition Framework for Java(tm) Platform from http://www.gnome.sk is a package which enables you to connect to your scanner or a camera in a very intuitive way.
    If you just want to see how Morena works with your scanner or camera:
    - java (1.2 or higher for Windows, 1.3 or higher for Mac OS X) has to be installed on your computer
    - a scanner or camera has to be installed on your computer
    - download the trial package from http://www.gnome.sk
    - unzipp it
    - go to the examples directory of the unzipped package
    - in Windows: doubleclick the runExampleShow.bat
    - in MacOS:
        - open the Terminal window
        - change the working directory to the examples
        - run .sh file (type ExampleShow.sh or sh ExampleShow.sh)
    This will pop up the Twain Source Selection user interface. There, all your scanners and cameras which do have a twain driver should be listed. (About 90% of scanners and cameras on the market do have a twain driver for Windows, only a few do have a twain driver for MacOS.) Select one of them. The user interface of the selected scanner (camera) will appear. Confirm the scanning (you can set the scanning parameters first). The scanned image will be displayed in a separate window. To end the application, close that window.
    Running different examples, you can test scanning with hidden UI, saving the scanned image, using ADF, taking images at regular intervals (ExampleCamera) ...
    To see how Morena works in applets, go to the online remote examples http://www.gnome.sk/Twain/remote/www/twain/server/php/remote.html
    If there is any problem, do not hesitate to inquire about it at the technical support, email: [email protected] or join the online forum at www.gnome.sk
    Erika Kupkova

  • TableView: ITERATOR in MVC

    Using the MVC design pattern, ITERATOR methods (e.g. IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START) can be implemented in the Controller, in the Model or in a seprated class.
    I give my vote to the CONTROLLER...
    And you, which is the best place where to implement it?
    Sergio

    Hi Sergio,
    it depends on what exactly you want to do in your methods.
    For pure tableview rendering problems I would recommend leaving it in the iterator.
    I try to keep my application's methods well structured and always in the class they do belong most to - thinking about placing iterator methods somewhere else is something I have not thought of before, and I don't think I will do so anytime ...
    Using the controller as you suggested ... not so appropriate imo, as a controller was introduced to separate display and application code, and the iterator is used to change display/rendering of a tableview.
    Max

  • Different background color in TableView Iterator

    Hi,
    I've created a tableview using iterator, that shows data in 3 different descending levels (each one dependant on the previous one). What I want to do now is to color each level's background differently to distinguish them better. What should I do?
    Thanks in advance

    Hi,
    you could look this:
    <a href="http://help.sap.com/saphelp_nw70/helpdata/en/28/4bae407e69bc4ee10000000a1550b0/frameset.htm">http://help.sap.com/saphelp_nw70/helpdata/en/28/4bae407e69bc4ee10000000a1550b0/frameset.htm</a>
    Reward points for helpful answers.
    Best regards,
    Gianluca Barile

Maybe you are looking for