Hi all,
I'm trying to enable global search for a custom DAC (MyCustomDAC) using [PXSearchable] and [PXNote] via DAC extension.
The DAC appears in Rebuild Full-Text Entity Index, and entries are created in SMSearchIndex. But when I search by OrderNbr (e.g. CH-10000045), no results appear under Transactions or Profiles.
What I’ve Done
1. Added [PXSearchable] and [PXNote] via DAC Extension:
#region NoteID
[PXMergeAttributes(Method = MergeMethod.Replace)]
[PXSearchable(
NVSearchCategory.ChangeOrder, // Custom category (32768)
"Change Orders {0}: {1} - {2}",
new Type[] {
typeof(MyCustomDAC.orderType),
typeof(MyCustomDAC.orderNbr),
typeof(MyCustomDAC.description)
},
new Type[] {
typeof(Customer.acctName),
typeof(MyCustomDAC.description)
},
NumberFields = new Type[] {
typeof(MyCustomDAC.orderNbr)
},
Line1Format = "{0} - {1}",
Line1Fields = new Type[] {
typeof(MyCustomDAC.status),
typeof(MyCustomDAC.orderNbr)
},
Line2Format = "{0} - {1}",
Line2Fields = new Type[] {
typeof(BAccount.acctName),
typeof(MyCustomDAC.orderNbr)
},
MatchWithJoin = typeof(InnerJoin<BAccount, On<BAccount.bAccountID, Equal<MyCustomDAC.customerID>>>),
SelectForFastIndexing = typeof(
Select2<MyCustomDAC,
InnerJoin<BAccount, On<BAccount.bAccountID, Equal<MyCustomDAC.customerID>>>>)
)]
[PXNote(PopupTextEnabled = true, ShowInReferenceSelector = true)]
public Guid? NoteID { get; set; }
#endregion

