EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: dassoubarna on December 01, 2016, 12:30:04 AM



Title: How to load data in a cell from database depending upon two other cell
Post by: dassoubarna on December 01, 2016, 12:30:04 AM
I have two MySQL table.
The first table has four column Date, Product, EX, Quantity. EX have three options RB,RC,RT
In the second table there are five columns - Date, Product, RB,RC,RT
RB, RC and RT are the SUM(MySQL) of the Quantity of a particular Product and Date getting from the first table.

For example if first table is follows:
DateProductEXQuantity
02.02.16P-1RB100
02.02.16P-1RB50
02.02.16P-1RC200

Then the second table will be like:
DateProductRBRCRT
02.02.16P-11502000

So I want to run MySQL query and load the result instantly in the RB,RC and RT columns of the second table depending on the value enter in the Date and Product columns of the second table. How could I do that?  ??? Please Help!