cancel
Showing results for 
Search instead for 
Did you mean: 

Fixed tableview columns with CSS

Former Member
0 Kudos
61

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

Accepted Solutions (1)

Accepted Solutions (1)

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

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello,

Has anyone found a neat solution to this issue? I am using a tableview with an iterator and I have used

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

to solve the issue but after applying SP51 performance of the entire page is not good. CPU usage of the presentation server is 100%. There are alot of rows and columns (up to 350 colums and 10 rows). I have gone bald pulling my hair out trying to get this working again.

Thanks alot!

Rich

Former Member
0 Kudos

Hi,

Could you please paste where you found this answer using findandreplace or share some if the code you used? I can't find the thread when I do a find on findandreplace.

Many thanks!

Rich