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)

How to skip field in agrid

(0) ShareShare
ReportReport
Posted on by

Hi all,

doubt1.PNG

In that above grid if 'Accumulated' field value is 0.00 means 'Next' field cannot include the 'OPr.No' value in that field. And again check the next line if 'Accumulated' field have other than 0.00 means 'Next' field include the 'Opr.No' value in 'Next' field.

How to achieve this.

Anyone suggest.

Thanks in advance.

*This post is locked for comments

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

    Hi anyone suggest please.

  • Mariano Gracia Profile Picture
    on at

    I suggest you to override the validateWrite method and do something like:

    if (Accumulated == 0 && Next != "")
    {
        ret = checkfailed("Message error");
    }
    else if (Accumulated != 0 && Next == "")
    {
        ret = checkfailed("Message error");
    }

    This will prevent the record to be saved unless what you're looking for is accomplished

  • Community Member Profile Picture
    on at

    Hi

    If accumulated is 0 means 'Next' field will get next line OprNo value.If next line Accumulated is also 0 means again choose next line OprNo value.I.e if accumulated is 0 that line will exclude.How will achieve this.

    Thanks.

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    In that case when you insert the following operation line, then in your table override the insert() method, and after the super() you could just find the previous record, select it for update, and put in the current lines' OprNo and update() it.

    Then you should also take care of refreshing the form datasource, to show the changes for the previous line, which you could do in the write() method on the form datasource.

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
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans