CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Assign Values to Fields on Editable Grid Rows

Print topic Send  topic

Author Message
aakici


Posts: 49
Posted: 05/22/2005, 7:24 PM

When i am using editable grid, i am usin this code to assign values to textboxes on rows from a record form.
Code is here :
// *****
var Element_Number = this.name.substring(11)-1;
var Element_ID = snalimElements[Element_Number][snalimserinoID].value;
if (parseInt(Element_ID) > 0) {
snalimElements[Element_Number][snalimsbelgenoID].value = document.cari.fatno.value;
snalimElements[Element_Number][snalimstarihID].value = document.cari.tarih.value;
snalimElements[Element_Number][snalimsfirmaidID].value = document.cari.firmaid.value;
//
option=document.cari.firmaid.options[document.cari.firmaid.selectedIndex].text;
document.cari.firmaid.value
txt=option;
snalimElements[Element_Number][snalimsfirmaID].value=txt;
//******

but this code is hard to use. is there another code to achieve my purpose.
_________________
Regards,
M.Alpaslan AKICI
View profile  Send private message
Nicole

Posts: 586
Posted: 05/23/2005, 5:03 AM

Hello,
If you need to run through all rows it is the only valid code as I know. The similar one is used in CCS generated code

_________________
Regards,
Nicole
View profile  Send private message
aakici


Posts: 49
Posted: 05/23/2005, 8:46 AM

Yes, this is similar code adapted from one of CCS examples. But i have problem at the part :
var Element_ID = snalimElements[Element_Number][snalimserinoID].value;
this part not working always. i couldn't understand the cause, and what this part means.
_________________
Regards,
M.Alpaslan AKICI
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.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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