It is possible to customize some of the Produmex WMS queries through the use of the views.
Picklist proposal manager screen
Controller: 5.1.3.60. Picklist proposal manager screen controller
Standard view name
Stock allocation screen
Controller: 5.1.3.59. Stock allocation controller
Standard view name
Route planning
Controller: 5.1.3.52. Route controller
Standard view name
Open documents report
Controller: 5.1.3.66. Open documents screen controller
Standard view name
Open sales order form
Controller: 5.1.3.42. Open Sales Orders Controller
Standard view name
Note: It is recommended to use the Form Setting tool for disabling a column or for changing the order of columns because making these changes in the view might cause issues with the query.
Example: stock allocation screen- customer
The ‘View name’ field is filled with the standard view by default.
To customize the grid, make a copy of the standard view and adjust it. Do not adjust the standard view, because it will be overwritten during a version update.
Note: When adding columns always paste the new columns after the default columns. The order of the columns can be changed later on with the Form Setting tool.
In the example we added a new column with the source table.
Copy the new view name and paste it to the ‘View name’ field, then save it. Always restart the add-on after a parameter change.
To customize the sorting of the grid, change the clause in the ‘Order by’ field.
The order by clause will be included at the end of the query using the view. It can contain any column referenced by the view.
Note: When using SAP HANA, column names are case sensitive. Don’t forget the quotation marks when they are needed.
After adding the clause save it. Always restart the add-on after a parameter change.
Open the ‘Form Setting’ window and go to the ‘Table Format’ tab.
To change the order of the grid, click on and hold a ‘Column’ field then drag and place it to the desired position. After saving it, the grid will be displayed with the newly set order.
To disable a column, disable the ‘Visible’ box next to the ‘Column’ field. After saving it, the disabled column will not be visible in the grid.
Please note: The customizations made by the Form Settings tool will affect only the user. To hide a column from every user, use the localization file. Please see: 7.3.3. Hide column
When adding a custom view without a translation file, the system will take the column name from the view.
To change the column name or to support more than one language, create a new custom translation file from the standard ‘ImportLocalizationKeys.xml’ translation file. The standard translation file can be found under the ‘Localization’ folder in the install zip.
Open the file with a text editor and find the Localization Key of the view. The Localization Key can be seen on the controller of the view.
Copy the node within <PmxLocalizationKey> and paste it to a new file. Make sure that you added the root tags.
<?xml version="1.0" encoding="UTF-8"?> <TestRoot> </TestRoot>
The node within <PmxLocalizationProperty> contains the translation of one column. Copy the node of any column and paste it right after the <LocalizationProperties> tag or after any </PmxLocalizationProperty> tag.
Change the column number in Columns[number of the column].Title/Header Text after <LocalizationProperty>. The new column number must be one more than the existing highest column number.
The node within <PmxLocalizationValue> contains the localization value of a language.
The <LanguageCode> defines the language. You can find the languages and language codes on the OLNG table. Add the column title as the <LocalizationValue> to the node containing the corresponding <LanguageCode>. It is not mandatory to keep the localization values of every language. You can delete the <PmxLocalizationValue> nodes containing the code of languages not required.Save the file in xml format.
Example:
<?xml version="1.0" encoding="UTF-8"?> <TestRoot> <PmxLocalizationKey> <Canceled>False</Canceled> <LocalizationKey>Logex.AddOn.RoutePlanningControl.GrdPicklistsWithoutRoute</LocalizationKey> <ApplicationTypeCode>SBOGUIAP</ApplicationTypeCode> <LocalizationProperties> <PmxLocalizationProperty> <Canceled>False</Canceled> <LocalizationProperty>Columns[1].HeaderText</LocalizationProperty> <ExtensionCode>CONVSTR</ExtensionCode> <LocalizationValues> <PmxLocalizationValue> <Canceled>False</Canceled> <LocalizationValue>Type</LocalizationValue> <LanguageCode>3</LanguageCode> </PmxLocalizationValue> <PmxLocalizationValue> <Canceled>False</Canceled> <LocalizationValue>Type</LocalizationValue> <LanguageCode>16</LanguageCode> </PmxLocalizationValue> </LocalizationValues> </PmxLocalizationProperty> </LocalizationProperties> </PmxLocalizationKey> </TestRoot>
It is also possible to change the title of a standard column. Find the column based on the column number then simply rewrite the text after the <LocalizationValue> tag in the node with the corresponding <LanguageCode>.
To hide a column from every user, add a new <PmxLocalizationProperty> node in the same way as described above. Change the <ExtensionCode> to ‘CONVBOOL’.
As the <LocalizationProperty> add Columns[number of the column].Visible. Add ‘False’ as the <LocalizationValue> to the node with the respective <LanguageCode>.
When using multiple languages, create a <PmxLocalizationValue> node for every used language.
Example:
<?xml version="1.0" encoding="UTF-8"?> <TestRoot> <PmxLocalizationKey> <Canceled>False</Canceled> <LocalizationKey>Logex.AddOn.RoutePlanningControl.GrdPicklistsWithoutRoute</LocalizationKey> <ApplicationTypeCode>SBOGUIAP</ApplicationTypeCode> <LocalizationProperties> <PmxLocalizationProperty> <Canceled>False</Canceled> <LocalizationProperty>Columns[13].Visible</LocalizationProperty> <ExtensionCode>CONVBOOL</ExtensionCode> <LocalizationValues> <PmxLocalizationValue> <Canceled>False</Canceled> <LocalizationValue>False</LocalizationValue> <LanguageCode>3</LanguageCode> </PmxLocalizationValue> <PmxLocalizationValue> <Canceled>False</Canceled> <LocalizationValue>False</LocalizationValue> <LanguageCode>16</LanguageCode> </PmxLocalizationValue> </LocalizationValues> </PmxLocalizationProperty> </LocalizationProperties> </PmxLocalizationKey> </TestRoot>
Use the Produmex Import Tool to import the translation file. See section 1.2.5. Import translation file.