cancel
Showing results for 
Search instead for 
Did you mean: 

Table View Sorting - Header Click

Former Member
0 Kudos

Hello all,

I am developing table view component for sorting table view contents based on header click. I refer following document.

http://www.scribd.com/doc/7039008/Customizing-HTMLB-Table-View-Component

But I struggle to make further implementation on,

CustomTableModel tableModel =(CustomTableModel)request.getComponentSession().getValue("attr_name");

TableHeaderClickEvent tHEvent = (TableHeaderClickEvent)event;

model.sortByColumn(tHEvent.getColumn()-1);

request.getServletRequest().setAttribute("request_attr",model);

u201C attr_name" and "request_attr" u2013 Signifies?

Please kindly give some additional information or references.

Thank You,

Regards,

Devasarathy Pandi

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi, you can check out this blog for sorting a web dynpro table.

Hope it helps

Juan Gonzalo Duque

detlev_beutner
Active Contributor
0 Kudos

Hi Juan,

Of course it does NOT help, we are talking about HTMLB and not about WebDynpro...

Regards

Detlev

Former Member
0 Kudos

I am struggling to figure out the same issue. I don't know what "request_attr" refer to in this document.

http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/80a7eef2-9a2c-2a10-12bb-abad552f3302&override...

Also I have spent 2 days trying to sort the table but to no avail. Is "request_attr" supposed to be the table's name, or model name or what??

detlev_beutner
Active Contributor
0 Kudos

Hi Devasarathy Pandi,

I don't know the article you have referred to and I don't have the time to read it and to check it, BUT: is the "old classic" thread about this topic, much smaller, and should be enough to get you into the right direction.

Hope it helps

Detlev