自動化 - Load grid configuration from file - Grid Data Composition
 Previous | Next | Print 

Tag: GridDataComposition


The GridDataComposition action will apply a previously saved grid configuration file to a grid.

<GridDataComposition FilePath="C:\dev\Temp_XML\mainGridConfig.xml"/>

Tag Attributes

AttributesAttribute ValueValue DescriptionComment
TargetThe corresponding Grid Code
Sets the target grid on which to carry out the action.Not mandatory
If no target is set, the target will default to the main grid (for products containing a main grid).
FilePathUser definableThe folder path that contains the XMLBetween FilePath and InputFilePath, one is mandatory.
InputFilePathUser definableThe entire file path to the XML configuration fileBetween FilePath and InputFilePath, one is mandatory.
ResetUserDefault

YtriaDefault

Will return the grid to the specified default settingNot mandatory
ServerAbbreviated server names (separated by comma)Only applicable in consoleEZ
IndexPositive integerWindow index numberOnly applicable in consoleEZ

Note The two available attributes differ in their validation approach.
Using the example file path C:\Folder\File.xml as an example the following verifications will occur:
  • FilePath will validate if the folder path is correct (i.e. if C:\Folder exists).
  • InputFilePath will validate if the entire file path is correct (i.e. if C:\Folder\File.xml exists).

Example Script


    <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
    <YtriaAutomation Version="1.0" Application="databaseEZ" ApplicationVersion="16.5" Console="true">
      <Load Server="Acme01/ACME" partial="true">
        <Load Database="AutoTest\lm_us_8.nsf" Select="True"/>
        <Load Database="AutoTest\lm_nab_8.nsf" Select="True"/>
        <Load Database="AutoTest\info_s03.nsf" Select="True"/>
        <Load Database="storebackup.ntf" Select="True"/>
      </Load>

      <Execute InputFilePath = "C:\dev\Temp_XML\databaseEZ_secondaryscript.xml"/>

      <GridDataComposition FilePath = "C:\dev\Temp_XML\databaseEZ-grid1.xml"/>

      <GroupBy columnID="CI2"/>
      <GroupBy columnID="CI3"/>

    </ytriaAutomation>

    In the script above, the databases indicated in the Load block will be loaded into the main grid of databaseEZ, and the file "databaseEZ_secondaryscript.xml" will be executed as if the entire contents of the secondary script were included in the Execute line's position.