SugarCRM 中的自动填充字段 [英] Autofill Field in SugarCRM
问题描述
在报价模块 (SugarCRM Pro) 中,我创建了一个字段区域(下拉菜单).当我们在报价名称中选择计费帐户名称时,地址会自动填写.我希望该区域字段会自动填充,因为我在帐户模块中创建了相同的区域.我希望它会在获取所有地址时自动从帐户模块中获取区域.
In Quotes module (SugarCRM Pro) i made one field region (drop down). When we select billing account name in quote name then address automatically fill up . I want that region field will automatically fill up as i have made same region in account module . I want it will automatically fetch the region from the account module as it fetch all the address.
推荐答案
在该模块的 editviewdefs 中,在字段数组元素上,您需要添加如下内容:
in your editviewdefs for that module, on the field array element, you need to add something like:
'displayParams' => array('field_to_name_array' => array('FIELDFROMACCOUNTS' => 'FIELDTOPOPULATE', 'FIELDFROMACCOUNTS2' => 'FIELDTOPOPULATE2'),),
'displayParams' => array( 'field_to_name_array' => array( 'FIELDFROMACCOUNTS' => 'FIELDTOPOPULATE', 'FIELDFROMACCOUNTS2' => 'FIELDTOPOPULATE2'),),
用您的字段替换所有大写单词,您应该准备好了.请记住,相关字段有一个用于 ID 的隐藏字段,并确保您正确填充它.
Replace the all caps words with your fields and you should be ready to go. Keep in mind that relate fields have a hidden field that is used for the ids and make sure that you are populating it properly.
干杯.
这篇关于SugarCRM 中的自动填充字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!