cancel
Showing results for 
Search instead for 
Did you mean: 

populating table fields at runtime

Former Member
0 Kudos

Hi All,

I have table UI and it has a tree intergrated in it, so the context for my table looks like this

---NodeBlock3

-


RecursiveNodeBlock3

-


elem1

-


elem2

-


elem3

-


etc....

root node - Nodeblock3 (Cardinality - 0..n and it is Singleton)

elem 3 is an input field

my requirement is as follows: at runtime I input something in input field (elem 3) and hit enter. Elem 2 (TextView) has to get populated automatically at runtime with the value I entered in Input field (elem 3)

please let me know if this is possible and how can I go about doing this.

Thanks

Neeraja

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Its working!

I had to loop through and set the attributes properly in the recursion node

Former Member
0 Kudos

Why don't you just bind the TextView against attribute "NodeBlock3/@elem3"?

Armin

Former Member
0 Kudos

Hi Armin,

Both the input field and the text view are bound to the appropriate context.

but when I put in some value in elem3 and hit enter it does not populate elem 2.

I also added code in theOnActionEnter method of the input field.

wdContext.nodeBlock3Node().currentBlock3NodeElement()

.setElem2(wdContext.nodeBlock3Node().currentBlock3NodeElement().getElem3());

I think it is got to do with dynamically assigning the value to elem 2. Any Inputs?

Regards,

Neeraja

Edited by: Neeraja Jagannath on Aug 1, 2008 3:43 PM