jpser
Posts: 44
|
| Posted: 06/24/2006, 9:32 AM |
|
I have a grid ( database records), say : Field 3 = Field 2 * Field 1
I do need to update and store field 3 value
I suppose the best method is with javascript
How to specify this for the onle row concerned ?
For exemple : Onchange ( on field 1 and 2)
document.field3.value = document.field2.value + document.field1.value
but this gives error
Do i have to specify the row ( and how ?)
What's wrong, any idea , or links
thanks
_________________
jp serei
|
 |
 |
peterr
Posts: 5971
|
| Posted: 06/24/2006, 9:57 AM |
|
These may help: http://examples.codecharge.com/ExamplePack/OrderEntry/O....php?order_id=1 http://forums.codecharge.com/posts.php?post_id=60507
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
jpser
Posts: 44
|
| Posted: 06/25/2006, 5:16 AM |
|
thank you for your quick answer
BUT could you please, write the expression ( in javascript) giving the value to a current cell within a grid
This asks to know the current rownumber in javascript ?
so:
1/ expression of the current row number in javascript
2/ expression of a field , say field1, in a current row
many thanks,
_________________
jp serei
|
 |
 |
|