Skip to Content
0
Former Member
Mar 24, 2009 at 03:04 AM

onEnter to display short desc of input ID

25 Views

This is what I am trying to do:

When user keyed in division ID, eg: "00" and he press enter, the TextView element (which is binded to a value element, will contain the desc of the division ID.

However the problem is when I changed the value of what is in the input box, eg: to "01" and I press enter. The desc inside the value element is still showing the previous ID's and not updated automatically.

The following code is what happened when I press enter:

" wdContext.nodeCheck_Division().currentCheck_DivisionElement().setDivision(wdContext.nodeHeader().currentHeaderElement().getDIVISION());

wdThis.wdGetDemoWSControllerController().checkDivision();

wdContext.currentContextElement().setDivisionDesc(" " + wdContext.nodeDivisionDT1().currentDivisionDT1Element().getName() + " ");"

What I am trying to do in the above code is to set the input context values into the model of checkDivision, THEN, I run checkDivision(). Lastly, I get the results from the result node of checkDivision() and assigned it to the value node that displays the description.

Please help! 😔