- Thu Dec 13, 2018 11:44 am
#822021
hi all,
i am using on a process which is a support process. some of our employee have a lot of case. so i want to help them which case they need to work. so that i create a process which have only one task. they chosee some data and collect datas which include what they need. i stored their case number and i know their APP_TAS_TITLE , using that information i want to create a link for each case. there is my trigger
i am using on a process which is a support process. some of our employee have a lot of case. so i want to help them which case they need to work. so that i create a process which have only one task. they chosee some data and collect datas which include what they need. i stored their case number and i know their APP_TAS_TITLE , using that information i want to create a link for each case. there is my trigger
Code: Select all
i have failed hard i think
can you help me with create a link ?if (@@action == 'search') {
@@action = '';
$where = '';
if (@@tedarikci) {
$where .= "TEDARIKCI='".@@tedarikci."'";
}
if (@@karegori) {
$where .= (empty($where) ? '' : ' AND ') .
"TALEPKAT='".@@karegori."'";
}
if (@@grup) {
$where .= (empty($where) ? '' : ' AND ') .
"TALEPGRUP='".@@grup."'";
}
$where = (empty($where) ? '' : 'WHERE ') . $where;
$sql = "SELECT CASENO as satinalma01,CONCAT(TALEPKAT,' ',TALEPGRUP,' ',TALEPURUN,' ',TALEPBOYAMA) as satinalma02, CONCAT(TALEPMIKTAR,' ',TALEPADET) as satinalma03,CONCAT(GELENMIKTAR,' ',GELENADET) as satinalma04 from PMT_SATINALMA $where AND SADURUM!='2' ORDER BY TALEPURUN,TALEPBOYAMA";
@=satinalma = executeQuery($sql);
for ($k = 1; $k <= count(@=satinalma); $k++) {
$CASENO = @=satinalma[$k]['satinalma01'];
$sql1 = "SELECT APP_UID, DEL_INDEX FROM APP_CACHE_VIEW WHERE APP_NUMBER = '$CASENO' AND APP_TAS_TITLE = 'Siparişlerin Mal Kabule İletilmesi'";
$aRows1 = executeQuery($sql1);
$url = "../cases/open?APP_UID=".$aRows1['APP_UID']."&DEL_INDEX=".
$aRows1['DEL_INDEX']."&action=draft";
@=satinalma[$k]['url'] = $aRows1[1]['url'];
};
PMFRedirectToStep(@@APPLICATION, @%INDEX, 'DYNAFORM', '6509094235c1239d20df525098306517');
}