Custom Forms and Data In Jiwa 7  Topic is solved

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

Custom Forms and Data In Jiwa 7

Postby SBarnes » Thu Oct 08, 2015 5:45 pm

Hi Mike,

Is there a way through using a plugin to add custom forms to Jiwa 7 (There was an example provided for Jiwa 6 in the forums), that could be related to a table or view added to the database that is not a standard Jiwa table or view, that could simply show data in a grid and allow the user to update specific values?

If this is possible could you give a simple example?

It would also be good if there was a way to make this form look like it was parrt of Jiwa i.e. Look and feel etc
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1696
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 191

Re: Custom Forms and Data In Jiwa 7

Postby Scott.Pearce » Tue Oct 20, 2015 9:38 am

This sample does something like what your after:

http://forums.jiwa.com.au/viewtopic.php?f=27&t=417

Further, there are a number of base forms in the JiwaApplication object from which you can inherit from - this means you get the Jiwa look and feel. These include:

JiwaApplication.ListMaintenance.UserInterface - like the form in the sample - a simple form that shows a table of data.
JiwaApplication.Maintenance.UserInterface - this is what is used for forms where there are next/previous buttons, like the debtors form, inventory form, etc.
JiwaApplication.MultiListMaintenance.UserInterface - this is like the list maintenance form but supports multiple lists, each on it's own tab.
JiwaApplication.ProcessAction.UserInterface - a form that does not allow record scrolling (first/next/prev/last) but displays data and supports a "process" button. Period and yearly roll-over uses this base form.
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 765
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 230

Re: Custom Forms and Data In Jiwa 7  Topic is solved

Postby SBarnes » Tue Oct 20, 2015 11:55 am

Hi Scott,

Firstly thanks for the reply, I had also discovered a similar thing by looking at the plugin related to the image links.

Further to this given there is no form designer built into Jiwa 7 am I right in assuming that if you wanted to add other controls to the form you would need the correct versions of infragistics and Spread Studio and then would need to follow the following steps:

1. Add the necessary 3rd party controls to a visual studio project
2. Add the necessary Jiwa DLLs to the visual studio project
3. Crete a form inherited from one of these forms.
4. Use the Form designer to add the necessary 3rd party controls.
5. Cut and paste the form designer code and any event code into the plugin
6. Add the form to the forms list
7. Add a menu item to launch the form

Thanks
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1696
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 191

Re: Custom Forms and Data In Jiwa 7

Postby Scott.Pearce » Tue Oct 20, 2015 1:13 pm

Yep. They are the steps!
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 765
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 230

Re: Custom Forms and Data In Jiwa 7

Postby SBarnes » Fri May 06, 2016 10:36 am

Hi Scott,

I have tried creating a custom maintenance form in 7.175 and I am having an issue with the spread grid at compile time and I am getting the following error

Error 155 Assembly 'JiwaApplication, Version=7.0.157.0, Culture=neutral,... uses 'FarPoint.Win.Spread, Version=8.35.20151.0, .... which has a higher version than referenced assembly 'FarPoint.Win.Spread, Version=7.35.20132.1, ....... C:\Install\Jiwa 7.157\FormsTest157\FormsTest157\FormsTest157\bin\Debug\JiwaApplication.dll FormsTest157


Obviously this mean obtaining verion 8.35.20151.0 of the spread grid will fix the problem but can you tell me from which version of Jiwa 7 the upgrade happened?

Thanks
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1696
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 191

Re: Custom Forms and Data In Jiwa 7

Postby Scott.Pearce » Fri May 06, 2016 10:53 am

Is this a plugin or a standalone application (i.e. is your issue occurring in Plugin Maintenance or in Visual Studio?)
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 765
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 230

Re: Custom Forms and Data In Jiwa 7

Postby SBarnes » Fri May 06, 2016 11:04 am

Hi Scott,

Thanks for the quick reply.

Its in a standalone application, that I have created to use the vs2013 form designer to do the screen for a plugin. I had done this previously against 7.142 (I think) and had no dramas.

I have made sure the project is references the correct version of the .net framework etc, Infragistics is giving no problems and of course the form designer won't draw the screen either.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1696
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 191

Re: Custom Forms and Data In Jiwa 7

Postby Scott.Pearce » Fri May 06, 2016 11:14 am

I assume that you have Jiwa installed on your dev machine.

In your project, remove all references to farpoint, and remove the reference to JiwaApplication. Save. Clean. Close visual studio, browse to your build folder and delete it's contents (if any). Load visual studio and load your project again. Add a reference to JiwaApplication. Add items to your toolbox - choose JiwaApplication.DLL (I create a separate tab in the toolbox for Jiwa controls). This should create a number of controls in your toolbox including JiwaGrid. Create a blank form in your project and drop a JiwaGrid onto it. The required Farpoint references should be created automatically. You can now delete the form you just created. Your project should compile OK now.
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 765
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 230

Re: Custom Forms and Data In Jiwa 7

Postby SBarnes » Fri May 06, 2016 12:18 pm

Hi Scott,

Firstly yes Jiwa 7.157 is installed, orignally the machine was 7.129 (not 142) and again thanks for your help with this.

I followed your instructions and when I try and add the jiwa grid I get the attached error, spread 7.35.20132.1 is the only version installed on the machine and can be dropped on a blank form with no issues, I have even gone back to the orignal project that was against 7.129 that hasn't had its Jiwa dlls changed and it will add an inherited form to the project with no dramas on the same machine.

When I now look at the Farpoint.win.spread dll in the Jiwa program directory and look at the version its saying 8.35 (see attached), so I believe installing this version of the speard grid should fix the problem as it looks to me that the version of the grid has been upgraded in Jiwa. Is this correct?
Attachments
farpoint in jiwa dir.jpg
DLL in Jiwa Directory
grid error.jpg
Erro in Visual Studio
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1696
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 191

Re: Custom Forms and Data In Jiwa 7

Postby Scott.Pearce » Fri May 06, 2016 12:22 pm

so I believe installing this version of the speard grid should fix the problem as it looks to me that the version of the grid has been upgraded in Jiwa. Is this correct?


Yes.

Have you purchased your own copy of Farpoint Spread?
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 765
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 230

Next

Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 1 guest