﻿<?xml version="1.0" encoding="utf-8"?>
<EXOconfigData format="Rwav" version="2019.4.100.260">
  <Object type="View">
    <Attribute name="Name">SynchronizeAlarmAndEvents</Attribute>
    <Attribute name="Width">389</Attribute>
    <Attribute name="Height">227</Attribute>
    <Attribute name="Zoom">100%</Attribute>
    <Attribute name="ScaleValue">1</Attribute>
    <Attribute name="ServerSideFunctionRPC">accounts.%account%.services.ssf.execute</Attribute>
    <Attribute name="ServerSideJS">return {
  synchronize: async (args, callInfo) =&gt; {
    // Macros work fine in ServerSide code
    return await callInfo.context.legacy.execute('%Controller%.Synchronize');
  }
}</Attribute>
    <Object type="ArgumentsFolder">
      <Attribute name="Name">Arguments</Attribute>
      <Attribute name="Comment">This folder contains all arguments for the view. The arguments can be sent to the view when it is used in run-time.</Attribute>
    </Object>
    <Object type="ElementsFolder">
      <Attribute name="Name">Elements</Attribute>
      <Attribute name="Comment">This folder contains all visual elements for the view.</Attribute>
      <Object type="Button">
        <Attribute name="Name">Synchronize</Attribute>
        <Attribute name="Left">15</Attribute>
        <Attribute name="Top">20</Attribute>
        <Attribute name="Width">120</Attribute>
        <Attribute name="OnManeuver">this.view.call('.synchronize', { }).then((result) =&gt; {
  // result.executedOk returns true/false
  this.view.Result.value(result.executedOk);
});</Attribute>
      </Object>
      <Object type="Text">
        <Attribute name="Name">Result</Attribute>
        <Attribute name="Left">55</Attribute>
        <Attribute name="Top">55</Attribute>
      </Object>
    </Object>
  </Object>
</EXOconfigData>