What you may be seeing is a false error, Jiwa uses a third party syntax editor in the plugin editor this control only support up to a given version of c#, however this control doesn't actually do the compiling of the plugin, save you plugin and restart Jiwa if no error dialog about plugins it couldn't compile is shown then it compiled it.
Alternatively Jiwa supports embedded references so you can build a class library and embed you code in there to do this you do the following:
Create a class library that target X86 and uses the ,net 4.7 framework, you can use 4.8 but Jiwa installs 4.7
Add references to JiwaApplication and JiwaODBC if you are going to need to access Jiwa from the class library
Create a public class called worker for instance and put your code in some method and pass in the manager if you need to
Compile your library
Create a plugin and add the library as an embedded reference, save it and restart Jiwa
Now in the appropriate plugin instantiate your worker class and call your method.
What I quite often do is in the solution with the library is create a win forms application as a test and have the following code to create the Jiwa connection and then call the library
- Code: Select all
JiwaFinancials.Jiwa.JiwaApplication.Manager manager = new Manager();
manager.Logon("SERVERNAMEGOESHERE", "DATABASENAMEGOESHERE", JiwaFinancials.Jiwa.JiwaODBC.database.AuthenticationModes.JiwaAuthentication, "Admin", "password");