Page 1 of 1

Purchase Order Shipping Address Spare Fields

PostPosted: Wed Jul 15, 2015 1:02 pm
by Nina Tulic
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

Re: Purchase Order Shipping Address Spare Fields  Topic is solved

PostPosted: Wed Jul 15, 2015 7:45 pm
by Mike.Sheen
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.
Plugin Change Spare Shipping Field Labels On Purchase Orders.xml
Sample Plugin
(33.05 KiB) Downloaded 852 times

Mike

Re: Purchase Order Shipping Address Spare Fields

PostPosted: Thu Jul 16, 2015 10:04 am
by Nina Tulic
Thanks Mike,

Greatly appreciated.

Nina

Re: Purchase Order Shipping Address Spare Fields

PostPosted: Thu Jul 16, 2015 10:24 am
by Scott.Pearce
FYI - You can see the names of controls on a form by opening the form and going to "Set Permissions" on the "Utilities" ribbon tab. Then, clicking on any control on the form reveals the name of the control in the "Currently Selected Item" field on the "Set Permissions" window.

DiscoveringControlNames.png
Discovering Control Names

Re: Purchase Order Shipping Address Spare Fields

PostPosted: Thu Jul 16, 2015 10:48 am
by Nina Tulic
Thanks for the tip Scott really handy.

Nina