搜索框使用记录的注释 ID 字段的值作为在记录中查找记录的键。SearchIndex
哪里的EntityType
被存储以供记录。
来自EntityType
它正在读取的值PXPrimaryGraphAttribute
并重定向到指定的图表。
要更改重定向的页面,您需要更改PXPrimaryGraphAttribute
该 DAC 的。
您可以尝试添加PXPrimaryGraphAttribute
添加到您的图表以表明它是指定 DAC 的主图表。根据文档,它应该覆盖由PXPrimaryGraphAttribute
应用于Customer
DAC.
的情况下Customer
DAC应用的属性如下:
[CRCacheIndependentPrimaryGraphList(new Type[]
{
typeof(BusinessAccountMaint),
typeof(CustomerMaint),
typeof(CustomerMaint),
typeof(CustomerMaint),
typeof(BusinessAccountMaint)
}, new Type[]
{
typeof(Select<BAccount, Where<BAccount.bAccountID, Equal<Current<BAccount.bAccountID>>, And<Current<BAccount.viewInCrm>, Equal<True>>>>),
typeof(Select<Customer, Where<Customer.bAccountID, Equal<Current<BAccount.bAccountID>>, Or<Customer.bAccountID, Equal<Current<BAccountR.bAccountID>>>>>),
typeof(Select<Customer, Where<Customer.acctCD, Equal<Current<BAccount.acctCD>>, Or<Customer.acctCD, Equal<Current<BAccountR.acctCD>>>>>),
typeof(Where<BAccountR.bAccountID, Less<Zero>, And<BAccountR.type, Equal<BAccountType.customerType>>>),
typeof(Select<BAccount, Where<BAccount.bAccountID, Equal<Current<BAccount.bAccountID>>, Or<Current<BAccount.bAccountID>, Less<Zero>>>>)
})]
正如您所看到的,根据指定的条件,DAC 可以分配给BusinessAccountMaint
or CustomerMaint
并且您需要根据需要更改条件和图表。
例如如下:
[CRCacheIndependentPrimaryGraphList(new Type[]
{
typeof(BusinessAccountMaint),
typeof(CustomScreen),
typeof(CustomScreen),
typeof(CustomScreen),
typeof(BusinessAccountMaint)
}, new Type[]
{
typeof(Select<BAccount, Where<BAccount.bAccountID, Equal<Current<BAccount.bAccountID>>, And<Current<BAccount.viewInCrm>, Equal<True>>>>),
typeof(Select<Customer, Where<Customer.bAccountID, Equal<Current<BAccount.bAccountID>>, Or<Customer.bAccountID, Equal<Current<BAccountR.bAccountID>>>>>),
typeof(Select<Customer, Where<Customer.acctCD, Equal<Current<BAccount.acctCD>>, Or<Customer.acctCD, Equal<Current<BAccountR.acctCD>>>>>),
typeof(Where<BAccountR.bAccountID, Less<Zero>, And<BAccountR.type, Equal<BAccountType.customerType>>>),
typeof(Select<BAccount, Where<BAccount.bAccountID, Equal<Current<BAccount.bAccountID>>, Or<Current<BAccount.bAccountID>, Less<Zero>>>>)
})]
public class CustomScreen : BusinessAccountGraphBase<Customer, Customer, Where<BAccount.type, Equal<BAccountType.customerType>,
Or<BAccount.type, Equal<BAccountType.combinedType>>>>
{
}