Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

Creating button to update close Quality Order destructive sample Materials

Posted on by 3,024

0488.Quality-Order-Reopen.png

Dear All Experts,

I was asked for  make a button which will update Quality Order after validate(As after validating quality order to be closed). Well it be done after command button(to update that closed quality order) ?? or i would write a code, if i do, so please give a suggestion and your help will be valuable.Another, thing is after validating reopen button is disable to open quality order, as sample materials are destructive in our process.Please the above image will make you clear for my question.

Thanks and Regards,

Shabir Ahmad

Shabir Ahmad

*This post is locked for comments

  • Suggested answer
    Rustem Galiamov Profile Picture
    Rustem Galiamov 8,072 on at
    RE: Creating button to update close Quality Order destructive sample Materials

    I'll recommend to debug the process which set status Pass to Quality Order and you'll understand how it works and which objects are related to this process step by step.

  • Shabir Ahmad Profile Picture
    Shabir Ahmad 3,024 on at
    RE: Creating button to update close Quality Order destructive sample Materials

    Rustem Galiamov,

    Thanks for your helpful reply, would you like to tell me, how i would know that which updates are related to this form, which will effect on all the system?? sorry for  asking much questions.

    Thanks and Regards,

    Shabir Ahmad

  • Suggested answer
    Rustem Galiamov Profile Picture
    Rustem Galiamov 8,072 on at
    RE: Creating button to update close Quality Order destructive sample Materials

    As example, take a look at smmBusinessRelationsListPage form and Convert2CustomerCtrl MenuItemButton on GeneralTab.

    And you need to keep in mind that update record is not enough and you need to be careful about it. You need to know all related objects what needs to be updated.

  • Shabir Ahmad Profile Picture
    Shabir Ahmad 3,024 on at
    RE: Creating button to update close Quality Order destructive sample Materials

    Dear Rustem Galiamov ,

    What kind of logic that would be, for example writing update record or something else, would you like to suggest me or give an example of code, what kind of code that would be ?

    Thanks and Regards,

    Shabir Ahmad

  • Suggested answer
    Rustem Galiamov Profile Picture
    Rustem Galiamov 8,072 on at
    RE: Creating button to update close Quality Order destructive sample Materials

    You should write code to achieve this. There are many ways to do it.

    As example override the clicked() method on the button. But the logic must be written on the table or on the class and from clicked() method you should call that logic.

  • Shabir Ahmad Profile Picture
    Shabir Ahmad 3,024 on at
    RE: Creating button to update close Quality Order destructive sample Materials

    Dear Rustem,

    Thanks for your reply, Yes, i want to have a Technic in which i can reopen close quality order, as the status of the quality order is either pass or fail and materials are destructive after sampling, would it be possible to edit or reopen a quality order with a button click or something else.

  • Rustem Galiamov Profile Picture
    Rustem Galiamov 8,072 on at
    RE: Creating button to update close Quality Order destructive sample Materials

    Hi!

    You want to create a new button to reopen orders or you want to make "Reopen quality order" button enabled?

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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans