Purchase Order Shipping Address Spare Fields  Topic is solved

Discussions relating to Jiwa 7 plugin development, and the Jiwa 7 API.

Purchase Order Shipping Address Spare Fields

Postby Nina Tulic » Wed Jul 15, 2015 1:02 pm

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
Nina Tulic
Occasional Contributor
Occasional Contributor
 
Posts: 35
Joined: Fri Feb 14, 2014 11:03 am
Topics Solved: 0

Re: Purchase Order Shipping Address Spare Fields  Topic is solved

Postby Mike.Sheen » Wed Jul 15, 2015 7:45 pm

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
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
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807

Re: Purchase Order Shipping Address Spare Fields

Postby Nina Tulic » Thu Jul 16, 2015 10:04 am

Thanks Mike,

Greatly appreciated.

Nina
Nina Tulic
Occasional Contributor
Occasional Contributor
 
Posts: 35
Joined: Fri Feb 14, 2014 11:03 am
Topics Solved: 0

Re: Purchase Order Shipping Address Spare Fields

Postby Scott.Pearce » Thu Jul 16, 2015 10:24 am

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
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 765
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 230

Re: Purchase Order Shipping Address Spare Fields

Postby Nina Tulic » Thu Jul 16, 2015 10:48 am

Thanks for the tip Scott really handy.

Nina
Nina Tulic
Occasional Contributor
Occasional Contributor
 
Posts: 35
Joined: Fri Feb 14, 2014 11:03 am
Topics Solved: 0


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 2 guests