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 -> General/Other

 Editable Grid

Print topic Send  topic

Author Message
rvggitschtal

Posts: 7
Posted: 11/07/2007, 3:00 AM

I have an editable grid, having product and unit price.

I've loaded my product/prices in an array "price".

Every time a new line is added, the unit price should be picked up from the array.

Product id --> key_d
Field to be pouplated --> unit_price
Array has product_id and unit_price
price = new Array (); price[2]='5.46'; price[3]='0.48'; price[4]='5.00'; price[5]='0.62'; price[6]='6.86';

In the OnChange event of key_d, I coded following statement:

var Element_Number = this.name.substring(6)-1;
var Element_ID = dms_itemsElements[Element_Number][dms_itemskey_dID].value;
if (parseInt(Element_ID) > 0 ) {
dms_itemsElements[Element_Number][dms_itemsunit_priceID].value = price[parseInt(Element_ID)];}
else {
dms_itemsElements[Element_Number][dms_itemsunit_priceID].value = price[parseInt(Element_ID)];}

Could someone help me on this ?

Thanks


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.