Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

how to add a check box in form

(0) ShareShare
ReportReport
Posted on by 1,737

i am adding the check box to calculating the net amount in the purchase order line level.

my requirement is 

case1: i want to add the total excise amount to net amount before calculating the discount 

case2: i want to add the total excise amount after calculating the discount in the Purchase order line details.

In this requirement i am adding one check box in the form before the discount amount.

i want to write a code to check and un check the checkbox in the form.

*This post is locked for comments

  • srinivas pamidi Profile Picture
    srinivas pamidi 1,737 on at
    RE: how to add a check box in form

    hai ali,

    i am understand the writing the logic is it is check bos it is ok,

    but i don't know how to add the excise amount to net amount,

    suppose excise has different types of tax codes,

    how to add these different types of tax codes and how to add the all tax codes in to netAmount.

  • srinivas pamidi Profile Picture
    srinivas pamidi 1,737 on at
    RE: how to add a check box in form

    hai ali,

    noyesid is edt not base enum,

    can i take edt here.

  • Mohammad Raziq Ali Profile Picture
    Mohammad Raziq Ali 2,457 on at
    RE: how to add a check box in form

    Hi srini,

    Here we need to add your code as following

    case fieldnum(purchline, YourNewAddedField):  if(it is checked){ code.......}

                                                                                 else{ code}

    Thanks,

    Raziq

    ..

     

  • Mohammad Raziq Ali Profile Picture
    Mohammad Raziq Ali 2,457 on at
    RE: how to add a check box in form

    Hi Srini,

    You just drag NoYesId from BaseEnums to your table field node.

    rename the field name as per your requirement.

    follow best practise as well.

    Thanks,

    Raziq

  • srinivas pamidi Profile Picture
    srinivas pamidi 1,737 on at
    RE: how to add a check box in form

    hai ali,

    i have one more question is how to add the checkbox in table.

  • srinivas pamidi Profile Picture
    srinivas pamidi 1,737 on at
    RE: how to add a check box in form

    hai ali,

    what is the code to add the excise tax to the net amount,

    and how to uncheck and check the checkbox accordingly.

  • Suggested answer
    Mohammad Raziq Ali Profile Picture
    Mohammad Raziq Ali 2,457 on at
    RE: how to add a check box in form

    Hi Srini,

    This checkbox field must be added in purchline table and must write code in modifiedfield method which update excise tax to net amount as per check/uncheck. So, go with it, it will definitely work.

    If it works, please verify the post.

    Thanks,

    Raziq

  • srinivas pamidi Profile Picture
    srinivas pamidi 1,737 on at
    RE: how to add a check box in form

    hai ali,

    actually my company have some requirement with the purchase order some vendors are given the discount include excise tax with net amount and some vendors given the discount without excise tax, i want to add one check box in the purchase order line level and user click the check box the excise tax amount is added to the net amount and after they are given the discounts

    if you know how to add this check box and how to add the perform the above logic.

    Please help me.

  • Mohammad Raziq Ali Profile Picture
    Mohammad Raziq Ali 2,457 on at
    RE: how to add a check box in form

    Hi srini,

    How you want this check box to behave. you didn't elaborate on this.

    could you please tell something more on this?

    Thanks,

    Raziq

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,820 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,514 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans