Search code examples
acumatica

Acumatica - Copy Paste functionality


On my screen, we have 3 level of master child relationship, with the default Copy Paste functionality of Acumatica ,Parent and first child is copied but the second child Data is not getting copied.

Is there any place/function to debug the default copy paste functionality, or write our own custom paste function on top of what Acumatica is providing with same Paste button?

Edit for Brain Comments -

I have not added any attribute on the View. First DAC of DATAview is perfectly OK with me, but it is not getting data for second view defined. Data View - As the Maint class is inheritade from PXRevisionableGraph -

  1. Document (Default from Base graph)

  2. public PXSelect< Detail, Where<Detail.CD, Equal<Current<Parent.CD>>, And<Detail.revisionNo, Equal<Current<Parent.revisionNo>>>>, OrderBy< Asc<Detail.lineNbr>>> details;

  3. public PXSelect< Detail2, Where<Detail2.revisionNo, Equal<Current<Parent.revisionNo>>, And<Detail2.formulaCD, Equal<Current<Parent.formulaCD>>>>, OrderBy< Asc<Detail2.lineNbr>>> detail2;

Issue - details view is copied but details2 view is not getting copied


Solution

  • Finally I got to the root cause of the issue,

    Copy paste works as expected for PXRevisionableGraph as it should, the issue was with the Attributes used with the DAC fields. IN my case we have used PXFromula attribute that was used to calculate the SUM of the Child rows. Once that is commented everything start working as expected. we added the events for calculating the SUM instead of PXFormula now.