Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Issue getting the Xfr Record Number for the new Bank Transfer in Dexterity

Posted on by Microsoft Employee

Hi, We have registered a script on Post button in Bank Transfer Entry and we need new Xfr Record Number for the newly created entry. l_result = Trigger_RegisterFocus(anonymous('(L) Post_Button' of window Transfer_Entry of form CM_Transfer_Entry), TRIGGER_FOCUS_CHANGE, TRIGGER_BEFORE_ORIGINAL, script MYScript); but we are getting 0 in MyScript event. Here is the code that we are using to retrieve Xfr Record Number. 'Xfr Record Number of window Transfer_Entry of form CM_Transfer_Entry Appreciate any help. Thanks Himal

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Issue getting the Xfr Record Number for the new Bank Transfer in Dexterity

    Thank you.. I'll give it a try and update.

    Thanks for the suggestion :)

  • Verified answer
    soma Profile Picture
    soma 24,406 on at
    RE: Issue getting the Xfr Record Number for the new Bank Transfer in Dexterity

    Himal,

    If you want to take Xfr Record Number value showing on the CM_Transfer_Entry window . If yes, use the below code instead of your code.

    '(L) Transfer Number'' of window Transfer_Entry  of form CM_Transfer_Entry ;

    If you want to take next transaction Xfr Record Number, use this function "GetNextNumber() of form CM_Setup"  to retrieve.

  • Suggested answer
    Naga Kiran Profile Picture
    Naga Kiran on at
    RE: Issue getting the Xfr Record Number for the new Bank Transfer in Dexterity

    Himal,

    'Xfr Record Number' of window Transfer_Entry  of form CM_Transfer_Entry  will have value only when you select Void option and select an existing Transfer Number from the lookup. So it will be blank for all new transfer entries.

    New transfers always take the Maximum Value + 1 from CM20600 table in the company database.

    Hope this helps.

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans