Adding some updates to the ajax function and also, the Ajax call to the variable picker form

This commit is contained in:
user
2012-11-23 15:23:44 -04:00
parent 2d3f7bc8cc
commit 209cdfbed7
4 changed files with 166 additions and 198 deletions

View File

@@ -519,6 +519,20 @@ try {
case 'events':
$oProcessMap->eventsList( $oData->pro_uid, $oData->type );
break;
case 'getVariableList':
G::LoadClass( 'xmlfield_InputPM' );
$proUid= isset($_REQUEST['process'])?$_REQUEST['process']:'';
$aFields = getDynaformsVars( $proUid, true, isset( $_REQUEST['bIncMulSelFields'] ) ? $_REQUEST['bIncMulSelFields'] : 0 );
$_REQUEST['queryString'] = 'SYS';
$aVariables = array();
foreach ($aFields as $key => $value) {
if(stristr($aFields[$key]['sName'], $_REQUEST['queryString'])){
$aVariables[] = $aFields[$key];
}
}
$oJSON = new Services_JSON();
echo $oJSON->encode($aFields);
break;
/*
case 'saveFile':
global $G_PUBLISH;