by Mike.Sheen » Thu Jun 22, 2017 5:11 pm
Try this:
C#:
- Code: Select all
var customFieldValue = debtor.CustomFieldValues.get_ItemFromSettingName("CustomFieldName", "PluginName");
System.Diagnostics.Debug.WriteLine(customFieldValue.Contents); // examine value
customFieldValue.Contents = "x"; // set value
VB:
- Code: Select all
Dim customFieldValue as JiwaFinancials.Jiwa.JiwaApplication.CustomFields.CustomFieldValue = debtor.CustomFieldValues.ItemFromSettingName("CustomFieldName", "PluginName")
System.Diagnostics.Debug.WriteLine(customFieldValue.Contents) ' examine value
customFieldValue.Contents = "x" ' set value
replace debtor with the object instance you're using.
The ItemFromSettingName method is overloaded - so you can either provide both the CustomFieldName and PluginName as shown above, or just the CustomFieldName if you're sure no other plugin will have a custom field of the same name.
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