Announcements
No record found.
Hi Experts,
I need to give the validation on the sales line when users enter the sales price less than the average cost price. The message shows them " the sales price is less then Item price."
Thanks in advance.
Hi,
Would this standard feature do the job?
organicax.com/.../
Best regards,
Ludwig
Hey Dr.Ludwig, I really appreciate your response and your suggestion . I already use this standard feature but my client need that, If the user gave the less cost then the item average cost price in sales price. Then user cannot proceed for further steps. That's why I need to put validation in X++ as I mention in my question.
Hi Deepaknonu,
can you add the validation code in the table salesline's validateFieldValue method?
Hi DEEPAKNONU,
You could try to use form datasource field event "onValidating" to validate the salesprice.
Go to SalesTable(form)->DS->SalesLine->salePrice->events.
Hey Mr. Spike, thanks for your valuable suggestion I solved my issue with put the validation on validate write method on sales line table.
Hey Mr. Will, thanks for your valuable solution but I'm using 2012 R3 version of AX and also I solved my issue thanks.
Hey Mr. DeepPanknonu
How did you solve it as i have similar requirement.
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.
Congratulations to our 2026 Super Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 613
André Arnaud de Cal... 455 Super User 2026 Season 1
Syed Haris Shah 292 Super User 2026 Season 1