MultiListMaintenance UserInterface 7.2.1  Topic is solved

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

MultiListMaintenance UserInterface 7.2.1

Postby perry » Thu Aug 13, 2020 7:06 pm

Hi Guys,

I need some help with custom MultiListMaintenance UI please.

attached 2 plugins
- Plugin Multilist Test (no tab).xml and image attached. I simply created a form in VS, add a panel + jiwa grid
- comes up without tabs
- if I click use custom tab it gives me a blank tab
- resize doesn't work (even I set docking = fill)

- Plugin Multilist Test.xml, I cant remember 100% how I got here. I think I was adding/removing tabs in VS
- it comes up with Object reference error from ReadCustomColumnInfoFromDatabase

sorry if any of these dont make sense, it has been a long night + day upgrading some custom forms to 7.2. (I tried very hard not posting 20 questions here...)
Attachments
Plugin Multilist Test.xml
(42.71 KiB) Downloaded 534 times
Plugin Multilist Test (no tab).xml
(42.49 KiB) Downloaded 924 times
Capture.PNG
Capture.PNG (16.74 KiB) Viewed 5745 times
Perry Ma
S. Programmer
Lonicera Pty Ltd
http://www.lonicera.com.au
perry
Frequent Contributor
Frequent Contributor
 
Posts: 173
Joined: Mon Oct 27, 2008 2:26 pm
Topics Solved: 15

Re: MultiListMaintenance UserInterface 7.2.1

Postby SBarnes » Fri Aug 14, 2020 8:18 am

Hi Perry,

Without looking at your forms in any real detail, I have updated an example of where I had added Gadgets to Jiwa's single list maintenance example to work with Jiwa 7.2.1, this can be found here viewtopic.php?f=26&t=676&p=2335&hilit=gadget#p2335 and produces two tabs that are designed to maintain the tables widgets and gadgets, the script to create the tables is in the documents section of the plugin hopefully this is of some help but the trick to using the multi-list form is the following couple of lines out of the setup method of the form where you call add list with the collections you want to use.

Hopefully this helps.

Code: Select all
   public override void Setup()
   {
      //System.Diagnostics.Debugger.Launch();
   
      this.BusinessLogic = this.Manager.BusinessLogicFactory.CreateBusinessLogic<JiwaFinancials.Jiwa.JiwaApplication.BusinessLogic.MultiListMaintenance>(this);
      this.JiwaTabControl1.Tabs.Clear();
      this.AddList<Widget, WidgetCollection>(this.Manager.CollectionFactory.CreateCollection< WidgetCollection, Widget>(), "Widgets");
      this.AddList<Gadget, GadgetCollection>(this.Manager.CollectionFactory.CreateCollection< GadgetCollection, Gadget>(), "Gadgets");
      AddHandlers();
      SetupForm();
   }

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

Re: MultiListMaintenance UserInterface 7.2.1  Topic is solved

Postby Scott.Pearce » Fri Aug 14, 2020 10:43 am

You don't use VS designer. You use helper functions, such as "AddList" that are part of the form you inherited.

I've (heavily) modified your plugin and attached it here for your perusal. I recommend you try adding category 2 support as an exercise.

Plugin Multilist Test.xml
Modified Multilist Test - Category 1 Support Only
(51.61 KiB) Downloaded 955 times
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: MultiListMaintenance UserInterface 7.2.1

Postby perry » Fri Aug 14, 2020 11:59 am

Thank you both, heading back to the dungeon now and will keep you posted.
Perry Ma
S. Programmer
Lonicera Pty Ltd
http://www.lonicera.com.au
perry
Frequent Contributor
Frequent Contributor
 
Posts: 173
Joined: Mon Oct 27, 2008 2:26 pm
Topics Solved: 15

Re: MultiListMaintenance UserInterface 7.2.1

Postby Scott.Pearce » Fri Aug 14, 2020 12:00 pm

perry wrote:heading back to the dungeon now


You're allowed out of yours?
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: MultiListMaintenance UserInterface 7.2.1

Postby SBarnes » Fri Aug 14, 2020 12:04 pm

Scott don't say anything you could Jinx us and we will be back in lock down as well.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1696
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 191

Re: MultiListMaintenance UserInterface 7.2.1

Postby Mike.Sheen » Fri Aug 14, 2020 12:46 pm

You guys get dungeons?

will_poulter.jpg
will_poulter.jpg (30.2 KiB) Viewed 5735 times
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: MultiListMaintenance UserInterface 7.2.1

Postby perry » Fri Aug 14, 2020 1:19 pm

or else
Attachments
selfie.PNG
selfie.PNG (657.6 KiB) Viewed 5735 times
Perry Ma
S. Programmer
Lonicera Pty Ltd
http://www.lonicera.com.au
perry
Frequent Contributor
Frequent Contributor
 
Posts: 173
Joined: Mon Oct 27, 2008 2:26 pm
Topics Solved: 15

Re: MultiListMaintenance UserInterface 7.2.1

Postby perry » Fri Aug 14, 2020 1:41 pm

Hi Scott,

Thanks, I got it working!
I had to move the UI code to plugin (rather custom DLL), otherwise it looks like attached?
Capture.PNG
Perry Ma
S. Programmer
Lonicera Pty Ltd
http://www.lonicera.com.au
perry
Frequent Contributor
Frequent Contributor
 
Posts: 173
Joined: Mon Oct 27, 2008 2:26 pm
Topics Solved: 15


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 1 guest