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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

how to increase the length of a string which has been defined in a base by using chain of command?

(0) ShareShare
ReportReport
Posted on by

hi,

i  am trying to increase the length of a string outputRecord which is defined in VendOutPaymRecord_Nacha , so by using chain of command i want to increase the length of the outputRecord  string so that i can use strPoke() and insert data into the string.

i have included the initRecord() method where outputRecord  is being initialized as outputRecord  = strrep(#blank, 94) in the VendOutPaymRecord_Nacha  class. in the extension class i am using the initRecord() to change it to outputRecord  = strrep(#blank, 202). but it is not working. as soon as it encounters the strPoke() which again is in the VendOutPaymRecord_Nacha class the size changes back to 94. can you suggest a way to retain the size of the outputRecord to 202  in the chain of command class.

*This post is locked for comments

I have the same question (0)
  • faheem Ahmed Profile Picture
    450 on at

    [tag:NACHARecLen] length is explicitly define in the class 94 after executing all extension system will execute base method so in any case [tag:NACHARecLen] will always be 94 simply declare a new type with new length and pass that record using next keyword.

    docs.microsoft.com/.../method-wrapping-coc

  • Community Member Profile Picture
    on at

    hi,

    the method where im trying to increase the length does not take parameters. so i cannot pass anything through that.

  • faheem Ahmed Profile Picture
    450 on at

    If you can share your code maybe, then I can suggest something

    Method signature has to be same to apply chain of command.

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 AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans