Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

How to call a dexterity form procedure from an unrelated form

Posted on by 1,480

I am attaching a script to create a bank transaction from a button on the Generate EFT Screen.  The script is a registered trigger.

As part of my script,  i want to call this script and return the next bank transaction number  as outlined on page 7... see documentation pasted.

From the BRGlbls,doc sdk

GetNextNumber

Module:            Bank Reconciliation

Category:         Setup

Description:    

Gets the next number based on the specified Transaction Type.  This routing returns a formatted string CCCNNNNNNNNN where CCC is the Transaction Type code and NNNNNNNNN is the transaction number.

If two users call GetNextNumber with two different transaction types, the return values might be (assume 5 is the current Next Number), RCT000000005, and the second request would return IAJ000000006.  The Transaction Number is independent of the Transaction Type.

Script Type:     Function

Syntax:

GetNextNumber(TransactionType, CMSetup, CMTrxSetup)

Parameters:

in          TransactionType            Enumerated Transaction Type (Receipt, Withdrawal, etc)

in          CMSetup                      CM Setup Table

in          CMTrxSetup                  CM Transaction Setup Table

a Sample of my dexterity calling the function from t SDK....


local integer zintGetNextNumber;

open table CM_SETP;


zintGetNextNumber= GetNextNumber(6, 'CM Setup Table', CMTrxSetup)of form CM_Setup;

Why am I getting a message...Unknonwn Identifier CM Setup Table and CMTrxSetup?

Why am I getting a type incompatibility script zintGetNextNumberparameter #2

Maybe the better question is how do I pass those tables to the script if those tables aren't part of the form I am calling my script from?

Categories:
  • Suggested answer
    RE: How to call a dexterity form procedure from an unrelated form

    Thanks for sharing the information, Mike.

    I'm sure someone else will benefit from this information.

    Have a great day

  • Mike Bufano Profile Picture
    Mike Bufano 1,480 on at
    RE: How to call a dexterity form procedure from an unrelated form

    Sorry to be that guy that answers his own question.  

    this actually worked.

    zintGetNextNumber= GetNextNumber(6, table CM_SETP, table CM_Transaction_SETP)of form CM_Setup;

    Had to add the word table.

    Also, determined taht the parameters provided in the SDK differed from the values I passed as parameter 2 and 3.

    Parameter 2 in the SDK = CMSetup vs what I used CM_SETP

    parameter 2 in the SDK = CMTrxSetup  vs what I used CM_Transaction_SETP

    I also tried substituting between single quotes 'CM Setup' and 'CM Transaction Setup'

    Its frustrating when the SDK doesn't provide the correct 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

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

Product updates

Dynamics 365 release plans