Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by poovarasan on Sep 01, 2009 00:21
open dhtmlx forum
Updtation of amount field while changing the price

Dear Sir,

I have field like quantity, price and amount. when i am doing changes in price field i need to update the amount as well as total quantity.
Si tried like below.

My code:

mygrid.setColumnIds("SR.No,Moved From Project Name,Moved From Lab Name,Moved Chemical Name,CAS NO,Moved Date,Moved Quantity,Moved Project Name,Moved lab Name,BAANOrder,Po,Price,Amount");

mygrid.setColTypes("ro,ro,ro,ro,ro,ro,ro,ro,ro,ro,ro,ed,ed[=c6*c11]");
// c6=Moved Quantity
// c11= Price
Amount=c6*c11
when i am trying this i am getting error like below

Error type : configuration
Description : incorrect cell type :math

So what i have to do? do i want to import any dhtml java script?

i have used below java script

<script src="../../../../js/common/dhtmlxcommon.js"></script>
<script src="../../../../js/common/dhtmlxgrid.js"></script>
<script src="../../../../js/common/dhtmlxgridcell.js"></script>
<script src="../../../../js/common/ext/dhtmlxgrid_selection.js"></script>
<script src="../../../../js/common/ext/dhtmlxgrid_nxml.js"></script>
<script src="../../../../js/common/dhtmlxgrid_excell_link.js"></script>

<script src="../../../../js/dhtmlxGrid/codebase/dhtmlxgrid.js"></script>
<script src="../../../../js/grid/dataProcessor/dhtmlxdataprocessor.js"></script>    

please give a suggession.

Thanks,
poovarasan
Answer posted by dhxSupport on Sep 01, 2009 01:39
>>incorrect cell type :math
You have to include dhtmlxGrid\codebase\ext\dhtmlxgrid_math.js file to your page