Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Suggested answer

Doubleclick on grid to open different forms in Listpage ax 2012

Posted on by 40

Hi All,

I have one requirement on list page , in list i have enum filed based on the enum form should open by double click.

For example in my listpage i have Enum fileds on grid and enum contains customer and vendor.

in First record i have Enumfield as Customer when i double click it should open customer form same as vendor it should open vendor form.

Thanks in advance.

  • Manikanta1231 Profile Picture
    Manikanta1231 40 on at
    RE: Doubleclick on grid to open different forms in Listpage ax 2012

    Hi Nikolaos ,

    I have tried by using  fixed field relation but if we only specify DefaultAction property in grid it is opening only one form .

  • Manikanta1231 Profile Picture
    Manikanta1231 40 on at
    RE: Doubleclick on grid to open different forms in Listpage ax 2012

    Hi Blue Wang,

    I think we don't have Jumpref override method in interaction class. If possible can you send me the sample code.

  • Blue Wang Profile Picture
    Blue Wang on at
    RE: Doubleclick on grid to open different forms in Listpage ax 2012

    Hi Manikanta,

    Yes , you cannot override method on  listpage .

    You need to create an Listpage Interaction class and override the methods in the list page interaction class.

  • Manikanta1231 Profile Picture
    Manikanta1231 40 on at
    RE: Doubleclick on grid to open different forms in Listpage ax 2012

    Hi Blue Wang,

    Display different form based on enum value? --------Yes

    Or you can try to use jumpRef().----- we don't have override methods for listpage.

  • Blue Wang Profile Picture
    Blue Wang on at
    RE: Doubleclick on grid to open different forms in Listpage ax 2012

    Hi Manikanta M G,

    Display different form based on enum value?

    Or you can try to use jumpRef().

    Code from DimensionDynamicAccountController class: 

    6735.PNG

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,148 on at
    RE: Doubleclick on grid to open different forms in Listpage ax 2012

    You need to define table relations from your table (that is used as a data source for the listpage) to CustTable and VendTable. The relation contains one fixed field (the enum) and another field which contains the actual Customer / Vendor account number (which you need to have in your table, too). Once the relations are correct it should work.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,986 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,588 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans