on 09-20-2006 4:55 AM
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®ards
Ananya
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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>
Bala
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
Hi,
There is actually nio option for TextEdit in tableCellEditor..Can the input field be made multiline in any manner ?
Thanks&Regards
Ananya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.