Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

ShortcutDimCode3 gets erased:

Posted on by 1,652

Hi All,

When I transfer entries from the bank reconciliation to the general journal page, the page gets ShortCutDimCode3 [Employee code] as expected, but when I try to update any of the fields of any particular line on the general journal page, ShortCutDimCode3 field value gets erased. 

With the below code's help, I have transferred the data to the general journal line.
pastedimage1673519219242v1.png
Anyone has a solution to save a ShortCutDimCode3 field value?
Thank you.
  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: ShortcutDimCode3 gets erased:

    Have you tried to debug the complete process. You might have some other code that is executed at a later stage that clear some dimension values.

  • Suggested answer
    DAnny3211 Profile Picture
    DAnny3211 9,272 Super User 2024 Season 1 on at
    RE: ShortcutDimCode3 gets erased:

    hello try putting validateshortcutdim3 in the onafterinsetgenjnllineinsert

  • HVGEEL Profile Picture
    HVGEEL 288 on at
    RE: ShortcutDimCode3 gets erased:

    Hi,

    what is the behaviour you are expecting from the validation of ShortCutDim 3?

    If you would like to preserve whatever you are carrying over from another journal, it seems legit to leave the field untouched by code.

    Furthermore, there are some other validates in your code (Account Type and Nr) they might just overwrite whatever is in ShortCut3.

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 Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

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... 291,134 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,928 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans