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 :
Finance | Project Operations, Human Resources, ...
Unanswered

Passing a new parameter to a class

(0) ShareShare
ReportReport
Posted on by 2
I have created a new checkbok in the form custpostinvoicejob and i have extended the closeok method as the following
 
public void closeOk()    {        custPostInvoiceJob.initParamZpost(ZPost.value());        next closeOk();    }
and i have extended the class custpostinvoicejob and added the method 
 
public void initParamZpost(NoYes _Zpost = NoYes::Yes)    {        this.parmZpost(_Zpost);}public NoYes parmZpost(NoYes _Zpost = Zpost )    {        Zpost = _Zpost ;        return Zpost ;    }
but it always return no when i check it.
I have the same question (0)
  • Martin Dráb Profile Picture
    236,960 Most Valuable Professional on at
    Passing a new parameter to a class
    When do you check the value?
     
    Can you show us all the relevant code in your extension of CustPostInvoiceJob class. You seem to added an instance variable, but it's not clear whether you added to serialize and deserialize the value. It's quite possible that you forgot.
     
    Moved from D365 general forum to D365 Finance forum, because it seems to be about F&O.
  • M Salah Profile Picture
    2 on at
    Passing a new parameter to a class
    Dear Martin
    I check it on the run method extension like the following
    public void run()
        {
            next run ();
            info(strFmt(enum2str(this.parmZpost())));
        }
    and yes i didn't set a serialize and deserialize option for it. i will do it and check again ,thank you.

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 724 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 580 Most Valuable Professional

#3
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 554

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans