Changes to the ajax function in order to obtain the list of variables
This commit is contained in:
@@ -71,8 +71,7 @@ $html .= '<option value="ID_REPLACE_WITHOUT_CHANGES">@=</option>';
|
||||
$html .= '</select> ';
|
||||
$html .= '</td>';
|
||||
|
||||
$html .= '<td width="20%">';
|
||||
//$html .= '<input type="text" id="search" size="15" onkeydown="validartexto(event);">';
|
||||
$html .= '<td width="20%" valign="top">';
|
||||
$html .= '<input type="text" id="search" size="15">';
|
||||
$html .= '</td>';
|
||||
$html .= '</tr>';
|
||||
|
||||
@@ -522,16 +522,17 @@ 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';
|
||||
//$_REQUEST['queryString'] = 'SYS';
|
||||
$aVariables = array();
|
||||
foreach ($aFields as $key => $value) {
|
||||
if(stristr($aFields[$key]['sName'], $_REQUEST['queryString'])){
|
||||
if(stristr($aFields[$key]['sName'], $queryText)){
|
||||
$aVariables[] = $aFields[$key];
|
||||
}
|
||||
}
|
||||
$oJSON = new Services_JSON();
|
||||
echo $oJSON->encode($aFields);
|
||||
echo $oJSON->encode($aVariables);
|
||||
break;
|
||||
/*
|
||||
case 'saveFile':
|
||||
|
||||
Reference in New Issue
Block a user