Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Implementing Jumpref or View Details on a List page

(0) ShareShare
ReportReport
Posted on by 11,306

Hi All.

I have the following scenario. I have added a display method based column to a list page in AX2012 that displays a purchase order Id. Due to the number of tables involved it seems unfeasible to do this via adding data sources to my form. However the problem that I experience is that although the display method returns a PurchId the List page does not provide a "view details" option. Furthermore I'm unaware of how to (if at all possible) create jump ref methods on a list page (I assume via ListPage interaction class).

If anyone has come across this issue or knows of a workaround please can you assist me,

*This post is locked for comments

  • Anand Agarwal Profile Picture
    45 on at
    RE: Implementing Jumpref or View Details on a List page

    It worked for me Thanks Man !!

  • Verified answer
    Jonathan  Halland Profile Picture
    11,306 on at
    RE: Implementing Jumpref or View Details on a List page

    Hi Sohaib.

    Awesome thanks for that. It was just what I needed. After a bit of experimentation this is what worked...

    All done in the ListPageInteractionClass

    //declare in classDeclaration
    FormStringControl purchidCtrl;
    
    public void initialized()
    {
        Array fields;
        FormStringControl ctrl;
        FormDataSource      frmDs;
        Common              currentRecord;
        FormRun             formRun;
        
        super();    
        
        currentRecord= this.listPage().activeRecord('[MyDataSourceName]');
        frmDs   = currentRecord.dataSource();
        formRun = frmDs.formRun();
        purchidCtrl = formRun.control(formRun.controlId("purchId"));
        
        purchidCtrl.registerOverrideMethod(methodStr(FormStringControl, jumpRef),    methodStr([MyListPageInteractionClass], jumpRefPurch), this);
    }
    
    private void jumpRefPurch(FormControl _formControl)
    {
        PurchTable purch;
        Args            args;
        MenuFunction    menuFunction;
        ;
        
        if (purchid.valueStr() != "")
        {            
            menuFunction = new MenuFunction(menuitemDisplayStr("PurchTable"), MenuItemType::Display);
            args = new Args(menuFunction.object());
            purch = PurchTable::find(purchid.valueStr());        
            if (purch.RecId != 0)
            {            
                args.record(purch);
                menuFunction.run(args);
            }
            else
            {
                error(strFmt("Purchase order: %1 no longer exists"));
            }
        }
        
    }
    
  • Verified answer
    Sohaib Cheema Profile Picture
    46,614 User Group Leader on at
    RE: Implementing Jumpref or View Details on a List page

    Hello Jonathan,

    welcome back after a long time.

    well I think there are some chances to achieve this. I have not tested it yet, but let me share little idea so you may think of this direction

    first of all get the current record

    Common              currentRecord;

    currentRecord= this.listPage().activeRecord('CustTable');//'CustTable' is name of my DS

    Now get the form datasource name

    FormDataSource      frmDs

    frmDs   = currentRecord.dataSource();

    now using the form data source name we can make use of FormRun Object as under

    FormRun             formRun;

    formRun = frmDs.formRun();

    //now using form run, we can use FormStringontrol or FormRelaControl, depending upon what is type of control, where I am using display method lets suppose its string control

    FormStringControl   frmStringCtrl;

    frmStringCtrl.registerOverrideMethod(....

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics AX (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 100 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 48

#3
shanawaz davood basha Profile Picture

shanawaz davood basha 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans