Implementation of AllowedValues for fields that depend on other fields

SVN:trunk[148]
This commit is contained in:
Denis Flaven
2009-09-11 20:35:16 +00:00
parent cc9420f009
commit e2d60e7c8f
7 changed files with 69 additions and 22 deletions

View File

@@ -368,12 +368,14 @@ switch($operation)
{
$aNewFieldsMap[$sFieldCode] = $id;
}
$iFieldsCount = count($aFieldsMap);
$sJsonFieldsMap = json_encode($aNewFieldsMap);
$oP->add("
// Initializes the object once at the beginning of the page...
var oWizardHelper = new WizardHelper('$sClass');
oWizardHelper.SetFieldsMap($sJsonFieldsMap);
oWizardHelper.SetFieldsCount($iFieldsCount);
ActivateStep(1);
</script>\n");