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 :
Finance | Project Operations, Human Resources, ...
Unanswered

Show Sales Order Charge Codes on my Custom Form

(0) ShareShare
ReportReport
Posted on by 117

Hi all,

         I have a custom form named MassMaintenanceSalesOrder. This form is bound to a datasource called MassMaintenanceTable. MassMaintenanceSalesOrder form has a grid with a lot of fields in it from Sales Table and Sales Line like SalesId, ItemId, ConfigId and so on. 

We already know that in MarkupTrans table, we have a field called MarkupCode which includes all the code charges. I have added some new fields in my custom form datasource table which will hold the value of new markupcodes recently added through Charges Codes form screen.

For example, I have added a new charge code say ChargeValue. I have selected this new charge code for my customer in Auto Charges screen. Now, I make a new sales order. This newly selected charge code should be shown on ChargeCodes screen on sales order header under Sell tab. Sell -> ChargeCodes. 

My task is, I want to assign and show the value of this sales order charge code on my custom table grid. I have added a new field with the same name ChargeValue on my custom form datasource table. I want to get the value of sales order charge codes for this particular charge code only and show it on my custom form in right field. Please help, how can I do that?

I want to know the place on my custom form where I can write code for that. 

and a possible code snippet which will do this job. Any help please.  

I have the same question (0)
  • 00030000036294D5 Profile Picture
    117 on at

    Somebody please help I need to get sales order charge codes and assign their values to my custom form datasource table and I need to know at which location on my form should I write that select statement. Should I write it on form Init or datasource write() or where.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 551 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans