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)

Creating button to update close Quality Order destructive sample Materials

(0) ShareShare
ReportReport
Posted on by 3,110

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

I have the same question (0)
  • Rustem Galiamov Profile Picture
    8,072 on at

    Hi!

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

  • Shabir Ahmad Profile Picture
    3,110 on at

    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.

  • Suggested answer
    Rustem Galiamov Profile Picture
    8,072 on at

    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
    3,110 on at

    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
    8,072 on at

    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
    3,110 on at

    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
    8,072 on at

    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.

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