Skip to main content

Notifications

Announcements

No record found.

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.
  • M Salah Profile Picture
    M Salah 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.
  • Martin Dráb Profile Picture
    Martin Dráb 230,445 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.

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans