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)

How to create View Details from a field in Form

(0) ShareShare
ReportReport
Posted on by 916

I would like to create View Details from a field in Dynamics AX 2012 Form for example when we right click on field on the form we have view details option when clicked that opens the details form of that item.

what step can i follow to do that ?

*This post is locked for comments

I have the same question (0)
  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    1) do two tables have relationship? (Two table means the one where you are standing and other where you want to go by right click)

    2) what is design pattern of your form(from where you want Right-Click View details)

  • Suggested answer
    Brandon Wiese Profile Picture
    17,788 on at

    This works generally wherever a Relation is present between the field and another table.  That Relation can be setup on either table.  The relationship can also be established from an EDT.  This is all done from the AOT.

  • ALAhmed Profile Picture
    916 on at

    Thanks for the quick reply,

    @Sohaib Cheema : I added a string field in this form OMOperatingUnit and this table OMOperatingUnit . Also in this table OMOperatingUnit i have this relationship(ExactlyOne ; ZeroMore) :  OMOperatingUnit.Field = DimensionFinancialTag.Value.

    So i want to go from the form OMOperatingUnit  to form DimensionValueDetails that contain value of financial dimension

  • Community Member Profile Picture
    on at

    I think that regards to a property of the EDT type, called reference table, and if the table has a formref, then you should be able to "view details".

  • ALAhmed Profile Picture
    916 on at

    When i click right on the field , i can see View details but isn't work , i can't to go to the form DimensionValueDetails.  the table OMOperatingUnit has a formref property OMOperatingUnit.

  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    if two tables have relationship it will be managed by itself.

    Here it seems that your two tables do not have relationship, so you can make use of JmupRef() method

  • ALAhmed Profile Picture
    916 on at

    Yes the two table (OMOperatingUnit  and DimensionFinancialTag) have this relationship :

    OMOperatingUnit.Field = DimensionFinancialTag.Value in OMOperatingUnit   table, so when i click right to the field i see the view details but it show this error : Unable to View details, no form exists for channel type

    So for i try somthing like that :

    public void jumpRef()

    {

      // super();

       DimensionFinancialTag name;

       Args            args;

       MenuFunction    mf;

       name = DimensionFinancialTag::find(name.RecId);

       if (!name)

       {

           return;

       }

       args = new Args();

       args.caller(element);

       args.record(name);

       mf = new MenuFunction(menuitemDisplayStr(DimensionValueDetails),MenuItemType::Display);

       mf.run(args);

    }

  • Husna Yusuf Profile Picture
    1,094 on at

    Ok..how about..i want to makes a 'View Detail' option based on View's Field?

    i has success on makes 'View detail' based on table. but when i try to make 'view detail' based on view..the Option 'View Detail' is not appear.

    note: the EDT is Already have Table references

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    You could still override jumpRef() method to make a custom link between your bound control and the form to be opened.

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