Skip to main content
Solved

Sorting by a Date Attribute in Report Designer


wfilipiak67
Captain II
Forum|alt.badge.img+3

Hi, 
We created an attribute as a DateTime control type. 
This is attached as a user defined field to the PO Receipt. 

I am trying to print a report that is sorted by Item & then by the PO Receipt attribute. This is not working. 
If I sort by the PO Receipt Date, the sort does work. 

I saw an AUG forum post about using the CSAnswers table.but the data is not in that table. 
Is there a different table we should be linking to? 
Can a DateTime attribute be used to do the sorting? 
 

Best answer by wfilipiak67

@Chris Hackett , @darylbowman , @lauraj46 , We decided to go with a custom field & that worked.

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

darylbowman
Captain II
Forum|alt.badge.img+13

UDF values would be stored in the POReceiptKvExt table


wfilipiak67
Captain II
Forum|alt.badge.img+3

@darylbowman ,
Thank you. 
Do you know how I can access that table? It does not show in the GI screen, the Report Designer or the DAC Schema browser. 
 


darylbowman
Captain II
Forum|alt.badge.img+13

I’m not sure the data is made to be accessed from that table. That’s just where it’s stored.

Just for kicks, could you try something like this?

 


wfilipiak67
Captain II
Forum|alt.badge.img+3

@darylbowman , When I do that , the field changes to DELETED when I leave the field.

To clarify, the field is an attribute attached to the PO Receipt header. 
The field show as POReceipt.AttributePort  It is defined as a DateTime Control. 
 

 


lauraj46
Captain II
Forum|alt.badge.img+8
  • Captain II
  • August 9, 2024

Hi @wfilipiak67 ,

Attributes are stored in CSAnswers.  Create a left join to this table from the NoteID of the POReceipt to the RefNoteID field in CSAnswers.  Also include the CSAnswers.AttributeID in the left join. 

POReceipt.NoteID = CSAnswer.RefNoteID

CSAnswers.AttributeID = ‘ReceiptDate’ (replace with the name of your attribute)

You should be able to sort on the field CSAnswers.Value

Hope this helps!

Laura


darylbowman
Captain II
Forum|alt.badge.img+13
lauraj46 wrote:

Attributes are stored in CSAnswers….

wfilipiak67 wrote:

...This is attached as a user defined field to the PO Receipt...

I saw an AUG forum post about using the CSAnswers table.but the data is not in that table. 

Attributes attached as UDFs are actually not stored in CSAnswers.


darylbowman
Captain II
Forum|alt.badge.img+13

This post may shed some light on the DELETED bit. I’m not positive the date conversion would even solve your issue, and I’m guessing you don’t want to group by that value.

You may be out of luck.


lauraj46
Captain II
Forum|alt.badge.img+8
  • Captain II
  • August 9, 2024

Thanks @darylbowman , my bad.


wfilipiak67
Captain II
Forum|alt.badge.img+3

@darylbowman , I am thinking that the attribute is not the way to go. 
I am going to propose a custom field that we can use. 

Thank you for the assistance.


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • September 9, 2024

Hi @wfilipiak67 were you able to find a solution? Thank you!


wfilipiak67
Captain II
Forum|alt.badge.img+3

@Chris Hackett , @darylbowman , @lauraj46 , We decided to go with a custom field & that worked.


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