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 :
Microsoft Dynamics GP (Archived)

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

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Suggested answer
    Naga Kiran Profile Picture
    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.

  • Verified answer
    soma Profile Picture
    24,410 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.

  • Community Member Profile Picture
    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 :)

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Community Member Profile Picture

Community Member 4

#2
Victoria Yudin Profile Picture

Victoria Yudin 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans