Skip to main content
Solved

Weird Global Search Issue

  • October 18, 2022
  • 2 replies
  • 107 views

Forum|alt.badge.img+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
  }        

 

 

Best answer by Giri K

@scottstanaland12 
 

Can you check by adding the [PXFieldDescription] attribute to the WorkOrderNbr field in the DAC

 

 

 

            

View original
Did this topic help you find an answer to your question?

2 replies

Forum|alt.badge.img

Hi @scottstanaland12 , did you find a solution for this? I’m having a similar issue


Forum|alt.badge.img+1
  • Pro I
  • 59 replies
  • Answer
  • May 17, 2024

@scottstanaland12 
 

Can you check by adding the [PXFieldDescription] attribute to the WorkOrderNbr field in the DAC

 

 

 

            


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings