web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

CustCollectionLetter help ! x++

(0) ShareShare
ReportReport
Posted on by

Hello guys im having an issue.

Using the Class: CustCollectionLetterCreate or the Form : CustCollectionLetterNote you can register a Collection Letter from a customer. By doing so the form or class changes the field CustTable.Blocked(if in corresponding journal from CustCollectionLetterJour has the field Block ticked)to one of 5 posibilities in a BaseEnum. 

if its an invoice it changes CustTable.Blocked to Invoice

if its a payment it changes to Payment.

i cant find the exact place where this is done. I need to add there some custom fields i made in the Enum but i can not find the place where this change is made.f

Please help me out im desperate 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Well you can approach this in two different ways. The first would be do check the 'used by' cross references of the field and filter on 'write'. Then set breakpoints on all the results and execute the logic. The debugger should stop when the value is set.

    The second would be to set a breakpoint in the update method of the table, execute the logic and then use the call stack to set a breakpoint in a 'higher' method before the change happened. Then execute the logic again, put the field in the watch window and go through the code step by step till you see the field change. If the field change happens on a method call, set a new breakpoint there, execute the logic again and step into the method and so on.

  • Community Member Profile Picture
    on at

    something pretty strange happens. i change something in the Modified method from CusTTable, this method is like an event that its trigger every time a field is modified.

    if i change CustTable.Blocked from the clients form this event is triggered without issues.but if i use the logic from Collection Letters, the field is modified without triggering this event.

    im gonna keep trying. anyone another idea or helpful info?

  • Community Member Profile Picture
    on at

    Modified() methods are only triggered from the user interface. When you update a field by code, no modifiedField() is executed - you would have to do that manually (table.modiffiedField(...)) or put your logic somehwere else.

  • Community Member Profile Picture
    on at

    im gonna try doing it from the update method inside custtable and report back :)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans