Work Order "On Close" event  Topic is solved

Discussions relating to Jiwa 7 plugin development, and the Jiwa 7 API.

Work Order "On Close" event

Postby DamonR » Tue Oct 21, 2025 2:23 pm

Hi Guys,

I’m doing a plugin that needs to trigger an action when a work orders status is changed to closed.

I’m running into issues detecting this. It sometimes fires too early, for example when the form opens or when default data loads, and in other cases it doesn’t trigger at all when the status is actually set to Closed.

I’m testing under JiwaFinancials.Jiwa.JiwaBillOfMaterialsUI.WorkOrder.WorkOrder using StatusChanged, Saved, or AfterFieldChanged.

I need a single reliable event that represents “the Work Order has just transitioned to Closed”, preferably post-commit.
DamonR
I'm new here
I'm new here
 
Posts: 6
Joined: Mon Jul 15, 2024 4:08 pm

Re: Work Order "On Close" event  Topic is solved

Postby Mike.Sheen » Tue Oct 21, 2025 2:34 pm

There is a property, OriginalStatus of the Work Order object - that will be set to something other than Statuses.Closed, and the Status property will be set to Statuses.Closed in the SaveEnd event - which occurs after all database changes committed.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807

Re: Work Order "On Close" event

Postby DamonR » Tue Oct 21, 2025 6:37 pm

Thanks Mike. All good now :)
DamonR
I'm new here
I'm new here
 
Posts: 6
Joined: Mon Jul 15, 2024 4:08 pm


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 4 guests