scrollable text field in table
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.
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>; )
Refer my forum post @ Table Popup menu of NW 2004s.