Make Custom Field invisible in Sales Order Custom tab

Posted:
Tue Jul 05, 2022 2:05 am
by Microsharp
Hi Mike/Scott,
Can you please give us advice on making the custom field invisible in Sales Order Custom tab?
Re: Make Custom Field invisible in Sales Order Custom tab 

Posted:
Tue Jul 05, 2022 7:48 am
by SBarnes
Although I haven't tested this the following code in the Format Cell method of the custom field plugin should do what you want.
- 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.IJiwaCustomFieldValues HostObject, JiwaFinancials.Jiwa.JiwaApplication.CustomFields.CustomField CustomField, JiwaFinancials.Jiwa.JiwaApplication.CustomFields.CustomFieldValue CustomFieldValue)
{
if ( CustomField.PluginCustomField.Name == "MYCUSTOMFIELDNAME")
{
GridObject.ActiveSheet.Rows[Row].Visible = false;
}
}
Re: Make Custom Field invisible in Sales Order Custom tab

Posted:
Tue Jul 05, 2022 12:57 pm
by Microsharp
works like a charm, thanks Stuart