Skip to main content
Solved

I think I found a bug in Acumatica in EPTaskEnq graph

  • February 16, 2022
  • 4 replies
  • 157 views

Joe Schmucker
Captain II
Forum|alt.badge.img+2

I am overriding the PXSelect in the EPTaskEnq graph.  After beating my head on the wall for an hour thinking my overridden select statement was causing an error, I simply copy/pasted the ORIGINAL select statement into my code. this is the definition of the Tasks view on EP404000.

        [PXFilterable]
        [PXViewDetailsButton(typeof(CRActivity), OnClosingPopup = PXSpecialButtonType.Refresh)]
        public PXSelectReadonly2<CRActivity, 
            LeftJoin<EPView,
                On<EPView.noteID, Equal<CRActivity.noteID>,
                And<EPView.contactID, Equal<Current<AccessInfo.contactID>>>>,
            LeftJoin<CRReminder,
                On<CRReminder.refNoteID, Equal<CRActivity.noteID>>>>,
                Where<CRActivity.classID, Equal<CRActivityClass.task>, And<
                    Where<CRActivity.workgroupID, IsWorkgroupOrSubgroupOfContact<CurrentValue<AccessInfo.contactID>>,
                        Or2<Where<CRActivity.workgroupID, IsNull, And<CRActivity.ownerID, IsSubordinateOfContact<CurrentValue<AccessInfo.contactID>>>>,
                        Or<CRActivity.ownerID, Equal<Current<AccessInfo.contactID>>,
                        Or<CRActivity.createdByID, Equal<Current<AccessInfo.contactID>>>>>>>>, 
            OrderBy<Asc<CRActivity.endDate,
            Desc<CRActivity.priority,
            Asc<CRActivity.startDate>>>>>
            Tasks;

 

This graph extension, causes an error and I think I know why.

In the Where clause, you see this particular line:

Or<CRActivity.createdByID, Equal<Current<AccessInfo.contactID>

createdByID is type GUID and contactID is type int

My confusion is that if there is an error in the code repository, does that mean that the code repository is incorrect BUT the actual code Acumatica is using is correct?  Is the code repository just a “copy” of code that we can refer to???  

I don’t want to report any bugs to Acumatica unless it is really a bug.  Also, what is the correct value to fix the bad line?  Should I report this as a bug and ask for the real definition of the View if this is indeed an error?

 

 

 

 

Best answer by markusray17

 

Not sure what version you are on, but 21.110.0032 shows AccessInfo.userID which is a GUID.

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

4 replies

jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • 701 replies
  • February 16, 2022

Hi @joe21 

Can you replace it with UserID and try once?

 

Or<CRActivity.createdByID, Equal<Current<AccessInfo.userID>


Forum|alt.badge.img+5
  • Jr Varsity II
  • 237 replies
  • Answer
  • February 16, 2022

 

Not sure what version you are on, but 21.110.0032 shows AccessInfo.userID which is a GUID.


Joe Schmucker
Captain II
Forum|alt.badge.img+2
  • Author
  • Captain II
  • 455 replies
  • February 16, 2022

Hi @markusray17, that change does work.  Thank you for the tip.

Should I submit a ticket with Acumatica about this or is this just something that happens and we just “fix and ignore?”   I’m new to this so I don’t know if this is no big deal or something that should be reported.

Thanks so much for the quick assist.


Forum|alt.badge.img+5
  • Jr Varsity II
  • 237 replies
  • February 16, 2022

You can submit a ticket but personally I wouldn’t bother. The code that ships with Acumatica is a subset of the actual source code and presumably they maintain it separately from the actual source code. They likely just didn’t update the EPTaskEnq graph in the shipped source code. 


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