Skip to Content
author's profile photo Former Member
Former Member

Design2003 & Iterator

Hi,

I was trying to implement Brian's weblog on iterator, but for the seats column in edit mode if I use Design2003 it shown as blank in edit mode. However if i change the page layout using Design2002, it'll shows properly with box around each input field as mentioned in the weblog.

I also tried using Design2003 with gridlayout and the three fields were shown, but no box around it.

All my application is using Design2003 and i would like to set more than 1 input field in a single cell of table view. Without boxes around each input field will cause confusion for the user. Using the gridlayout is fine for me, but does anyone know how to show the box around input field inside a tableview? The ideal solution is to have the page behaves the sameway regardless Design2002 or Design2003. But i'll take what I can get. I'm using 620 SP 41. Does anyone found the same problem? Is there a higher SP that fix this problem?

Thanks,

Iwan

Add comment
10|10000 characters needed characters exceeded

3 Answers

  • Posted on Aug 30, 2005 at 11:47 PM

    Yes I have encountered the same problem. Like Brian said in his weblog, this design technique isn't really a recommended approach. He just wanted to demonstrate the ability to combine fields. More likely the combination of images and text might be a better choice. I too got it working with a grid but without the lines around the fields:

       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.

    The better solution might be to adjust the table columns to only have one column in display mode but expand that to three separate columns when in change mode.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 28, 2005 at 08:38 PM

    Actually, is it possible that a SP introduced this problem? I had a BSP in development that was working correctly and displaying the boxes. At some point during the development, the boxes stopped showing up. I was using Design2003 the entire time.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 02, 2006 at 08:36 AM

    We also have a similar problem

    We were using WebAS 6.20 patch level 41 and design 2003.

    We have a gridLayout, and in 1 gridLayoutCell we have a textView and a tableView. The tableView uses an iterator.

    Input fields displayed with a box around them.

    Character output fields were left-aligned under the heading with a single blank space after the cell divider.

    We applied patches 42 - 59 (Basis and ABA)

    in tableviews using an iterator

    Input fields no longer have a box around them.

    Character output fields were left-aligned without a single blank space after the cell divider, so they appear scrunched against the wall of the cell.

    Has anyone found any solutions to this behaviour?

    Add comment
    10|10000 characters needed characters exceeded