How to change the Reference field name in Sales Order Form?

Samples and Examples of using the Jiwa 7 framework - including plugins, stand-alone applications and scripts.

How to change the Reference field name in Sales Order Form?

Postby renes » Tue Mar 11, 2014 10:27 am

How to change the Reference field name in Sales Order Form?
Postby renes » Mon Mar 10, 2014 12:25 pm

To change a Reference field name into a different name a plugin needs to be created.
To do this follow the steps below:
1. Create a new plugin and name it accordingly (eg. Sales Order Reference Field)
2. Update the Version field with the Jiwa Version that you used when you created the plugin
3. Click the 'Forms' tab
4. Click the 'Class Name' lookup button and select the forms where you want the change to be reflected (eg. Sales Orders, Back to Back Sales Orders)
5. Click the 'Code' tab
6. Scroll down to the 'Public Class FormPlugin' section and look for the 'Public Sub Setup (ByVal ....) section
7. Copy and paste the following code in between of Public Sub Setup and End Sub

Dim salesOrderForm As JiwaFinancials.Jiwa.JiwaSalesUI.SalesOrder.BaseSalesOrderEntryForm = DirectCast(JiwaForm, JiwaFinancials.Jiwa.JiwaSalesUI.SalesOrder.BaseSalesOrderEntryForm)
salesOrderForm.lblReference.Text = "Ref."

8. Change "Ref." into any name you want to appear on the form
9. Click the compile button
10. Click save
11. Restart Jiwa
renes
Occasional Contributor
Occasional Contributor
 
Posts: 11
Joined: Tue Jan 28, 2014 3:29 pm
Topics Solved: 2

Return to Samples and Examples

Who is online

Users browsing this forum: No registered users and 3 guests

cron