XML Import/Export(Display settings/Custom menu/Style/Palette)

Steps

XML import and export

Import/export GUI settings with XML text file.
Display settings or custom menu cannot be saved in Asprova MES, so you can save them by import/export. (Ver.9 restricted features)

Import/Export the palette settings as XML format. (Ver.11.0.0 restricted feature)

Import/export objects are listed as follows.

Style

Table

Chart

Integrated master editor

Operation instruction

Dispatching view

HTML view

Graphic master

Purchase master(Used only in Asprova SCP)

Custom Menu

Palette


When import custom menu, Asprova internal custom menu will be broken and be replaced with imported custom menu.

Same code style will not be added duplicate when importing style file, but the content of the style will be updated.
The style that was displayed when the file was imported continues to be displayed without change, but the imported contents are reflected in the style table. Reselecting the style applies the settings to the display.

When import the palette, if there is no palette with same name, new palette is added.
Same code style will not be added duplicate when importing style file, but the content of the style will be updated. If there is a palette with same name, it will popup a message box to overwrite the display color or not.
If you want to overwrite the display color, please click "OK".


Import/export from menu

File menu

Scheduling parameters, custom menu, style or palette can be exported as XML format from the sub menu of main menu "File/XML export".


All styles will be exported after clicking "Style".
The custom menu defined by user will be exported after clicking "Custom Menu"
The palette will be exported after clicking "Palette export".

Saving file dialog is displayed after selecting the menu, specify the filename and path and then it will be exported.

 

Selecting file dialog will be displayed after selecting main menu "File/XML Import".
The styles or custom menu in selected XML file will be imported into current project and refresh after selecting the XML file.


Left part popup menu in the style table.

Select the "XML Export" from the left part popup menu in the style table. Selected style can be exported in XML format.
Specify the filename and path as above, then export the style.

 

Select the "XML Import" from the left part popup menu in the style table. Selecting file dialog will be displayed.
Selected a XML file and the style in the XML file will be imported into current project.Then refresh it.


Style setting menu

"XML Export" can be get from "Style Settings" submenu in left part popup menu of table or chart.
Select specified style and export it in XML format. Specify the filename and path, then export it.

 


Palette setting menu

The palette can be exported as XML after clicking sub menu "View" - "Palette setting" - "Export Palette as XML".
Select the palette name and export it as XML. Specify the filename and path, then export it.

 


Export display settings when save project/Import it when load project

Style/Custom Menu can be exported in XML format when save project.

The folder of import/export XML file can be specified in in "Style XML file folder path" property in "Settings" tab in the workspace settings dialog.

 

The file name is defined as follows rules.

 asstyle.xml In case of local protector
 asstyle_<User name>.xml In case of NLS/DS, if the login user name is MS, the file name will be asstyle_MS.xml.

!!!DELETE!!!


A dialog with "Export displayed settings" option will be poped up when exits Asprova. Check the option, then style and custom menu are exported in XML format. This option is checked on default in Asprova MES module, but not checked on default in other modules.

 

If asstyle.xml (asstyle_<User name>.xml for NLS) existed when open Asprova project file, the file will be imported. If the file name is changed, it will be ignored.

Custom menu is refreshed based on the saved XML file content.
If there is palette information in an XML file, and it is same with the selected palette. The display color is refreshed in the XML file forcibly.


Importing and exporting of styles including user registered expressions in XML format (Ver.12.0.1.0 and later)

If a style containing expressions that have been saved with a name, such as sort key or the like, is exported to an XML file, the style including the names can be imported.
Scheduling parameters that include expressions created in a project can be restored in another project, too.


If the same expression code already exists, importing it will display the following message in a message window. ( After Ver.12.0.2 )

User registered expression <ME.Res_Skill1> with the code <TestSort01> was included in the import object, but there is already a user registered expression with the same code, so the code was change to <TestSort01 (2)> before importing.

You can jump from a message detail dialog to the expression table to view both expressions.

To change a code or the like, you can do it from here.

 

If the same expression already exists, importing it will display the following message in a message window. ( After Ver.12.0.2 )

Since the user registered expression <ME.Res_Color> was imported not with the registered code <TestSort01> but with <TestSort11>, the user registered expression code was changed to <TestSort11>.

You can jump from a message detail dialog to the expression table to view the imported expression.

To change a code or the like, you can do it from here.

 

When use Asprova DS

When use Asprova DS, style/custom menu XML file can be uploaded into DS.

* Asprova DS/NLS must be over Ver.1.0.0.24

A dialog with "Export display settings" is poped up when exit Asprova. Check the option, then both style and custom menu will be uploaded into DS. This option is checked on default in Asprova MES module, but not checked on default in other modules. XML file is exported into the project folder.
Exporting display settings will take no effect for other users, so there is no information dialog to inform other users.

 

Display settings XML file is also downloaded too if it was uploaded before when download latest version from Asprova DS.
If there is no XML file in Asprova DS, but there is XML file in the project folder, the XML file will be imported.

XML file downloaded from DS is saved in project folder.
If there is a file with the same file name, it will be overridden.

In case of off line, such as DS connection failure, just use the data in project folder and so on, XML file in project folder will be imported.


Tags

Style

< Asprova >

<WBSAlias Code="ChartWindowStyle">

<ASGWindowStyles_Style Code="SAMPLE">

<ASGWindowProps_ShowInMenu>0</ASGWindowProps_ShowInMenu>

<ASGWindowProps_WindowStyles>InventoryGraph</ASGWindowProps_WindowStyles>

<Object_ClassDef>ChartWindowStyle</Object_ClassDef>

.

.

.

<ViewProps Code="TableTimeChartProps" Column="1" Row="1">

<ASGGridViewProps_Zoom>70</ASGGridViewProps_Zoom>

.

.

.

<ASGTimeChartProps_DayOfWeekVisible>1;1;1;1;1;1;1</ASGTimeChartProps_DayOfWeekVisible>

.

.

.

</ViewProps>

<ASGWindowProps_PrintProps Code="PrintProps">

< ASGPrintProps_ZoomMethod >PrintZoomPercent< /ASGPrintProps_ZoomMethod >

.

.

.

< /ASGWindowProps_PrintProps >

< /ASGWindowStyles_Style >

< /WBSAlias >

< /Asprova >


Custom Menu

< Asprova >

< WBSAlias Code = "CustomMenu" >

< Child Code = "aps" >

< Child Code = "CustomMenu" >

.

.Menu command object and properties

.

< /Child >

< Child Code = "UserMenu" >

.

.User specified menu object and properties

.

< /Child >

< /Child >

< /WBSAlias >

< /Asprova >


Palette

<Asprova>

<WBSAlias Code="Palette">

<Child Code="User_PaletteName">

.

.Palette object and properties

.

</Child>

</WBSAlias>

</Asprova>



HelpNo.:743190
© Since 2018 Asprova Corporation, All rights reserved.