Page 1 of 1

Jiwa 8 changes for developers familiar with Jiwa 7  Topic is solved

PostPosted: Thu Oct 09, 2025 5:25 pm
by Mike.Sheen
Program Enhancements for the Technically Minded is an anchor in the Jiwa 8 release highlights article which may be of interest to developers.

And the docs article Upgrade Guidance for Plugin Developers has some guidance on what (if any) changes would need to be made to make a version 7 plugin work with Jiwa 8.

Re: Jiwa 8 changes for developers familiar with Jiwa 7

PostPosted: Mon Nov 10, 2025 4:35 pm
by DannyC
Thanks Mike. Great info for upgrading existing Jiwa 7 plugins.

One question (for now :lol: )

Lets say I have this code:
Code: Select all
salesOrderForm.LineDisplayed += My_LineDisplayed;

which has the following parameters from Jiwa 7
Code: Select all
private void My_LineDisplayed(object sender, System.EventArgs e, JiwaFinancials.Jiwa.JiwaSales.SalesOrder.SalesOrderLine soLine, int row)    


I'm getting an error
"No overload for 'My_LineDisplayed' matches delegate 'BaseSalesOrderEntryForm.LineDisplayedEventHandler'

I don't need you to tell me the new changes or what the actual problem is, I'll just nut it out myself but I used to be able to put an open parenthesis like this which would show the expected parameters in the void routine.
Code: Select all
salesOrderForm.LineDisplayed( += My_LineDisplayed;


In the new plugin IDE nothing shows. Is there a new trick for getting that kind of information? I have tried unticking Release Optimised but that's not it.

Re: Jiwa 8 changes for developers familiar with Jiwa 7

PostPosted: Mon Nov 10, 2025 6:49 pm
by Mike.Sheen
That's just a bug, I think.

I've confirmed V7 behaves as you say, and without that behaviour it's harder to discover the parameters expected of an event handler using the Plugin Maintenance form alone - so I've logged this as DEV-12297.

Your work-around is to declare an instance of the delegate, and then select the Invoke Method to trigger the tooltip display of the parameter list for the delegate.
Plugin_Event_Tooltip.png


Update - there is an easier way than declaring an instance of the delegate - just use the .Invoke method on the event to trigger the tooltip for the parameter info - so for a LineDisplayed event:
Plugin_Event_Tooltip_Simple.png