Manual Backorder Release grid  Topic is solved

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

Manual Backorder Release grid

Postby Atronics » Thu Mar 17, 2016 12:43 pm

How can I add additional fields to the grid in the Manual Backorder Release form. A client wants to include the PO number and or Sales Order reference.
Atronics
Frequent Contributor
Frequent Contributor
 
Posts: 119
Joined: Fri Feb 29, 2008 4:40 pm
Topics Solved: 10

Re: Manual Backorder Release grid  Topic is solved

Postby Mike.Sheen » Sun Mar 20, 2016 1:02 pm

Attached is a plugin which does this.

It's in C# and works with version 7.00.157.00 (because you didn't specify either).

The way it works is it adds the columns to the grid, and then adds handlers for when a batch is read, or lines are added. In those handlers it queries the database for the SO_Main.OrderNo and SO_Main.SOReference fields for each row, and populates the grid with those values.

EDIT - Modified plugin attached to work with changes introduced in 7.2 SR2.
Attachments
Plugin Manual BO Release - Add columns - 7.2 SR2.xml
7.2 SR2 Compatible
(32.66 KiB) Downloaded 161 times
Plugin Manual BO Release - Add columns.xml
Sample Plugin
(32.38 KiB) Downloaded 237 times
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: Manual Backorder Release grid

Postby Atronics » Tue Mar 29, 2016 4:03 pm

Thanks, Mike.
Atronics
Frequent Contributor
Frequent Contributor
 
Posts: 119
Joined: Fri Feb 29, 2008 4:40 pm
Topics Solved: 10

Re: Manual Backorder Release grid

Postby Ernst » Wed Mar 20, 2019 2:14 pm

This plugin was great. Even got it going in 7.02, But the minute we put in Service Pack it got an error. Possibly as the Manual Back Order release function was updated to a save/ Activate function.

No idea how to fix this error, as the message is hard to decipher. Can anybody help with why this plugin wont work in 7.02, with service pack2.

Plugin and error message attached.
Attachments
CaptureRocpac.JPG
Error Message
CaptureRocpac.JPG (47.37 KiB) Viewed 1417 times
Plugin Rocpac - Manual BO Release - Add columns.xml
(31.84 KiB) Downloaded 131 times
User avatar
Ernst
Kohai
Kohai
 
Posts: 242
Joined: Tue Feb 19, 2008 3:43 pm
Topics Solved: 13

Re: Manual Backorder Release grid

Postby Mike.Sheen » Wed Mar 20, 2019 3:56 pm

Ernst wrote:This plugin was great. Even got it going in 7.02, But the minute we put in Service Pack it got an error. Possibly as the Manual Back Order release function was updated to a save/ Activate function.

No idea how to fix this error, as the message is hard to decipher. Can anybody help with why this plugin wont work in 7.02, with service pack2.

Plugin and error message attached.


I've edited my post above to include a modified version of the original plugin to be compatible with 7.2 SR2.

The problem was simply the RangeAdded event used to have no parameters - but in SR2 we added sender and eventargs as parameters - this was part of the work done in DEV-7092 and DEV-7093 - but was not necessary - it was simply a consistency thing where we try to make sure all our events pass the sender and eventargs so not only are event signatures consistent, but plugins and applications can have a chance of doing useful things with those events without fancy parameter injection via delegates or other such tricksies.

In essence, what needed to change was this one line:
Code: Select all
public void ManualBOBatch_BatchLines_RangeAdded()

was changed to:
Code: Select all
public void ManualBOBatch_BatchLines_RangeAdded(object sender, System.EventArgs e)


But I took the opportunity to also remove the reference to the Manager.Instance property - because whilst it's ok to use it in 7.2 SR2, we'll remove it one day.
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: Manual Backorder Release grid

Postby Ernst » Wed Mar 20, 2019 7:28 pm

Great thanks Mike, Will load it to client in the morning.. Your a star.*
User avatar
Ernst
Kohai
Kohai
 
Posts: 242
Joined: Tue Feb 19, 2008 3:43 pm
Topics Solved: 13


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 3 guests