Custom Form Permissions  Topic is solved

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

Custom Form Permissions

Postby SBarnes » Thu Mar 19, 2026 12:37 pm

If you have added a custom maintenance form to Jiwa what tables would you need to add data to make it possible for it to appear in the permissions tab in user group maintenance?
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1696
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 191

Re: Custom Form Permissions  Topic is solved

Postby Mike.Sheen » Thu Mar 19, 2026 4:00 pm

SBarnes wrote:If you have added a custom maintenance form to Jiwa what tables would you need to add data to make it possible for it to appear in the permissions tab in user group maintenance?


That would be the SY_FormsAbstractPermissions - two entries are required, one for 'Load' and one for 'Edit'.

The POS plugin that is in demo data has a SQL Script attached for deployment which you can use as a template:

Code: Select all
IF NOT EXISTS(SELECT TOP 1 * FROM SY_Forms WHERE ClassName = 'JiwaFinancials.Jiwa.JiwaPOSUI.POSForm')
   INSERT INTO SY_Forms(ClassName, Description, FormType, HelpFileName, HelpPageName, AssemblyFullName)
   SELECT 'JiwaFinancials.Jiwa.JiwaPOSUI.POSForm', 'POS', 2, '', 'https://wiki.jiwa.com.au/index.php/POS_Plugin',
   (SELECT TOP 1 RecID FROM SY_Plugin WHERE Name = 'POS')
GO

IF NOT EXISTS(SELECT TOP 1 * FROM SY_FormsAbstractPermissions WHERE SY_Forms_ClassName = 'JiwaFinancials.Jiwa.JiwaPOSUI.POSForm' AND Name = 'Load')
   INSERT INTO SY_FormsAbstractPermissions(RecID, SY_Forms_ClassName, Name, Description, ItemNo)
   SELECT NEWID(), 'JiwaFinancials.Jiwa.JiwaPOSUI.POSForm', 'Load', 'Load of the form', (SELECT COALESCE(MAX(ItemNo), 0) + 1 FROM SY_FormsAbstractPermissions WHERE SY_Forms_ClassName = 'JiwaFinancials.Jiwa.JiwaPOSUI.POSForm')
GO

IF NOT EXISTS(SELECT TOP 1 * FROM SY_FormsAbstractPermissions WHERE SY_Forms_ClassName = 'JiwaFinancials.Jiwa.JiwaPOSUI.POSForm' AND Name = 'Edit')
   INSERT INTO SY_FormsAbstractPermissions(RecID, SY_Forms_ClassName, Name, Description, ItemNo)
   SELECT NEWID(), 'JiwaFinancials.Jiwa.JiwaPOSUI.POSForm', 'Edit', 'Edit of the form', (SELECT COALESCE(MAX(ItemNo), 0) + 1 FROM SY_FormsAbstractPermissions WHERE SY_Forms_ClassName = 'JiwaFinancials.Jiwa.JiwaPOSUI.POSForm')
GO
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: Custom Form Permissions

Postby SBarnes » Fri Mar 20, 2026 7:43 am

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


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 4 guests