JiwaApplicationManagerPlugin v7.2  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

JiwaApplicationManagerPlugin v7.2

Postby Riyaz » Tue Oct 16, 2018 9:28 pm

Hi There

Need some guidance in converting the below code snippet to v7.2 , pls advise
Code: Select all
Public Sub Setup(ByVal Plugin As JiwaApplication.Plugin.Plugin) Implements JiwaApplication.IJiwaApplicationManagerPlugin.Setup
      AddHandler JiwaApplication.Manager.Instance.Search.Showing, AddressOf Search_Showing
    End Sub
      
   Private Sub Search_Showing(sender As Object, e As System.EventArgs)
      'System.Diagnostics.Debugger.Launch
      With JiwaApplication.Manager.Instance.Search

'some code here
End With

End Sub
[/code]
Riyaz
Kohai
Kohai
 
Posts: 233
Joined: Wed Dec 02, 2015 2:05 pm
Topics Solved: 2

Re: JiwaApplicationManagerPlugin v7.2  Topic is solved

Postby SBarnes » Wed Oct 17, 2018 7:12 am

There are individual managers attached to objects now in this case the Plugin object so use the below

Code: Select all
Plugin .Manager;
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1620
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: JiwaApplicationManagerPlugin v7.2

Postby Scott.Pearce » Wed Oct 17, 2018 10:35 am

Yes, Stuart is correct.

Don't use .Instance anymore. You should always be able to find a .Manager object to use hanging off whatever Jiwa object is available to you.

Your code would become:

Code: Select all
Public Sub Setup(ByVal Plugin As JiwaApplication.Plugin.Plugin) Implements JiwaApplication.IJiwaApplicationManagerPlugin.Setup
    AddHandler Plugin.Manager.Search.Showing, AddressOf Search_Showing
End Sub
     
Private Sub Search_Showing(sender As Object, e As System.EventArgs)
    'System.Diagnostics.Debugger.Launch
    Dim searchObject  as JiwaFinancials.Jiwa.JiwaApplication.JiwaSearch.clsSearch = sender
    With searchObject 
        'some code here
    End With
End Sub
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 743
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 221

Re: JiwaApplicationManagerPlugin v7.2

Postby Riyaz » Wed Oct 17, 2018 1:22 pm

Thanks Stuart and Scott
Riyaz
Kohai
Kohai
 
Posts: 233
Joined: Wed Dec 02, 2015 2:05 pm
Topics Solved: 2


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 15 guests