Plugin Change Spare Shipping Field Labels On Purchase Orders.xml[/attachment]
Nina Tulic wrote:Hi,
Can the spare field labels on the shipping address tab in the purchase order form be renamed?
What is the property name to access the spare label captions?
Thanks
Nina
Hi Nina,
Yes - they can be changed. Those fields are actually columns in a grid control on the form - The grid is called ShippingAddressJiwaGrid, and the column is named "Field" and you're interested in rows 9 through 13.
In a plugin, you can set these field captions by doing something like this in the Setup method of the FormPlugin class:
- Code: Select all
Public Sub Setup(ByVal JiwaForm As JiwaApplication.IJiwaForm, ByVal Plugin As JiwaApplication.Plugin.Plugin) Implements JiwaApplication.IJiwaFormPlugin.Setup
Dim purchaseOrderForm As JiwaPurchaseOrdersUI.MainForm = JiwaForm
With purchaseOrderForm.ShippingAddressJiwaGrid
.GridText("Field", 9) = "aaa"
.GridText("Field", 10) = "bbb"
.GridText("Field", 11) = "ccc"
.GridText("Field", 12) = "ddd"
.GridText("Field", 13) = "eee"
End With
End Sub
Attached is a working sample plugin which incorporates the above.
Mike