web
You’re offline. This is a read only version of the page.
close
Skip to main content
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)
  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at
    RE: How to create View Details from a field in Dynamics AX 2012 Form

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

  • Husna Yusuf Profile Picture
    1,094 on at
    RE: How to create View Details from a field in Dynamics AX 2012 Form

    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

  • ALAhmed Profile Picture
    916 on at
    RE: How to create View Details from a field in Dynamics AX 2012 Form

    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);

    }

  • Sohaib Cheema Profile Picture
    48,522 User Group Leader on at
    RE: How to create View Details from a field in Dynamics AX 2012 Form

    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
    RE: How to create View Details from a field in Dynamics AX 2012 Form

    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.

  • Community Member Profile Picture
    on at
    RE: How to create View Details from a field in Dynamics AX 2012 Form

    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
    RE: How to create View Details from a field in Dynamics AX 2012 Form

    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

  • Suggested answer
    Brandon Wiese Profile Picture
    17,788 on at
    RE: How to create View Details from a field in Dynamics AX 2012 Form

    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.

  • Sohaib Cheema Profile Picture
    48,522 User Group Leader on at
    RE: How to create View Details from a field in Dynamics AX 2012 Form

    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)

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

#1
Guy Terry Profile Picture

Guy Terry 2 Moderator

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans