case 'Record Access Control': $rac = $focus->RecordAccessControl(); $rac->setRelatedRecordID(6004); foreach (array('create', 'retrieve', 'update', 'delete') as $op) { echo 'Listview ' . $op . ' = ' . $rac->hasListViewPermissionTo($op) . "<br>"; echo 'DetailView ' . $op . ' = ' . $rac->hasDetailViewPermissionTo($op) . "<br>"; } foreach (array('create', 'retrieve', 'update', 'delete', 'select') as $op) { echo 'RelatedList Invoice ' . $op . ' = ' . $rac->hasRelatedListPermissionTo($op, 'Invoice') . "<br>"; echo 'RelatedList Potentials ' . $op . ' = ' . $rac->hasRelatedListPermissionTo($op, 'Potentials') . "<br>"; echo 'RelatedList ProjectMilestone ' . $op . ' = ' . $rac->hasRelatedListPermissionTo($op, 'ProjectMilestone') . "<br>"; echo 'RelatedList ProjectTask ' . $op . ' = ' . $rac->hasRelatedListPermissionTo($op, 'ProjectTask') . "<br>"; } break; case 'Record Set Mapping': $rsm = $focus->RecordSetMapping(); $mapinfo = $rsm->getFullRecordSet(); break; case 'ListColumns': $rsm = $focus->ListColumns(); $mapinfo = $rsm->getCompleteMapping(); break; case 'DuplicateRelations': $rsm = $focus->DuplicateRelations(); $mapinfo = $rsm->getCompleteMapping(); break; case 'Import': $mapinfo = $focus->readImportType(); $mapinfo['TargetModule'] = $focus->getMapTargetModule(); break; case 'Map fields':