cancel
Showing results for 
Search instead for 
Did you mean: 

Fixed tableview columns with CSS

Former Member
0 Kudos
62

Hi,

I'm trying to fix some columns in a very wide table. I've looked at another post and I tried to convert that solution to a tableview with iterator.

  CASE p_column_index.
    WHEN '1' OR '2' OR '3' OR '4'.
      IF p_column_index = 1.
...
        CREATE OBJECT lo_image.
...
        p_class = 'al am as'.
        p_replacement_bee = lo_image.
      ELSE.
        l_text = get_column_value( p_column_key ).
        p_replacement_bee = cl_htmlb_textview=>factory( text = l_text ).
        CLEAR l_text.
      ENDIF.
      p_style = 'left: expression(document.getElementById("tbl").scrollLeft);position: relative; z-index: 10;'.
  ENDCASE.

This does not do much. The 'p_style = ...' is not found in the source generated in my browser...

Can anybody help please?

Regards

Luk

View Entire Topic
athavanraja
Active Contributor
0 Kudos

check out the following thread

Regards

Raja

Former Member
0 Kudos

Thanks Raja,

Unfortunately this does not solve my problems regarding the fixing of the columns.

I hope someone can help me with some kind of solution...

Regards

Luk

athavanraja
Active Contributor
0 Kudos

yes that dosent solve your problem of fixing columns with the use of p_style. i was just pointing to that thread to let you know what can be done with p_style.

what you could do is combine the solution in the below given link with your htmlb:tableview, i tried to do it but was messing with the style, still havent found a neat solution.

http://web.tampabay.rr.com/bmerkey/examples/locked-column-csv.html

Regards

Raja

Former Member
0 Kudos

Hi,

We have found a way to fix the columns of a tableview with some <BSP:HackAndSlash> elements, also known as the Find and replace. The solution is based on the linked posted before.

This is not the best solution possible, but it gets the job done (for now).

Greets