在数据库中,我看不到BAccount / Customer表与Notification / NotificationSource / NotificationRecipient表之间的直接关系。我试图找到这种我认为在财务中建立的关系 - >应收帐款 - >客户 - >邮件设置 - >邮件 - >收件人。我试图将所有在特定邮件ID中处于活动状态的客户联系人拉到要为用户显示的页面。
答案 0 :(得分:1)
从BAccount到联系DAC:
[PXParent(typeof(Select<BAccount,
Where<BAccount.bAccountID, Equal<Current<Contact.bAccountID>>,
And<BAccount.type, NotEqual<BAccountType.combinedType>>>>))]
从Contact DAC到ContactNotification DAC( NotificationRecipient.ContactID ):
[PXParent(typeof(Select<Contact,
Where<Contact.contactID, Equal<Current<ContactNotification.contactID>>>>))]
ContactNotification DAC中的投影使用NotificationSource.sourceID Key来检索NotificationSource:
[PXProjection(typeof(Select2<NotificationRecipient,
InnerJoin<NotificationSource,
On<NotificationSource.sourceID, Equal<NotificationRecipient.sourceID>>>>),
Persistent = true)]