Page 1 of 1

MultiListMaintenance UserInterface 7.2.1

PostPosted: Thu Aug 13, 2020 7:06 pm
by perry
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...)

Re: MultiListMaintenance UserInterface 7.2.1

PostPosted: Fri Aug 14, 2020 8:18 am
by SBarnes
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();
   }


Re: MultiListMaintenance UserInterface 7.2.1  Topic is solved

PostPosted: Fri Aug 14, 2020 10:43 am
by Scott.Pearce
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 956 times

Re: MultiListMaintenance UserInterface 7.2.1

PostPosted: Fri Aug 14, 2020 11:59 am
by perry
Thank you both, heading back to the dungeon now and will keep you posted.

Re: MultiListMaintenance UserInterface 7.2.1

PostPosted: Fri Aug 14, 2020 12:00 pm
by Scott.Pearce
perry wrote:heading back to the dungeon now


You're allowed out of yours?

Re: MultiListMaintenance UserInterface 7.2.1

PostPosted: Fri Aug 14, 2020 12:04 pm
by SBarnes
Scott don't say anything you could Jinx us and we will be back in lock down as well.

Re: MultiListMaintenance UserInterface 7.2.1

PostPosted: Fri Aug 14, 2020 12:46 pm
by Mike.Sheen
You guys get dungeons?

will_poulter.jpg
will_poulter.jpg (30.2 KiB) Viewed 5739 times

Re: MultiListMaintenance UserInterface 7.2.1

PostPosted: Fri Aug 14, 2020 1:19 pm
by perry
or else

Re: MultiListMaintenance UserInterface 7.2.1

PostPosted: Fri Aug 14, 2020 1:41 pm
by perry
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