Improvements in Beacon ads and pages import in 2.2

Build 1501 on 14/Nov/2017  This topic last edited on: 24/Oct/2016, at 14:37

Since version 2.2 there is the new data source file in GN4Config.zip: Data/GN4/dataSrcFiles_Beacon.xml and the new data source template Data/GN4/dataSrcTemplate_Beacon.xml and the new Workflow (called by datasource file) Config/Global/wf_beacon.xml.

The workflow Config/Global/wf_beacon.xml on the Back4 server parses the Beacon file and creates (if doesn't exists) or modifies an edition by adding/modify pages/layers/ads. The new edition takes the geometries from the default values in the editorial config.

The input XML needs all old required nodes and new nodes to define the edition to create or modify: this is a sample:

<beacon_export>

  <product>

   <data>

      <product_title_name>Globe</product_title_name>

      <cover_date value="42140">2015-07-16</cover_date>

      <product_name>HF</product_name>

    </data>

    ...

  <product>

beacon_export>

To import the Beacon edition, you have to set the Import options parameters. If you are performing the manual import, you can view/edit the options in the dialog box. If you are performing the automatic import, you need to define "adParams" parameter in the data source.

If empty, the Import options are set as:

      AdMode = 0;

      SectionMode = 0;

      AssignMaster = false;

      AssignWorkstate = false;

      DefaultWorkstate = string.Empty;

      GeometryId = DBDesc.InvalidId;

      Extension = string.Empty;

      AddHMargin = false;

      AddVMargin = false;

      BorderFS = 0;

      GeometryId = DBDesc.InvalidId;

      Quiet = false;

      HRuleDist = 0;

      HRuleFS = 0;

      HRuleGrid = 0;

      VRuleDist = 0;

      VRuleFS = 0;

      VRuleGrid = 0;

      RuleOutside = false;

      ClipDouble = false;

      DropDistance = 1;

The syntax to set the option values is a namevaluecollection string: "Name1:value1;Name2:value2;..."

To create this string for the dataSource in an easy way, use the import options dialog box in Fred4 and then click the new button "Show Options as Back4 string parameter": it shows the current import options coded as string parameter to enter in the dataSource.

See Importing plans from Beacon for details.