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

Announcements

News and Announcements icon
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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 21

#2
dekion Profile Picture

dekion 4

#2
Virginia99 Profile Picture

Virginia99 4

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans