New tab in General Ledger Categories  Topic is solved

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

New tab in General Ledger Categories

Postby DannyC » Thu Oct 18, 2018 4:09 pm

Hi,

I'm using the nice functionality in Form Custom Tabs to write my own grid so the user can edit the data in a table GL_Segments.
I have my own stored proc which returns the schema and grid - it displays as expected in SQL query window.

When I add it to the General Ledger Categories, nothing appears, yet when I add it to Inventory Maintenance (just as a test) the new tab appears. Is there something special about the tab control in GL Categories which prevents a new tab from getting added?

Also if I am able to get the grid to display, is it read only or editable?

Version 7.0.157 for now, but client is soon to upgrade to 7.0.175.

EDIT: If the above isnt possible, I've been able to create a new plugin which creates a new form. Unfortunately it is read only. Is there a way to make it editable?
Code: Select all
public class GLSegmentsForm : JiwaFinancials.Jiwa.JiwaApplication.NavigationListUI.NavigationList
{
   public GLSegmentsForm()
   {
      base.StoredProcName = "Attkey_usp_GLSegments";
      base.Text = "GL Segments";

   }
   
   public override void Start()
   {
      base.Start();
   }
   
}
User avatar
DannyC
Senpai
Senpai
 
Posts: 718
Joined: Fri Mar 22, 2013 12:23 pm
Topics Solved: 31

Re: New tab in General Ledger Categories

Postby Scott.Pearce » Fri Oct 19, 2018 9:09 am

It appears as though custom form tabs only work on "JiwaApplication.Maintenance.UserInterface" forms.

Perhaps look at viewtopic.php?f=27&t=498 for creating your own form and populating it.
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: New tab in General Ledger Categories

Postby DannyC » Fri Oct 19, 2018 5:38 pm

Thanks Scott.
Based on that older topic, I have developed the attached plugin. It is nearly there but I'm just having trouble on one line of code (until that's fixed up, then it'll be another line of code!)
Code: Select all
base.OnRead();

Object reference not set to an instance of an object.

I've added the new form to Forms, then add to Menu maintenance.

Error occurs when launching the form.
Attachments
Plugin Sample Plugin - GL Segment Maintenance.xml
(60.67 KiB) Downloaded 231 times
User avatar
DannyC
Senpai
Senpai
 
Posts: 718
Joined: Fri Mar 22, 2013 12:23 pm
Topics Solved: 31

Re: New tab in General Ledger Categories

Postby Scott.Pearce » Tue Oct 23, 2018 8:48 am

There is no SQL script attached to the plugin that adds the form entry - how do I add the 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: New tab in General Ledger Categories

Postby DannyC » Tue Oct 23, 2018 11:11 am

Scott.Pearce wrote:There is no SQL script attached to the plugin that adds the form entry - how do I add the form?

System Settings -> Forrms

New line, form type=plugin.
Locate the plugin name and class name.
Save.

Then menu maintenance, locate the new form & add it into the menu.

PS. I only know how to add in a form via the GUI. Dont' know how to create the SQL to add it in!
User avatar
DannyC
Senpai
Senpai
 
Posts: 718
Joined: Fri Mar 22, 2013 12:23 pm
Topics Solved: 31

Re: New tab in General Ledger Categories

Postby Scott.Pearce » Tue Oct 23, 2018 11:26 am

OK , got it.

Now, what's the problem you are having exactly? The plugin compiles for me and the form loads up OK when I double click on it from the menu.
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: New tab in General Ledger Categories

Postby DannyC » Tue Oct 23, 2018 11:37 am

Scott.Pearce wrote:Now, what's the problem you are having exactly? The plugin compiles for me and the form loads up OK when I double click on it from the menu.

Bugger. It errors when I load the form as per above. Compiles OK.

Running the code via Visual Studio shows that on the the line
base.OnRead() it errors with Object reference not set to an instance of an object.
User avatar
DannyC
Senpai
Senpai
 
Posts: 718
Joined: Fri Mar 22, 2013 12:23 pm
Topics Solved: 31

Re: New tab in General Ledger Categories

Postby Scott.Pearce » Tue Oct 23, 2018 11:47 am

You're loading it in a 7.0.157.0 database right?
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: New tab in General Ledger Categories

Postby DannyC » Tue Oct 23, 2018 11:56 am

I am developing in 7.0.175, but it will be installed live in a 7.0.157 database.
Based on your question, I guess it makes a difference?
User avatar
DannyC
Senpai
Senpai
 
Posts: 718
Joined: Fri Mar 22, 2013 12:23 pm
Topics Solved: 31

Re: New tab in General Ledger Categories

Postby Scott.Pearce » Tue Oct 23, 2018 11:57 am

Might do. I tested in a 7.0.157.0 demo database.
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 0 guests