Question

Weird Global Search Issue

  • 18 October 2022
  • 0 replies
  • 42 views

Userlevel 2
Badge +1

I’m trying to add a new DAC to the global search.  The dac is part of an an ISV product.

I have customized the DAC with the following code, which seems to partially work, but it’s not displaying properly in the search results. 

After I run the rebuild Full Text process for this entity, I can see the data appears to look correct in the SearchIndex table, but it shows blank data in the Acumatica search results. (screenshots below)

Any Ideas?  Am I missing something?

Thanks

Scott

  public class IGMP_DAC_IGMPINDispatch_ExistingColumn : PXCacheExtension<IGMPINDispatch>
{
#region NoteID
[PXMergeAttributes(Method = MergeMethod.Replace)]
[PXNote(
DescriptionField = typeof(IGMPINDispatch.workOrderNbr),
Selector = typeof(IGMPINDispatch.workOrderNbr),
ShowInReferenceSelector = true,
BqlField = typeof(IGMPINDispatch.noteID)
)]
[PXSearchable(PX.Objects.SM.SearchCategory.All, "WO {0}: {1} - {2}", new Type[] {typeof(IGMPINDispatch.workOrderType), typeof(IGMPINDispatch.workOrderNbr), typeof(IGMPINDispatch.dispatchNbr)},
new Type[] {typeof(IGMPINDispatch.workOrderType), typeof(IGMPINDispatch.workOrderNbr), typeof(IGMPINDispatch.dispatchNbr), typeof(IGMPINDispatch.dispatchDescr)},
//NumberFields = new Type[] { typeof(IGMPINDispatch.workOrderNbr), typeof(IGMPINDispatch.dispatchNbr)},
Line1Format = "{0}{1}-{2}", Line1Fields = new Type[] {typeof(IGMPINDispatch.workOrderType), typeof(IGMPINDispatch.workOrderNbr), typeof(IGMPINDispatch.dispatchNbr)},
Line2Format = "{0}", Line2Fields = new Type[] {typeof(IGMPINDispatch.dispatchDescr)}

)]
public virtual Guid? NoteID { get; set; }
#endregion
}

 

 


0 replies

Be the first to reply!

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved