Skip to main content
Solved

Display Attribute Values from Stock Items to Report


Forum|alt.badge.img+2

I need to get some attribute values from the stock items form to a report (Modifying Sales Order Report SO641010.rpx). What are the tables to be joined in order to show the necessary value from the Attributes table to the report?

Best answer by Gabriel Michaud

A little-known fact is that the attributes are added as virtual fields to the related table (InventoryItem in your case) which means you can simply add it to the report or generic inquiry without having to add extra joins to CSAnswers. The attributes are named using the Attribute ID and suffixed wit _Attributes, for example COLOR_Attributes:

 

Note that SO641010 does not reference the InventoryItem table, so you will have to add it to the report by joining SOLine.InventoryID to InventoryItem.InventoryID.

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

10 replies

Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3409 replies
  • August 17, 2021

Hi @TharidhiP  To display the Stock Item attribute values, please join the below tables..

SOOrder (Order Type, OrderNbr) →  SOLine (Order Type, OrderNbr)

SOLine (InventoryID) →  Inventory Item ( InventoryID)

InventoryItem (NoteID) →  CSAnswers ( RefNoteID)

 

Sample Code for your reference → you can use the same in reports as well

PXSelectJoin<InventoryItem,
                                      InnerJoin<CSAnswers, On<InventoryItem.noteID, Equal<CSAnswers.refNoteID>>>,
                                      Where<InventoryItem.inventoryID, Equal<Required<InventoryItem.inventoryID>>,
                                      And<Where<CSAnswers.attributeID, Equal<BQLConstants.PRDTYPE>
                                      >>>>.Select(Base, objSOLine.InventoryID)

 

 


Forum|alt.badge.img+2
  • Author
  • Pro I
  • 104 replies
  • August 17, 2021

Hi @Naveen B thanks for replying, this is possible in the Acumatica Report Designer?


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3409 replies
  • August 17, 2021

Yes, this is possible with Acumatica report designer


Gabriel Michaud
Captain II
Forum|alt.badge.img+11

A little-known fact is that the attributes are added as virtual fields to the related table (InventoryItem in your case) which means you can simply add it to the report or generic inquiry without having to add extra joins to CSAnswers. The attributes are named using the Attribute ID and suffixed wit _Attributes, for example COLOR_Attributes:

 

Note that SO641010 does not reference the InventoryItem table, so you will have to add it to the report by joining SOLine.InventoryID to InventoryItem.InventoryID.


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3409 replies
  • August 17, 2021

Hi @Gabriel Michaud   Actually, I forgot  :( and thanks a lot for sharing this.

 

@TharidhiP  We can avoid the CSAnswer table join, directly you can get the attribute values from the InventoryItem table (Attribute name will be AttributeIDName_Attributes) in Acumatica Report designer.


Forum|alt.badge.img+2
  • Author
  • Pro I
  • 104 replies
  • August 18, 2021

Thank you for the replies, @Gabriel Michaud and @Naveen B!


BenjaminCrisman
Acumatica Employee
Forum|alt.badge.img+4
  • Acumatica Support Team
  • 711 replies
  • September 8, 2021

One common issue when looking for these attribute values is that if they have been recently added then they may not appear as an option to be able to select, which can be confusing.

To get around it make sure to refresh the schema of the report, this will ensure that the Attributes, however recently added, will be visible.

Open the build schema and on Tables tab > Load Schema > Refresh All:

 


Forum|alt.badge.img
  • Jr Varsity II
  • 24 replies
  • April 11, 2022

Hello All!

I’m trying to add Vendor_Lot# and MfgDate to a report. it is added to PO receipt as attributes in CSAnswer. however, cant pull them in schema.

 i tried to follow steps provided here, but i dont get to see attributes to add to GI or in report designer.

Thanks!

Arjan


BenjaminCrisman
Acumatica Employee
Forum|alt.badge.img+4
  • Acumatica Support Team
  • 711 replies
  • April 11, 2022

Hi @arjan ! You have added the right table and the red box consists of the AttributeID, IsRequired, and Value seen in the CSAnswers table.

Once you add the needed fields (likely just AttributeID and Value) to the report you will be able to see these.

Make sure to join the CSAnswers table in also but if you get stuck I would recommend to make a new posting as this one is already answered, if you still need assistance we’ll help you in the new post :).


Forum|alt.badge.img
  • Jr Varsity II
  • 24 replies
  • April 13, 2022

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