
SBarnes wrote:Is it possible to increase the size of a custom field above the current 255 character limit by simply altering the table such as for inventory?
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.IJiwaCustomFieldValues HostObject, JiwaFinancials.Jiwa.JiwaApplication.CustomFields.CustomField CustomField, JiwaFinancials.Jiwa.JiwaApplication.CustomFields.CustomFieldValue CustomFieldValue)
{
if (GridObject.ActiveSheet.Cells[Row, Col].CellType is FarPoint.Win.Spread.CellType.TextCellType)
{
FarPoint.Win.Spread.CellType.TextCellType cellType = (FarPoint.Win.Spread.CellType.TextCellType)GridObject.ActiveSheet.Cells[Row, Col].CellType;
cellType.MaxLength = 2000;
}
}


SBarnes wrote:Ok mystery solved so after I got the import data from the customer the problem was actually the details field(Aux3), the only problem with the error about truncation they go it they couldn't tell which field was causing it.


SBarnes wrote:Ok mystery solved so after I got the import data from the customer the problem was actually the details field(Aux3), the only problem with the error about truncation they go it they couldn't tell which field was causing it.



SBarnes wrote:Can I increase the size of Aux3/ Details in inventory to max size without any major issues, and if I can what might need to be done in a plugin to set the length on the control itself.
InventoryForm.DetailsTextBox.MaxLength = 250;
Return to Technical and or Programming
Users browsing this forum: No registered users and 4 guests