0

我有一个基于表的窗口选项卡,该表具有对AD_Uservia的外键引用ad_user_id。在 Tables and Columns 中,此列被赋予一个'Search' Reference withAD_User作为Reference Key

当我打开带有ad_user_id字段的选项卡时,搜索图标(绿色箭头)显示在用户 ID 的字段中,但是当执行查找时,只有 GardenAdmin 登录用户(创建记录的用户)可供选择。为 GardenWorld 定义了六个用户,所有这些用户都处于活动状态。

还需要做什么才能让所有可用用户都出现在选择列表中?

4

1 回答 1

0

You can try setting -1 as the default for that new AD_User_ID field.

In iDempiere fields take defaults from different sources:

  • the first is the default defined in the column
  • if not set then it takes a user preference
  • if not set then it takes a global preference
    • this must be the case with your field, any field AD_User_ID will take the default defined in the context with @#AD_User_ID@. The same happens with AD_Role_ID and other fields that have a preference.
  • if global preference is not set then there are a lot of records marked as Default, and those are taken also as a global default

Note the order to get the defaults can be differently managed via the System Configurator key ZK_SEQ_DEFAULT_VALUE_PANEL

于 2020-11-06T11:24:39.503 回答