Changes to the ajax function in order to obtain the list of variables

This commit is contained in:
user
2012-11-23 16:54:38 -04:00
parent 209cdfbed7
commit adb1ae1c34
3 changed files with 22 additions and 21 deletions

View File

@@ -71,8 +71,7 @@ $html .= '<option value="ID_REPLACE_WITHOUT_CHANGES">@=</option>';
$html .= '</select> &nbsp;&nbsp;&nbsp;&nbsp;';
$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>';

View File

@@ -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':