Skip to main content

Notifications

Dynamics 365 Community / Forums / Finance forum / Register override form...
Finance forum
Suggested answer

Register override form data-source field method 'jumpRef' not working.

Posted on by 131
//
 
I just want add the View details link on display method fields and out bound field on form. I think the code written above is correct, when I attach debugger it did not hit the overridden method ? The code is not complete but first just verifying that whether or not overridden is triggering. It is not in my case.
  • Suggested answer
    Waed Ayyad Profile Picture
    Waed Ayyad 5,925 Super User 2024 Season 2 on at
    Register override form data-source field method 'jumpRef' not working.
     
    In the jumpRef code replace 
     
    name = LedgerJournalName::Find(LedgerJournalTable.JournalName);
    with
     name = LedgerJournalName::Find(YourControlName.valuestr());
     
     
    Thanks.
    Waed Ayyad
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future
     
  • Martin Dráb Profile Picture
    Martin Dráb 229,173 Most Valuable Professional on at
    Register override form data-source field method 'jumpRef' not working.
    Well, it does matter whether you're doing a wrong thing or not.
     
    Trying to go to the related table of Name doesn't make a good sense, because no such table exists. You can type anything to the field, not just values from another table that you can could them navigate to.
     
    Also, overriding the logic of the individual control sounds wrong to me, if the control is bound to a data source field, because it would miss other instances of the field. You mentioned a display method, so maybe you took code for a display method and now you're incorrectly trying to use it in a different context.

    If you give us your code as text, we might test it on our own.
  • itlabnarmi_ivoruk Profile Picture
    itlabnarmi_ivoruk 131 on at
    Register override form data-source field method 'jumpRef' not working.
    Hi Martin Dráb the issue is not using Name or Journal name, Issue is that the debugger is not triggering overridden method.
     
    I am following this Just what I want to do is below but want to do this through chain of command !
     
     
    Thanks for your quick response !
  • Martin Dráb Profile Picture
    Martin Dráb 229,173 Most Valuable Professional on at
    Register override form data-source field method 'jumpRef' not working.
    View details for fields that have a relation to another table. This is not the case of Name field; that's just a text field. Don't you actually want to use JournalName field instead?
  • itlabnarmi_ivoruk Profile Picture
    itlabnarmi_ivoruk 131 on at
    Register override form data-source field method 'jumpRef' not working.
    Yes GirishS there are two ways 
     
    • Control Event handler
    • Chain of Command
    But I want to do it with Chain of Command.
     
     
    Thanks for your quick response !
  • itlabnarmi_ivoruk Profile Picture
    itlabnarmi_ivoruk 131 on at
    Register override form data-source field method 'jumpRef' not working.
    Ok Martin Dráb you are right. 
     
    What I actually trying to do is I want to add view detail link which will take me to that form.
     
     
    What I want is to just add link to description field 
     
     
    Thanks for your quick response !
  • GirishS Profile Picture
    GirishS 27,832 Super User 2024 Season 1 on at
    Register override form data-source field method 'jumpRef' not working.
    Hi,
     
    In addition to the Martins comment, I need to ask you one thing. 
    Why are you using registerOverride method?
    You can either write COC for the particular control or write event handler for that control?
    I know the jumpRef method is not available under events node, but you can copy any of existing events - Paste it in class and in code you can change the event type Enum to JumpRef.
     
    Thanks,
    Girish S. 
  • Martin Dráb Profile Picture
    Martin Dráb 229,173 Most Valuable Professional on at
    Register override form data-source field method 'jumpRef' not working.
    LedgerJournalTable_Name doesn't use a display method. It's bound to a table field (LedgerJournalTable.Name).

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,867 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,173 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans