web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

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

ShortcutDimCode3 gets erased:

(0) ShareShare
ReportReport
Posted on by 2,086

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.
I have the same question (0)
  • HVGEEL Profile Picture
    306 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.

  • Suggested answer
    DAnny3211 Profile Picture
    11,376 on at
    RE: ShortcutDimCode3 gets erased:

    hello try putting validateshortcutdim3 in the onafterinsetgenjnllineinsert

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,045 Moderator 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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 4,285

#2
Sumit Singh Profile Picture

Sumit Singh 2,725

#3
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 2,526

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans