Bruce,
 
The model.currentPartPricing must be instantiated first!
 
model.currentPartPricing = {};
model.currentPartPricing.partno = dgPrice.selectedItem.partno;
model.currentPartPricing.price = dgPrice.selectedItem.price;
model.currentPartPricing.quantity = dgPrice.selectedItem.quantity;
model.currentPartPricing.perRoll = dgPrice.selectedItem.perRoll;
 
 
Regards,
 
Bjorn Schultheiss
Senior Flash Developer
QDC Technologies
 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of boy_trike
Sent: Monday, 25 September 2006 9:54 AM
To: [email protected]
Subject: [flexcoders] Why does the commented line NOT work??

model.currentPartPricing.partno = dgPrice.selectedItem.partno;
model.currentPartPricing.price = dgPrice.selectedItem.price;
model.currentPartPricing.quantity = dgPrice.selectedItem.quantity;
model.currentPartPricing.perRoll = dgPrice.selectedItem.perRoll;

// model.currentPartPricing = dgPrice.selectedItem as PartPricing;

Instead of the 1st 4 lines, I wanted to just assign the object. However, when I do that, the
model.currentPartPricing becomes NULL

What am I doing wrong?

Thanks

Bruce

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to