This topic is locked

total based on multiple selection

2/10/2018 11:29:23 AM
PHPRunner General questions
ruzgarajans author

Hi, Sorry

I can not speak English well
please watch screenshots..

1-) lookup wizard setting..


2-)how to do it for total view? TUTAR? (total=tutar)


Thank you very much..

admin 2/12/2018

I'm not really sure I understand your question. What do we need to do here?

ruzgarajans author 2/12/2018



I'm not really sure I understand your question. What do we need to do here?


sory ı cant speak english.

I m use translate


admin 2/13/2018

This can be done but it is complicated and more info is required. You need to post your project to Demo Account and contact support directly at https://xlinesoft.com/dss/support.asp. Demo Account button can be found on the last screen in PHPRunner.

M
mersintarim 2/13/2018

$toplam=0;

$urun = explode(',',ürün);
foreach($urun as $key) {

$sql = db_exec(select urun_fiyati from urunler where urun_adi=$key);

$rs = CustomQuery($sql);

$data = db_fetch_array($rs);

$toplam=$toplam+$data["ürün_fiyatı"];
}

ruzgarajans author 2/24/2018

Merhaba,

Abi yardımın için teşekkürler ama ben bu kodu nereye koyacağımı bulamadım.. bir de tablo isimlerim değiştirmek zorunda kaldım, iyice karıştı..
multiple selection ile toplam tutarı gösterdim. ( Custom expression)ancak veri tabanına yazmıyor. veritabanına tek bir ürün fiyatı

1----
yazdırıyor

2--


3----


şu, lanet satırı nasıl toplarım?

M
mersintarim 2/25/2018

before add event
$toplam=0;

$urun = explode(',',ürün);
foreach($urun as $key) {

$sql = db_exec(select urun_fiyati from urunler where urun_adi=$key);

$rs = CustomQuery($sql);

$data = db_fetch_array($rs);

$toplam=$toplam+$data["ürün_fiyatı"];
}
$values[tutar"]=$toplam;