Solved

Object reference not set to an instance of an object

  • 22 June 2023
  • 4 replies
  • 266 views

Userlevel 4
Badge

I added a new field of type PXNoteAttribute to the DAC to enable file attachment.
i.e 

 #region NoteID
public abstract class noteID : PX.Data.IBqlField { }
protected Guid? _NoteID;
[PXNote()]
public virtual Guid? NoteID { get; set; }
#endregion

On testing I got the following error
 

what could be the issue?
 

Kindly assist.
Thank you all.

icon

Best answer by Naveen Boga 22 June 2023, 08:37

View original

4 replies

Userlevel 7
Badge +17

..

Userlevel 7
Badge +17

Hi @development93  I just tried this and I can able to upload the files for the Bidding GRID.

 

Here are the steps.

  1. Extend the RQBiddingVendor and add the NoteID field 

 

  1. Extend the RQBiddingVendor  DAC and add the NoteID field.
  public class RQBiddingVendorExt : PXCacheExtension<RQBiddingVendor>
{
#region Noteid
[PXNote()]
public virtual Guid? NoteID { get; set; }
public abstract class noteID : PX.Data.BQL.BqlGuid.Field<noteID> { }
#endregion
}

 

  1. And add the FileIndicator = true for the Bidding GRID
  1. After performing the above steps, NOTES field will be enabled and able to upload the files.

 

 

Userlevel 4
Badge

Thanks @Naveen Boga 
works perfectly.

Userlevel 7
Badge +17

@development93  Awesome !! Thanks for sharing the udpate!

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