Page 1 of 1

sample code required for custom list maintenance form

PostPosted: Fri Dec 04, 2015 4:45 pm
by perry
Hi,

in later version of Jiwa, JiwaFinancials.Jiwa.JiwaApplication.ListMaintenance.UserInterface(Of xx,x,x) becomes available to us.
I'm just wondering if that means there is an easier way to implement custom list maintenance form similar to Inventory Groups maintenance form.

Also similar to https://forums.jiwa.com.au/viewtopic.php?f=27&t=417 but also editable?

Regards

Re: sample code required for custom list maintenance form  Topic is solved

PostPosted: Sat Dec 05, 2015 12:07 pm
by Mike.Sheen
perry wrote:Hi,

in later version of Jiwa, JiwaFinancials.Jiwa.JiwaApplication.ListMaintenance.UserInterface(Of xx,x,x) becomes available to us.
I'm just wondering if that means there is an easier way to implement custom list maintenance form similar to Inventory Groups maintenance form.

Also similar to https://forums.jiwa.com.au/viewtopic.php?f=27&t=417 but also editable?

Regards


Hi Perry,

I've added a sample plugin which does what you need in the samples and examples forum : Sample Plugin - Editable List Maintenance Form.

Mike

Re: sample code required for custom list maintenance form

PostPosted: Mon Dec 07, 2015 9:36 am
by perry
thanks Mike

*EDIT*
There is a missing step in the readme
I have to open "Forms" form and set "Assembly Full Name" as the plugin, otherwise I get an error when open the form.

Re: sample code required for custom list maintenance form

PostPosted: Mon Dec 07, 2015 10:46 am
by Mike.Sheen
perry wrote:thanks Mike

*EDIT*
There is a missing step in the readme
I have to open "Forms" form and set "Assembly Full Name" as the plugin, otherwise I get an error when open the form.


Hmmm... but that's exactly what this part of the script does:

Code: Select all
IF NOT EXISTS(SELECT TOP 1 * FROM SY_Forms WHERE ClassName = 'Widgets')
   INSERT INTO SY_Forms(ClassName, Description, FormType, HelpFileName, HelpPageName, AssemblyFullName)
   SELECT 'Widgets', 'Widget Sample List Maintenance', 2, '', '',
   (SELECT TOP 1 RecID FROM SY_Plugin WHERE Name = 'Sample Plugin - List Maintenance')
GO


The AssemblyFullName is set to the plugin ID. Did you rename the plugin or something before you ran the script?

Re: sample code required for custom list maintenance form

PostPosted: Mon Dec 07, 2015 11:14 am
by perry
Ops.. I think I executed SQL before I save the plugin.