Increase System Settings Size  Topic is solved

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

Increase System Settings Size

Postby SBarnes » Thu Oct 23, 2025 5:00 pm

I have to create an integration with a system that uses an authorisation token that is 859 characters long, :o is there a way to increase the size of a system setting in terms of what the grid allows as the database field is big enough?
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1696
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 191

Re: Increase System Settings Size  Topic is solved

Postby Mike.Sheen » Thu Oct 23, 2025 5:23 pm

In the SystemSettingPlugin class of a plugin, use the FormatCell method to set the MaxLength property of the cell type, eg:

Code: Select all
public void FormatCell(JiwaFinancials.Jiwa.JiwaApplication.IJiwaBusinessLogic BusinessLogicHost, JiwaFinancials.Jiwa.JiwaApplication.Controls.JiwaGrid GridObject, JiwaFinancials.Jiwa.JiwaApplication.IJiwaForm FormObject, int Col, int Row, JiwaFinancials.Jiwa.JiwaApplication.SystemSettings.Setting SystemSetting)
{
   if (SystemSetting.IDKey == "SampleSetting")
   {         
      ((FarPoint.Win.Spread.CellType.TextCellType)GridObject.ActiveSheet.Cells[Row, Col].CellType).MaxLength = 1000;
   }      
}


This will set the max length of the Contents cell in the System Configuration form on a tab captioned the same as the name of the plugin the system setting was defined - NOT the plugin maintenance form where you define the system setting and can enter the Contents also, but you really shouldn't.
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: Increase System Settings Size

Postby SBarnes » Thu Oct 23, 2025 5:32 pm

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 1 guest