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