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 |
 |
 |
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 |
 |
 |
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 |
 |
 |
|