Skip to main content

Notifications

Announcements

No record found.

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

ShortcutDimCode3 gets erased:

(0) ShareShare
ReportReport
Posted on by 1,707

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

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans