3.2.0

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
May 11,
You should use selectionChanged action instead of click.
Alex (ActiveWidgets)
May 11,
Thanks!!!

Now its working.

:)
Basking Rootwalla
May 11,

This topic is archived.

See also:


Back to support forum