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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Business Central forum

Add a printing option in the change status page of the production order

(0) ShareShare
ReportReport
Posted on by 5

I would like to add an automatic printing option to the status change of my production order.
I created an extension of the page 99000882 (Change Status on Prod Order) with the checkbox but I do not know how to recover the value entered by the user.

pastedimage1568120708530v1.png

I have an event after the page call in codeunit 5407 (Product Order Status Management): OnAfterChangeStatusOnProdOrder (ProdOrder, ToProdOrder) but I do not know where to pass information from my checkbox
Does anyone have the solution without changing the CAL code?
Thank you in advance

Categories:
  • Suggested answer
    Alexey Finogenov Profile Picture
    1,659 on at

    "Does anyone have the solution without changing the CAL code?"
    I cannot see such way for UpdateUnitCost. Need to add the parameters to Event OnAfterChangeStatusOnProdOrder (ProdOrder, ToProdOrder).

    For the standard code changing you need add the issue: https://github.com/Microsoft/ALAppExtensions/issues/

    P.S.

    Some tests on such docker container:

    === 

    install-module navcontainerhelper -force
    $accept_eula = $true
    $containername = 'BCONPREM-144-W1'
    $navdockerimage = 'mcr.microsoft.com/businesscentral/onprem:14.4.35602.0-w1'
    $credential = get-credential -UserName $env:USERNAME -Message "Using Windows Authentication. Please enter your Windows credentials."
    $licenseFile = "D:\_DEVDOCKER\build.flf"
    New-BCContainer  -accept_eula:$accept_eula `
                     -containername $containername `
                     -auth Windows `
                     -Credential $credential `
                     -includeCSide `
                     -usessl:$false `
                     -updateHosts `
                     -licenseFile $licenseFile `
                     -shortcuts Desktop `
                     -imageName $navdockerimage `
                     -includeAL `
                     -memoryLimit 10G `
                     -alwaysPull `
                     -enableSymbolLoading

    === 

    Pictures:

    7271.p1.png

    5700.p2.png

    p3.png

    p4.png

    p5.png

  • MANDELERT Profile Picture
    5 on at

    OK for this solution but I do not want to change the CAL code. And I can't ask Microsoft to add my business parameter in the BC standard.
    The only solution is to convert the codeunit and the page in AL ?

  • Alexey Finogenov Profile Picture
    1,659 on at

    “convert the codeunit and the page in AL”

    Not, sure what you mean, if you mean use ‘Code customized AL’ (https://freddysblog.com/2019/04/15/c-al-to-al-code-customizations/) way… this is a huge step (you need to Create an AL project containing all the baseapp objects; Replace the C/AL objects in the development container with the new AL app … and etc..) and MS do not promote this story:

    p6.png

  • Alexey Finogenov Profile Picture
    1,659 on at
  • MANDELERT Profile Picture
    5 on at

    very interesting, 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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans