Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Transfer journal link

Posted on by

Hi,

I've some work to do. I have a customized form which has some process, there is a field under the grid which contains the transfer journal number. when ever user select or clicked the transfer journal it will show the transfer journal screen with selected or clicked transfer journal. 

For Example:

if tranfer journal no: is A-10022 then it will only show the transfer journal screen with that specific transfer journal.

How can achieve this ?  kindly help with some verified solution.

*This post is locked for comments

  • Rustem Galiamov Profile Picture
    Rustem Galiamov 8,072 on at
    RE: Transfer journal link

    JournalId field on your form is the field from InventJournalTable or is the new added field from another table?

  • Zohan Profile Picture
    Zohan on at
    RE: Transfer journal link

    through some process , journal id is been created and display on my form.

  • Rustem Galiamov Profile Picture
    Rustem Galiamov 8,072 on at
    RE: Transfer journal link

    Can you explain how did you add journald to the form or provide some screenshots?

  • Zohan Profile Picture
    Zohan on at
    RE: Transfer journal link

    so basically i've to put the range in jumpRef method ? through args.record()

  • Suggested answer
    Rustem Galiamov Profile Picture
    Rustem Galiamov 8,072 on at
    RE: Transfer journal link

    Hyper link of the form’s field is the standard feature if the field use EDT with relations and form in the view mode, not edit mode. Btw, in your case, to open related form with selected value you need jumpRef() because journals has many types.

  • Suggested answer
    Rustem Galiamov Profile Picture
    Rustem Galiamov 8,072 on at
    RE: Transfer journal link

    If you have InventJournalTable as a DS of the form this code is enough. If you have only journal num, you should add InventJournalTable variable and get the cursor of the table and then put it to args.record() method.

  • Zohan Profile Picture
    Zohan on at
    RE: Transfer journal link

    can't we use some hyper link on that field ? so when ever user clicked that transfer journal it'll show the transfer journal with that transfer journal number ? is it possible ?

  • Zohan Profile Picture
    Zohan on at
    RE: Transfer journal link

    Does this method will return the same transfer journal number on transfer journal screen ?

  • Suggested answer
    Rustem Galiamov Profile Picture
    Rustem Galiamov 8,072 on at
    RE: Transfer journal link

    Hi Zohan!

    Just to add to ievgen suggestion, here is example of jumpRef method for transfer journal:

    public void jumpRef()
    {
        Args            args;
        FormRun         formRun;
    
        args = new Args(formStr(InventJournalTable));
        args.record(this);
        args.caller(object);
    
        // Menu item info will be used by security framework, when setting access rights to form datasources
        args.menuItemType(MenuItemType::Display);
        args.menuItemName(menuitemDisplayStr(InventJournalTableTransfer));
    
        formRun = classfactory.formRunClass(args);
        formRun.init();
        formRun.run();
        formRun.detach();
    }
  • Suggested answer
    Mea_ Profile Picture
    Mea_ 60,278 on at
    RE: Transfer journal link

    Hi Zohan,

    You need either define relations on the table in AOT or write jumpRef method for that field, here are blog posts with examples

    ztirom.at/.../ax-2012-override-the-jumpref-method-to-modify-view-details

    axvuongbao.blogspot.com/.../how-to-make-relation-in-extended-data_19.html

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans