【发布时间】:2015-07-07 10:59:40
【问题描述】:
我想显示每个代理机构的表单。为了实现这一点,我想在前端插件上选择一个代理(带有一个 flexform),然后,当我选择一个时,flexform 重新加载<onChange>reload</onChange>,所以我得到过滤的记录。
问题
如何在另一个选择块中访问 flexform-values?我的总体想法是使用<foreign_table_where></foreign_table_where> 部分来限制这一点。但我无法访问以前的设置值(不像我在 <displayCond></displayCond> 块中使用 FIELD:mySetting 执行此操作)。我的表单部分如下所示:
表格
<config>
<type>select</type>
<foreign_table>foreignTableForm</foreign_table>
<foreign_table_where>HOW TO DO?</foreign_table_where>
<minitems>0</minitems>
<maxitems>10</maxitems>
<multiple>0</multiple>
<size>5</size>
<itemListStyle>Width:250px</itemListStyle>
</config>
代理机构
<config>
<type>select</type>
<foreign_table>foreignTableAgency</foreign_table>
<minitems>0</minitems>
<maxitems>10</maxitems>
<multiple>0</multiple>
<size>5</size>
<itemListStyle>Width:250px</itemListStyle>
</config>
目标
- 从代理外部表中获取值(作品)
- 当我点击该特定机构时,flexform 会重新加载(工作)
- 仅列出那些外键等于重新加载后先前设置的代理机构 uid 的表单(如何实现?)
感谢您的帮助!
【问题讨论】: