cancel
Showing results for 
Search instead for 
Did you mean: 

scrollable text field in table

Former Member
0 Kudos

Hi,

We have requirement of an editable scrollable text field to be put in one column of a tble.

Input field wouldnot do as it is not scrollable..

There is not any option for 'TextEdit' in tableCellEditor.

Please suggest a solution. Thanks in advance.

Thanks&regards

Ananya

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

In NW04, you could use TextEdit outside of the table connected to lead selection of the table.

In NW04s, you could use a table popin containing a TextEdit.

Armin

Former Member
0 Kudos

Hi Armin,

Thanks for the response. Can you elaborate a bit,please on the two ways?

Regards

Ananya

Former Member
0 Kudos

Ananya,

<u>Option 1:</u>

Simply get the lead selected element from the node that is bound to the table and load the text from suitable attribute of the lead selected element to the TextEdit UI element (present outside the table).

In other words, assuming "attr1" is the attribute that is bound to the TextEdit, write some code like this in the onLeadSelect action of the table:


   int ls = wdContext.node<TableSource>.getLeadSelection() ; 
   wdContext.currentContextElement.setAttr1(
          wdContext.node<TableSource>.get<TableSourceElement>At(ls).get<Text>; 
                                           )

<u>Option 2:</u>

Refer my forum post @ .

Bala

Former Member
0 Kudos

If you bind the TextEdit.text property to an attribute under the table's data source node, it will always contain the attribute value at the lead selected row.

Simply assign an empty action to the Table.onLeadSelect event (if there isn't already an action). Then you get a server round-trip on every lead selection change and the TextEdit content will be updated automatically.

Armin

Former Member
0 Kudos

Hi Armin and Bala,

Thanks a lot for the inputs. They were of great help.

Regards

Ananya

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

There is actually nio option for TextEdit in tableCellEditor..Can the input field be made multiline in any manner ?

Thanks&Regards

Ananya

Former Member
0 Kudos

Anaya,

No way currently.

Use TextView to display preview of text in table and stand-alone (outside table) TextEdit for editing.

Valery Silaev

EPAM Systems

http://www.NetWeaverTeam.com

Former Member
0 Kudos

Hi,

Thank you .We will look into alternatives

Thanks&regards

Ananya

Former Member
0 Kudos