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

@@ -60,7 +60,7 @@ class WizardHelper
$oSet = DBObjectSet::FromArray($sLinkedClass, $aLinkedObjectsArray);
$oObj->Set($sAttCode, $oSet);
}
else if (($oAttDef->IsExternalKey()) && ($value != '') )
else if (($oAttDef->IsExternalKey()) && (!empty($value)) )
{
// For external keys: load the target object so that external fields
// get filled too
@@ -176,6 +176,16 @@ class WizardHelper
return $aFields;
}
public function GetTargetClass()
{
return $this->m_aData['m_sClass'];
}
public function GetIdForField($sFieldName)
{
return $this->m_aData['m_oFieldsMap'][$sFieldName];
}
static function ParseJsonSet($oMe, $sLinkClass, $sExtKeyToMe, $sJsonSet)
{
$aSet = json_decode($sJsonSet, true); // true means hash array instead of object