cancel
Showing results for 
Search instead for 
Did you mean: 

Melting of table cells in a column

Former Member
0 Kudos

Hello,

i want to display a table with some columns and melt cells on first column together. The result should be a view (see below) like it can be seen in CRM-ABAP developed Backendapplications (/nbp)

Example:

Table xy:

Col1 | Col2 | Col3 ....
---------------------------
V1     | V2    |  V2.1
       |-------------------
       | V3    |  V3.1
---------------------------
V4   | V5    |  V5.1
---------------------------   

Can anybody help me??

best regards

Mathias

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Mathias,

What version of NetWeaver are you using?

This is very simple to implement with NW04s (NetWeaver 7.0)

Valery Silaev

SaM Solutions

http://www.sam-solutions.net

Former Member
0 Kudos

Hi,

im actually using NW 04. The old one

regards

Mathias

Former Member
0 Kudos

Mathias,

It is possible to emulate such behavior in NW04. Up to certain extent, of course.

Let us assume that your table is bond to value node MyNode, and first column shows attribute MyGroup using TextView.

Now in node MyNode create attribute MyGroup_Visibility of type Visibility (use elipses button in properties for attribute's type, select Visibility from uielementdefinitions). Mark this attribute as read-only and calculated.

NW IDE will generate getter function for this attribute. Fill in the following as function body:


final int myIdx = element.index();
if (0 == myIdx) return WDVisibility.VISIBLE;
final IWDElement prevElement = element.node().getElementAt(myIdx - 1);
return element.getMyGroup().equals(prevElement.getAttribute("MyGroup")) ?
  WDVisibility.NONE : WDVisibility.VISIBLE;

Now bind "visible" property of TextView (that is used as Table cell editor for first column) to attribute MyGroup_Visibility.

At run-time only first unique group name will be shown, subsequent rows will show blank cells if group is the same. But grid lines still be there...

Valery Silaev

SaM Solutions

http://www.sam-solutions.net

Former Member
0 Kudos

Hi,

Do you remember my problem with the melting columns?

I found a solution last year and this worked successfully until last week

This was the moment, we got the Portal Upgrade to NW 2004s (NW 7.0).

Now, I`ve the same problem as last year because the old solution doesn`t work in NW 04s.

So, I remembered to your message. In this message you told me, that it would be very easy to do this in 7.0.

Therefore I would be very happy if you could help me again for this version of NW and explain me this solution.

regards

Mathias

Answers (1)

Answers (1)

roberto_tagliento
Active Contributor
0 Kudos

Exist TableTreeUIElement.