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 :
Small and medium business | Business Central, N...
Answered

how we can multiple two fields !!

(0) ShareShare
ReportReport
Posted on by 35

I have one field in item table field x

and i need to add that field in salesline and multiply with quantity

i have added ttriger on validate on field x on saleline but iam getting zero. any suggestion

Rec.x := rec.Quantity * itemL.x
I have the same question (0)
  • Suggested answer
    Robyn2018 Profile Picture
    Most Valuable Professional on at

    Hi,

    you must put in onvalidate of salesline.quantity field:

    OnValidate

    var

     xItem : record item;

     if type=type::item then begin

         xitem.get("no.");

         x := xitem.fieldx * quantity;

    begin

    end;

    Don't forget to help the community by verifying the answer or at least like the suggestion if it did help in any way. It will let others know that the topic has verified answer and was beneficial to you.

    Roberto Corella

    Business Central developer

    blog: https://blog.msdyn365bc.es

    youtube channel: www.youtube.com/.../UCeIS0DjQXp4R-aWY20PSVyg

    Linkedin: www.linkedin.com/.../

    Twitter: https://twitter.com/rccorella

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans