Adding some changes to the interface in order to fix the list filters in the variable picker feature
This commit is contained in:
@@ -56,6 +56,8 @@ $html .= '<option value="all">All Variables</option>';
|
||||
$html .= '<option value="system">System Variables</option>';
|
||||
$html .= '<option value="process">Process Variables</option>';
|
||||
$html .= '</select> ';
|
||||
$html .= '<input type="hidden" id="PRO_UID" name="PRO_UID" value="'.$_POST['sProcess'].'"/> ';
|
||||
$html .= '<input type="hidden" id="selectedField" name="selectedField" value="'.$_POST['selectedField'].'"/> ';
|
||||
$html .= '</td>';
|
||||
|
||||
$html .= '<td width="25%">';
|
||||
|
||||
@@ -522,11 +522,20 @@ try {
|
||||
case 'getVariableList':
|
||||
G::LoadClass( 'xmlfield_InputPM' );
|
||||
$proUid= isset($_REQUEST['process'])?$_REQUEST['process']:'';
|
||||
$queryText= isset($_REQUEST['queryText'])?$_REQUEST['queryText']:'';
|
||||
$aFields = getDynaformsVars( $proUid, true, isset( $_REQUEST['bIncMulSelFields'] ) ? $_REQUEST['bIncMulSelFields'] : 0 );
|
||||
//$_REQUEST['queryString'] = 'SYS';
|
||||
$queryText= isset($_REQUEST['queryText'])?$_REQUEST['queryText']:'';
|
||||
if ($_REQUEST['type']=='system'){
|
||||
$isSystem = true;
|
||||
} else {
|
||||
$isSystem = false;
|
||||
}
|
||||
var_dump($isSystem);
|
||||
if ($_REQUEST['type']=='all'){
|
||||
$aFields = getDynaformsVars( $proUid );
|
||||
} else {
|
||||
$aFields = getDynaformsVars( $proUid, $isSystem, isset( $_REQUEST['bIncMulSelFields'] ) ? $_REQUEST['bIncMulSelFields'] : 1 );
|
||||
}
|
||||
$aVariables = array();
|
||||
foreach ($aFields as $key => $value) {
|
||||
foreach ($aFields as $key => $value){
|
||||
if(stristr($aFields[$key]['sName'], $queryText)){
|
||||
$aVariables[] = $aFields[$key];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user