🙂 thank you for your precious help
I've read docs and I think.. can I do like you do in phonecall?
in phonecallInstall, you create customer field and phone are linked them through QFfield_callback function
I've done in this way:
in my Recorset.php I've:
$pra_ass = new RBO_Field_Select('Assicurato');
$pra_ass->from('gestionale_anagrafica')->fields('Nome')->set_visible(true);
$pra_cf = new RBO_Field_Text('Cod.Fiscale');
$pra_cf->set_length(200)->set_QFfield_callback('CRM_PraticheCommon','QFfield_cf');
in Common file I've created that function:
public static function QFfield_cf(&$form, $field, $label, $mode, $default, $desc) {
if ($mode=='add' || $mode=='edit') {
$form->addElement('select', $field, $label, array(), array('id'=>$field));
if ($mode=='edit') $form->setDefaults(array($field=>$default));
Utils_ChainedSelectCommon::create($field, array('assicurato'),'modules/CRM/Pratiche/update_cf.php',null,$form->exportValue($field));
} else {
$form->addElement('static', $field, $label);
}
}
I've tried follow your Phonecall but doesn't work..
I'm very confused :S
thanks
anne