cancel
Showing results for 
Search instead for 
Did you mean: 

Any crack way to add a line that is always on the top in a tree table?

Former Member
0 Kudos

I need to add a line that is always on the top in a tree table? I want this line to act as a root record in this tree table. Does the tree table provide any built-in mechanism to fulfill this function?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

I have added a line on the top. But there is a problem on display. I want nothing to displayed in this line, but unfortunately some columns are defined as checkbox or input fields. So how can I clean this checkbox or input fields for this line?

Former Member
0 Kudos

Create a calculated read-only attribute of type Visibility for this node. Name it, say, HideRootEditors.

Write the following for generated attribute getter:


return element.node == wdContext.node<yourRecursiveNode>
 ? WDVisibility.NONE : WDVisibility.VISIBLE;

Then bind visibility of all cell editors (sure, except master column) to this attribute.

VS

Answers (1)

Answers (1)

Former Member
0 Kudos

Wei,

A bit unclear -- do you want non-scrollable line atop of table? This is not possible with tree table, neither in NW04 nor in NW04s

If, on other hand, you whant to add a single root for whole data, then simply insert it as a first element of your recursive node, and add all of the rest to this element recursion sub-node.

VS