:: Forum >>

Outdated data onclick

Hi!

I'm new to JScript and i'm learning with this great tool.

I'm working with the grid and some forms.

I need to update de contents of the form when i click on a row. I try this:

function showActualValue(){
var index = obj.getProperty("selection/index");
var x = document.MyForm;
x.T1.value = obj.getProperty("data/text", index, 0);
x.T2.value = obj.getProperty("data/value", index, 1);
x.T3.value = obj.getProperty("data/value", index, 2);
}

<input type="text" name="T1" size="20">
<input type="text" name="T2" size="20">
<input type="text" name="T3" size="20">

obj.setAction("click", showActualValue);


But, the value appearing in the fields is not the one i clicked, is the value of the row who has lost the focus.

Why aren't synchronized?

Please help.

Thank's
Basking Rootwalla
Tuesday, May 11, 2004
You should use selectionChanged action instead of click.
Alex (ActiveWidgets)
Tuesday, May 11, 2004
Thanks!!!

Now its working.

:)
Basking Rootwalla
Tuesday, May 11, 2004

This topic is archived.


Back to support forum

Forum search