CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 updating calculated field value with javascript in a grid

Print topic Send  topic

Author Message
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
View profile  Send private message
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
View profile  Send private message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.