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 :
Microsoft Dynamics AX (Archived)

Modifying Forms & shortcut menu

(0) ShareShare
ReportReport
Posted on by

Hi everyone

 

I have the following issue. I’m modifying the Sales Detail form by adding two columns. The first column I’m adding adds the Customer description. The second column I am adding adds the Invoice number that appears on the invoice.

Comparison-shortcut-menu-mod.jpg

The first field comes from SalesTable.SalesName. This modification works fine. The second field I took from CustInvoiceJour.InvoiceId. In order to get this to work I defined a OuterJoin between the SalesTable and the CustInvoiceJour table. The result works fine in the form except for two things:

  • The “Filter by Field” and “Filter by Selection” options are not available in the shortcut menu. I assume it has to do with the join, but I am not sure why this would be a problem.
  • As I post the invoices, the invoice number does not appear in the form until I force a refresh (F5) or close and re-open the form.
  • Which property controls the column names? I’d like to change “Invoice” to “Invoice Nr” but I can’t find the right property.

 

Of these two the first one is the most urgent one. I really would like to understand:

  1. Why the shortcut menu does not list the options
  2. How can I ensure the options become available?
  3. How can I ensure that the form auto refreshes after the sales order has been posted and the invoice number has been created?

Unfortunately, I am not yet very proficient in writing new classes or methods so I need some fairly detailed instructions if that is what is required to make this work. Thank you for your time and a Happy New Year!

 

Yours


Abaw

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Ivan (Vanya) Kashperuk Profile Picture
    on at

    1. Filtering is not supported on outer joined tables in AX 2009. Thus the missing context menu items. (It is supported in AX 2012)

    There's some sort of a workaround described here, if you are interested to investigate:

    stackoverflow.com/.../filtering-on-linked-table-in-axapta-dynamics-ax

    2. You need to refresh the data displayed. You can do that programmatically, but it looks like the general trend from Microsoft is to avoid doing that, relying on the user refreshing his view from time to time (using F5, for example)

    3. I assume that when you say column names, you mean the text displayed to the user? That is controlled by the "Label" property on the control. and by default the label is pulled from the table field and if not specified there from the EDT on that field.

  • Verified answer
    Community Member Profile Picture
    on at

    For outer join datasource filter option in shortcut menu will not be available

    For point 3 related to refresh, as it is two view instance of same data so refresh will be required, auto refresh will not be possible.

  • André Arnaud de Calavon Profile Picture
    301,035 Super User 2025 Season 2 on at

    Nitesh,

    The answer from Ivan was clear to me.

    You are confusing me now related to point 3. As Ivan mentioned you can achieve an auto refresh with a customization. I agree with Ivan on this.

    What do you mean with a "two view instance of same data"? Please explain.

  • Verified answer
    Martin Dráb Profile Picture
    237,892 Most Valuable Professional on at

    On a side note, one sales order may have several (partial) invoices. You should be aware of that and decide what should happen if more invoices exist. You might want to choose a single invoice (first / last / etc.) or you can give up displaying a single ID and add a control (e.g. a grid) showing all invoices. Your current solution will show the same order several times if it has multiple invoices.

  • Community Member Profile Picture
    on at

    Hi Ivan

    Thank you for your explanations. I just wanted to let you know what the plan now is.

    As we're going to upgrade in the coming year, I'm not inclined to invest too much work in getting this to the best-it-can-be state. The user can work around this by filtering the customer, which leaves them with a list of invoices that only belong to that customer. If they then sort on invoice, it should be almost as quick as being able to filter directly.

    The same applies for having to press F5. Not doing the programme means that this change gets released in days, instead of weeks due to testing etc.

    Thank you for the tips on the properties too.

    Yours

    Arie

  • Community Member Profile Picture
    on at

    Hi Martin

    Thank you for the tip. I had considered it and in my case seeing the sales order multiple times without having to open a separate grid is exactly what the users want.

    But you are of course entirely correct to point out that this should not be taken for granted. Others who read this thread may want to opt for a different implementation solution than my users required.

    Yours

    Arie

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans