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

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

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

Postby Mike.Sheen » Thu Oct 09, 2025 5:25 pm

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.
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: Jiwa 8 changes for developers familiar with Jiwa 7

Postby DannyC » Mon Nov 10, 2025 4:35 pm

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.
User avatar
DannyC
Senpai
Senpai
 
Posts: 718
Joined: Fri Mar 22, 2013 12:23 pm
Topics Solved: 31

Re: Jiwa 8 changes for developers familiar with Jiwa 7

Postby Mike.Sheen » Mon Nov 10, 2025 6:49 pm

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
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


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 0 guests