V 8
2
LANG:0 15 IS-Archivgruppe
LANG:1 15 IS-Archivegroup
PANEL,34 47 612 400 N "_3DFace" 0
"main()
{
  int        i,j,akt=0,sync,pos=0,month=0,day=0,hour=0,minute=0,period,
             AgTransferMode=1,AgTransferPeriod=3600,
             AgTransferTriggerSourceTime=1,
             AgTransferDelay=5,AgThreadNumber=-1;
  time       AgTransferSyncTime=getCurrentTime();
  bool       AgActive=false;
  string     Ag=\"\",AgName,AgDbName=\"\",AgTableName=\"\",AgTransferTriggerDPE,
             AgTransferTriggerConditionOperator=\"==\",
             AgTransferTriggerConditionValue=\"1\",
             TransferPeriod,SyncTime,
             activate,s;
  langString AgDescription;
  dyn_string agnames,AgItems,ds,tabs,
             _IS_Db=dpNames(\"*\",\"_IS_Database\"),
             _IS_Table=dpNames(\"*\",\"_IS_Table\"),
             _IS_Ag=dpNames(\"*\",\"_IS_ArchiveGroup\");
  
  string st;

  if (!_WIN32)
  {
    st=getCurrentTime();
    DebugN(\"IS::: \"+st+\" Error: Information Server runs only under Windows NT !\");
    RootPanelOn(\"vision/MessageWarning\",
      getCatStr(\"para\",\"warning\"),
      makeDynString(\"IS::: \"+st+\"\\nError: Information Server runs only under Windows NT !\"));
    return;
  }

  for (i=1;i<=dynlen(_IS_Db);i++) _IS_Db[i]=dpSubStr(_IS_Db[i],DPSUB_DP);
  for (i=1;i<=dynlen(_IS_Table);i++) _IS_Table[i]=dpSubStr(_IS_Table[i],DPSUB_DP);
  for (i=1;i<=dynlen(_IS_Ag);i++)
  {
    agnames[i]=\"\";
    dpGet(_IS_Ag[i]+\".AgName:_original.._value\",agnames[i]);
    _IS_Ag[i]=dpSubStr(_IS_Ag[i],DPSUB_DP);
  }

  if (dynlen(_IS_Ag)<1) _IS_Ag[1]=Ag;
  addGlobal(\"ISTableGlobal\",STRING_VAR);
  addGlobal(\"ISDbGlobal\",STRING_VAR);
  addGlobal(\"ISAgGlobal\",STRING_VAR);
  addGlobal(\"ISActiveRegisterGlobal\",INT_VAR);
  
  akt=dynContains(agnames,ISAgGlobal);
  if (akt<1)
  {
    if(dynlen(agnames)>0)
    {
      akt=1;
      ISAgGlobal=agnames[1];
    }
    else
      ISAgGlobal==\"\";
  }
  else
    ISAgGlobal=agnames[akt];
    
  if (akt>0)
  {
    dpGet(_IS_Ag[akt]+\".AgDbName:_original.._value\",AgDbName,
          _IS_Ag[akt]+\".AgTableName:_original.._value\",AgTableName,
          _IS_Ag[akt]+\".AgDescription:_original.._value\",AgDescription,
          _IS_Ag[akt]+\".AgTransfer.Mode:_original.._value\",AgTransferMode,
          _IS_Ag[akt]+\".AgTransfer.Period:_original.._value\",AgTransferPeriod,
          _IS_Ag[akt]+\".AgTransfer.SyncTime:_original.._value\",AgTransferSyncTime,
          _IS_Ag[akt]+\".AgTransfer.TriggerDPE:_original.._value\",AgTransferTriggerDPE,
          _IS_Ag[akt]+\".AgTransfer.TriggerConditionOperator:_original.._value\",AgTransferTriggerConditionOperator,
          _IS_Ag[akt]+\".AgTransfer.TriggerConditionValue:_original.._value\",AgTransferTriggerConditionValue,
          _IS_Ag[akt]+\".AgTransfer.TriggerSourceTime:_original.._value\",AgTransferTriggerSourceTime,
          _IS_Ag[akt]+\".AgTransfer.Delay:_original.._value\",AgTransferDelay,
          _IS_Ag[akt]+\".AgActive:_original.._value\",AgActive,
          _IS_Ag[akt]+\".AgThreadNumber:_original.._value\",AgThreadNumber,
          _IS_Ag[akt]+\".AgItems:_original.._value\",AgItems);
    if (AgTransferTriggerConditionOperator==\"\") AgTransferTriggerConditionOperator=\"==\";
    if (AgTransferMode==1)
    {
      IS_PeriodToDetails(AgTransferPeriod,AgTransferSyncTime,
                         pos,month,day,hour,minute);
      setMultiValue(\"period\",\"selectedPos\",pos,
                    \"month\",\"text\",(month>0)?month:1,
                    \"day\",\"text\",(day>0)?day:1,
                    \"hour\",\"text\",(hour>0)?hour:1,
                    \"minute\",\"text\",minute,
                    \"month\",\"visible\",(pos>10),
                    \"day\",\"visible\",(pos>9),
                    \"hour\",\"visible\",(pos>5),
                    \"minute\",\"visible\",(pos>0),
                    \"month_txt\",\"visible\",(pos>10),
                    \"day_txt\",\"visible\",(pos>9),
                    \"hour_txt\",\"visible\",(pos>5),
                    \"minute_txt\",\"visible\",(pos>0));
    }
  }
  ISDbGlobal=\"\";
  if (dynlen(_IS_Db)>0) ISDbGlobal=_IS_Db[1];
  if (AgDbName!=\"\" && dynContains(_IS_Db,AgDbName)>0) ISDbGlobal=AgDbName;
  if (ISDbGlobal!=\"\")
  {
    tabs=makeDynString();
    j=0;
    for (i=1;i<=dynlen(_IS_Table);i++)
    {
      s=_IS_Table[i];
      strreplace(s,ISDbGlobal+\"_\",\"\");
      if (s!=_IS_Table[i])
      {
        j++; tabs[j]=s;
      }
    }
  }

  ds=AgDescription;
  if (!AgActive || AgThreadNumber<0)
    activate=getCatStr(\"IS\",\"activate\");
  else
    activate=getCatStr(\"IS\",\"deactivate\");

  setMultiValue(\"Ag\",\"text\",ISAgGlobal,
                \"Ag\",\"items\",agnames,
                \"agdps\",\"items\",_IS_Ag,
                \"AgDbName\",\"text\",AgDbName,
                \"AgDbName\",\"items\",_IS_Db,
                \"AgTableName\",\"text\",AgTableName,
                \"AgTableName\",\"items\",tabs,
                \"AgDescription\",\"text\",AgDescription,
                \"langtextliste\",\"items\",ds,
                \"AgTransferMode\",\"selectedPos\",AgTransferMode,
                \"AgTransferPeriod\",\"text\",AgTransferPeriod,
                \"AgTransferSyncTime\",\"text\",AgTransferSyncTime,
                \"AgTransferTriggerDPE\",\"text\",AgTransferTriggerDPE,
                \"AgTransferTriggerConditionOperator\",\"text\",AgTransferTriggerConditionOperator,
                \"AgTransferTriggerConditionValue\",\"text\",AgTransferTriggerConditionValue,
                \"AgTransferTriggerSourceTime\",\"selectedPos\",AgTransferTriggerSourceTime,
                \"AgTransferPeriodSourceTime\",\"selectedPos\",AgTransferTriggerSourceTime,
                \"AgTransferDelay\",\"text\",AgTransferDelay,
                \"AgItems\",\"items\",AgItems,
                \"period\",\"visible\",(AgTransferMode==1),
                \"AgTransferTriggerDPE\",\"visible\",(AgTransferMode==2),
                \"TriggerDPE\",\"visible\",(AgTransferMode==2),
                \"AgTransferTriggerConditionOperator\",\"visible\",(AgTransferMode==2),
                \"AgTransferTriggerConditionValue\",\"visible\",(AgTransferMode==2),
                \"AgTransferTriggerSourceTime\",\"visible\",(AgTransferMode==2),
                \"AgTransferPeriodSourceTime\",\"visible\",(AgTransferMode==1),
                \"AgTransferDelay\",\"visible\",(AgTransferMode==1),
                \"AgTransferPeriod_txt\",\"visible\",(AgTransferMode==1),
                \"AgTransferSyncTime_txt\",\"visible\",(AgTransferMode==1),
                \"AgTransferTriggerDPE_txt\",\"visible\",(AgTransferMode==2),
                \"AgTransferTriggerConditionOperator_txt\",\"visible\",(AgTransferMode==2),
                \"AgTransferTriggerConditionValue_txt\",\"visible\",(AgTransferMode==2),
                \"AgTransferTriggerSourceTime_txt\",\"visible\",(AgTransferMode<3),
                \"AgTransferDelay_txt\",\"visible\",(AgTransferMode==1),
                \"sec_txt\",\"visible\",(AgTransferMode==1),
                \"activate\",\"text\",activate,
                \"change\",\"text\",0);
}
" 0
 E E E E 1 -1 -1 0  10 10
""
NC
DISPLAY_LAYER, 1 1 1 1 1 1 1 1
LAYER, 0 
2
LANG:0 0 
LANG:1 0 
6 0
""
""
10 20 E E E 1 E 1 E N "_Window" E N "_3DFace" E E
 E EE E 0 0 0 0 1 E 1 0 1.14285714285714 1 68.1428571428572 0 E 10 20 600 90
6 1
""
""
10 20 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E EE E 0 0 0 0 1 E 1 0 1.14285714285714 0 67.1428571428572 0 E 10 20 600 90
2 2
""
""
20 -120 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E EE E 0 0 0 0 1 E U  0 E 0 0 0 "s" 0 0 0 0 0 0  20 50 2
2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
2
LANG:0 8  Archiv-
LANG:1 8  Archive
2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
2
LANG:0 8  Gruppe:
LANG:1 7  group:
2 4
""
""
-479.823449524671 39 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E EE E 0 0 0 0 1 E U  0 E 0 0 0 "s" 0 0 0 0 0 0  20 108 1
2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
2
LANG:0 9  DB-Name:
LANG:1 9  DB name:
2 18
""
""
10 -170 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E EE E 0 0 0 0 1 E U  1 E 0 0 0 "s" 0 0 0 0 0 0  10 10 1
2
LANG:0 68 -microsoft windows-arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 68 -microsoft windows-arial-bold-r-normal-*-*-120-100-100-*-*-iso8859-1
0
2
LANG:0 28  Archivgruppeneinstellungen 
LANG:1 24  Archive group settings 
22 25
"Ag"
""
110 50 E E E 1 E 1 E N [0,0,0] E N "_Window" E E
 E E2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
 110 50 290 79
0

E
"main()
{
  int        i,akt=0,pos=0,month=0,day=0,hour=0,minute=0,
             AgTransferMode,AgTransferPeriod,
             AgTransferTriggerSourceTime,
             AgTransferDelay,AgThreadNumber;
  time       AgTransferSyncTime;
  bool       AgActive=false;
  string     Ag=\"\",AgDbName,AgTableName,AgTransferTriggerDPE,
             AgTransferTriggerConditionOperator,
             AgTransferTriggerConditionValue,
             activate;
  langString AgName,AgDescription;
  dyn_string AgItems,ags,dbs,tabs,ds,agnames;
  
  getMultiValue(\"\",\"text\",ISAgGlobal,
                \"\",\"items\",agnames,
                \"agdps\",\"items\",ags);
  akt=dynContains(agnames,ISAgGlobal);

  dpGet(ags[akt]+\".AgDbName:_original.._value\",AgDbName,
        ags[akt]+\".AgTableName:_original.._value\",AgTableName,
        ags[akt]+\".AgDescription:_original.._value\",AgDescription,
        ags[akt]+\".AgTransfer.Mode:_original.._value\",AgTransferMode,
        ags[akt]+\".AgTransfer.Period:_original.._value\",AgTransferPeriod,
        ags[akt]+\".AgTransfer.SyncTime:_original.._value\",AgTransferSyncTime,
        ags[akt]+\".AgTransfer.TriggerDPE:_original.._value\",AgTransferTriggerDPE,
        ags[akt]+\".AgTransfer.TriggerConditionOperator:_original.._value\",AgTransferTriggerConditionOperator,
        ags[akt]+\".AgTransfer.TriggerConditionValue:_original.._value\",AgTransferTriggerConditionValue,
        ags[akt]+\".AgTransfer.TriggerSourceTime:_original.._value\",AgTransferTriggerSourceTime,
        ags[akt]+\".AgTransfer.Delay:_original.._value\",AgTransferDelay,
        ags[akt]+\".AgActive:_original.._value\",AgActive,
        ags[akt]+\".AgThreadNumber:_original.._value\",AgThreadNumber,
        ags[akt]+\".AgItems:_original.._value\",AgItems);
  if (AgTransferTriggerConditionOperator==\"\") AgTransferTriggerConditionOperator=\"==\";
  if (AgTransferMode==1)
  {
    IS_PeriodToDetails(AgTransferPeriod,AgTransferSyncTime,
                       pos,month,day,hour,minute);
    setMultiValue(\"period\",\"selectedPos\",pos,
                  \"month\",\"text\",(month>0)?month:1,
                  \"day\",\"text\",(day>0)?day:1,
                  \"hour\",\"text\",(hour>0)?hour:1,
                  \"minute\",\"text\",minute,
                  \"month\",\"visible\",(pos>10),
                  \"day\",\"visible\",(pos>9),
                  \"hour\",\"visible\",(pos>5),
                  \"minute\",\"visible\",(pos>0),
                  \"month_txt\",\"visible\",(pos>10),
                  \"day_txt\",\"visible\",(pos>9),
                  \"hour_txt\",\"visible\",(pos>5),
                  \"minute_txt\",\"visible\",(pos>0));
  }
  else
  {
    setMultiValue(\"month\",\"visible\",false,
                  \"day\",\"visible\",false,
                  \"hour\",\"visible\",false,
                  \"minute\",\"visible\",false,
                  \"month_txt\",\"visible\",false,
                  \"day_txt\",\"visible\",false,
                  \"hour_txt\",\"visible\",false,
                  \"minute_txt\",\"visible\",false);
  }
  
  ds=AgDescription;
  if (!AgActive || AgThreadNumber<0)
    activate=getCatStr(\"IS\",\"activate\");
  else
    activate=getCatStr(\"IS\",\"deactivate\");

  setMultiValue(\"Ag\",\"text\",ISAgGlobal,
                \"AgDbName\",\"text\",AgDbName,
                \"AgTableName\",\"text\",AgTableName,
                \"AgDescription\",\"text\",AgDescription,
                \"langtextliste\",\"items\",ds,
                \"AgTransferMode\",\"selectedPos\",AgTransferMode,
                \"AgTransferPeriod\",\"text\",AgTransferPeriod,
                \"AgTransferSyncTime\",\"text\",AgTransferSyncTime,
                \"AgTransferTriggerDPE\",\"text\",AgTransferTriggerDPE,
                \"AgTransferTriggerConditionOperator\",\"text\",AgTransferTriggerConditionOperator,
                \"AgTransferTriggerConditionValue\",\"text\",AgTransferTriggerConditionValue,
                \"AgTransferTriggerSourceTime\",\"selectedPos\",AgTransferTriggerSourceTime,
                \"AgTransferPeriodSourceTime\",\"selectedPos\",AgTransferTriggerSourceTime,
                \"AgTransferDelay\",\"text\",AgTransferDelay,
                \"AgItems\",\"items\",AgItems,
                \"period\",\"visible\",(AgTransferMode==1),
                \"AgTransferTriggerDPE\",\"visible\",(AgTransferMode==2),
                \"TriggerDPE\",\"visible\",(AgTransferMode==2),
                \"AgTransferTriggerConditionOperator\",\"visible\",(AgTransferMode==2),
                \"AgTransferTriggerConditionValue\",\"visible\",(AgTransferMode==2),
                \"AgTransferTriggerSourceTime\",\"visible\",(AgTransferMode==2),
                \"AgTransferPeriodSourceTime\",\"visible\",(AgTransferMode==1),
                \"AgTransferDelay\",\"visible\",(AgTransferMode==1),
                \"AgTransferPeriod_txt\",\"visible\",(AgTransferMode==1),
                \"AgTransferSyncTime_txt\",\"visible\",(AgTransferMode==1),
                \"AgTransferTriggerDPE_txt\",\"visible\",(AgTransferMode==2),
                \"AgTransferTriggerConditionOperator_txt\",\"visible\",(AgTransferMode==2),
                \"AgTransferTriggerConditionValue_txt\",\"visible\",(AgTransferMode==2),
                \"AgTransferTriggerSourceTime_txt\",\"visible\",(AgTransferMode<3),
                \"AgTransferDelay_txt\",\"visible\",(AgTransferMode==1),
                \"sec_txt\",\"visible\",(AgTransferMode==1),
                \"activate\",\"text\",activate,
                \"change\",\"text\",0);
}
" 0

E
 0 0
2 26
"AgTransferPeriod_txt"
""
0 -110 E E E 1 E 0 E N "_3DText" E N "_3DFace" E E
 E EE E 0 0 0 0 1 E U  0 E 0 0 0 "s" 0 0 0 0 0 0  214 181 1
2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
2
LANG:0 9  Periode:
LANG:1 8  Period:
13 36
"AgHelp"
""
490 360 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
 490 360 600 387

T 
2
LANG:0 5 Hilfe
LANG:1 4 Help
"main()
{
  std_help(\"is_ag_para\");
}" 0
 E E E
13 38
"AgDelete"
""
390 50 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
 390 50 460 77

T 
2
LANG:0 7 Löschen
LANG:1 6 Delete
"main()
{
  int        i,akt=0,len;
  bool       AgActive;
  string     AgName;
  dyn_float  df;
  dyn_string ags,ds,agnames;
  
  ISActiveRegisterGlobal=2;
  getMultiValue(\"Ag\",\"text\",AgName,
                \"Ag\",\"items\",agnames,
                \"agdps\",\"items\",ags);
                
  if (AgName==\"\")
  {
    ISShowWarning(\"agnotselected\",AgName);
    return;
  }

  akt=dynContains(agnames,AgName);
  
  dpGet(ags[akt]+\".AgActive:_original.._value\",AgActive);
  
  if (AgActive)
  {
    ISShowWarning(\"activegroupcannotbedeleted\",AgName);
    return;
  }

  ChildPanelOnCentralModalReturn(\"vision/is/IS_MessageInfo.pnl\",
    getCatStr(\"IS\",\"answer\"),
    makeDynString(getCatStr(\"IS\",\"deleteag\"),
                  getCatStr(\"IS\",\"yes\"),
                  getCatStr(\"IS\",\"no\")),
    df,ds);
  if (df[1]!=1)
  {
    return;
  }
  
  dpDelete(ags[akt]);
  dynRemove(agnames,akt);
  dynRemove(ags,akt);
  setMultiValue(\"Ag\",\"text\",\"\",
                \"Ag\",\"items\",agnames,
                \"agdps\",\"items\",ags,
                \"change\",\"text\",0);
  ISAgGlobal=\"\";
  ISShowWarning(\"agdeleted\",AgName);
}" 0
 E E E
13 40
"AgSave"
""
360 360 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
 360 360 470 387

T 
2
LANG:0 10 Übernehmen
LANG:1 4 Save
"main()
{
  int        i,akt=0,pos=0,period,month=0,day=0,hour=0,minute=0,
             timeout,err,
             AgTransferMode,AgTransferPeriod,
             AgTransferTriggerSourceTime,
             AgTransferDelay,AgThreadNumber,
             tsource,psource,
             DbAlivePeriod;
  time       AgTransferSyncTime;
  bool       AgActive=false,act,b,show=true;
  string     AgName,AgDbName,AgTableName,AgTransferTriggerDPE,
             AgTransferTriggerConditionOperator,
             AgTransferTriggerConditionValue,active,
             DbName,DbPath,DbType,DbUser,DbPassword,desc;
  langString AgDescription;
  dyn_float  df;
  dyn_string AgItems,ags,dbs,tabs,ds,agnames;
  
  ISActiveRegisterGlobal=2;
  getMultiValue(\"Ag\",\"text\",AgName,
                \"Ag\",\"items\",agnames,
                \"agdps\",\"items\",ags,
                \"activate\",\"text\",active,
                \"AgDbName\",\"text\",AgDbName,
                \"AgTableName\",\"text\",AgTableName,
                \"AgDescription\",\"text\",desc,
                \"langtextliste\",\"items\",ds,
                \"AgTransferMode\",\"selectedPos\",AgTransferMode,
                \"AgTransferTriggerDPE\",\"text\",AgTransferTriggerDPE,
                \"AgTransferTriggerConditionOperator\",\"text\",AgTransferTriggerConditionOperator,
                \"AgTransferTriggerConditionValue\",\"text\",AgTransferTriggerConditionValue,
                \"AgTransferTriggerSourceTime\",\"selectedPos\",tsource,
                \"AgTransferPeriodSourceTime\",\"selectedPos\",psource,
                \"AgTransferDelay\",\"text\",AgTransferDelay,
                \"AgItems\",\"items\",AgItems,
                \"period\",\"selectedPos\",period,
                \"month\",\"text\",month,
                \"day\",\"text\",day,
                \"hour\",\"text\",hour,
                \"minute\",\"text\",minute);

  if (getNoOfLangs()<2)
    ds=makeDynString(desc);

  if (AgName==\"\")
  {
    ISShowWarning(\"agnotselected\",AgName);
    return;
  }

  AgDescription=ds;
  akt=dynContains(agnames,AgName);

  dpGet(ags[akt]+\".AgActive:_original.._value\",act);
  if (act)
  {
    ChildPanelOnCentralModalReturn(\"vision/is/IS_MessageInfo.pnl\",
      getCatStr(\"IS\",\"changingag\")+\" \"+AgName,
      makeDynString(getCatStr(\"IS\",\"changeagactive\"),
                    getCatStr(\"IS\",\"yes\"),
                    getCatStr(\"IS\",\"no\")),
    df,ds);
  }
  else
  {
    ChildPanelOnCentralModalReturn(\"vision/is/IS_MessageInfo.pnl\",
      getCatStr(\"IS\",\"changingag\")+\" \"+AgName,
      makeDynString(getCatStr(\"IS\",\"changeag\"),
                    getCatStr(\"IS\",\"yes\"),
                    getCatStr(\"IS\",\"no\")),
    df,ds);
  }
  if (df[1]!=1)
  {
    return;
  }

  ChildPanelOnCentralModal(\"vision/is/IS_Child.pnl\",
    \"...\",makeDynString(getCatStr(\"IS\",\"changeinprogress\")+\" \"+AgName));
  if (act)
  {
    timeout=0;
    dpSet(\"_IS_Control_1.AgName:_original.._value\",ags[akt],
          \"_IS_Control_1.AgActivate:_original.._value\",false);
    while (true)
    {
      dpGet(ags[akt]+\".AgActive:_original.._value\",b);
      if (b==false) break;
      timeout++;
      delay(0,200);
      if (timeout>50)
      {
        PanelOffPanel(\"...\");
        setValue(\"activate\",\"enabled\",true);
        ISShowWarning(\"deacterror\",AgName);
        return;
      }
    }
  }
  
  AgTransferTriggerSourceTime =tsource;
   
  if (AgTransferMode==1)
  {
    AgTransferTriggerSourceTime =psource;
    switch (period)
    {
      // 3 min
      case  1: AgTransferPeriod=180;       AgTransferSyncTime=minute*60; break;
      // 10 min
      case  2: AgTransferPeriod=600;       AgTransferSyncTime=minute*60; break;
      // 15 min
      case  3: AgTransferPeriod=900;       AgTransferSyncTime=minute*60; break;
      // 30 min
      case  4: AgTransferPeriod=1800;      AgTransferSyncTime=minute*60; break;
      // 1 h
      case  5: AgTransferPeriod=3600;      AgTransferSyncTime=minute*60; break;
      // 6 h
      case  6: AgTransferPeriod=6*3600;    AgTransferSyncTime=hour*3600+minute*60; break;
      // 8 h
      case  7: AgTransferPeriod=8*3600;    AgTransferSyncTime=hour*3600+minute*60; break;
      // 12 h
      case  8: AgTransferPeriod=12*3600;   AgTransferSyncTime=hour*3600+minute*60; break;
      // 1 day
      case  9: AgTransferPeriod=86400;     AgTransferSyncTime=hour*3600+minute*60; break;
      // 1 month
      case 10: AgTransferPeriod=31*86400;  AgTransferSyncTime=day*86400+hour*3600+minute*60; break;
      // 1 year
      case 11: AgTransferPeriod=365*86400; AgTransferSyncTime=month*31*86400+day*86400+hour*3600+minute*60; break;
    }
  }
  
  dpSet(ags[akt]+\".AgDbName:_original.._value\",AgDbName,
        ags[akt]+\".AgTableName:_original.._value\",AgTableName,
        ags[akt]+\".AgDescription:_original.._value\",AgDescription,
        ags[akt]+\".AgTransfer.Mode:_original.._value\",AgTransferMode,
        ags[akt]+\".AgTransfer.Period:_original.._value\",AgTransferPeriod,
        ags[akt]+\".AgTransfer.SyncTime:_original.._value\",AgTransferSyncTime,
        ags[akt]+\".AgTransfer.TriggerDPE:_original.._value\",AgTransferTriggerDPE,
        ags[akt]+\".AgTransfer.TriggerConditionOperator:_original.._value\",AgTransferTriggerConditionOperator,
        ags[akt]+\".AgTransfer.TriggerConditionValue:_original.._value\",AgTransferTriggerConditionValue,
        ags[akt]+\".AgTransfer.TriggerSourceTime:_original.._value\",AgTransferTriggerSourceTime,
        ags[akt]+\".AgTransfer.Delay:_original.._value\",AgTransferDelay,
        ags[akt]+\".AgActive:_original.._value\",AgActive,
        ags[akt]+\".AgThreadNumber:_original.._value\",AgThreadNumber,
        ags[akt]+\".AgItems:_original.._value\",AgItems);

  if (act)
  {
    timeout=0;
    dpSet(\"_IS_Control_1.AgName:_original.._value\",ags[akt],
          \"_IS_Control_1.AgActivate:_original.._value\",true);
    while (true)
    {
      dpGet(ags[akt]+\".AgActive:_original.._value\",b);
      if (b) break;
      timeout++;
      delay(0,200);
      if (timeout>50)
      {
        PanelOffPanel(\"...\");
        setValue(\"activate\",\"enabled\",true);
        ISShowWarning(\"acterror\",AgName);
        return;
      }
    }
  }
  
  setValue(\"activate\",\"enabled\",true);
  setValue(\"change\",\"text\",0);

  dpGet(AgDbName+\".DbName:_original.._value\",DbName,
        AgDbName+\".DbPath:_original.._value\",DbPath,
        AgDbName+\".DbType:_original.._value\",DbType,
        AgDbName+\".DbUser:_original.._value\",DbUser,
        AgDbName+\".DbPassword:_original.._value\",DbPassword,
        AgDbName+\".DbAlivePeriod:_original.._value\",DbAlivePeriod);
  IS_UpdateDescription(DbName,
                       DbPath,
                       DbType,
                       DbUser,
                       DbPassword,
                       AgItems,
                       show, // ==true - started from a panel
                       err);
  
  if (err)
  {
    PanelOffPanel(\"...\");
    ISShowWarning(\"descriptionerror\",AgDbName);
  }
  else
  {
    PanelOffPanel(\"...\");
    ISShowWarning(\"agchanged\",AgName);
  }
}
" 0
 E E E
6 42
""
""
10 20 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E EE E 0 0 0 0 1 E 1 0 1.42857142857143 0 221.428571428572 0 E 10 20 600 90
6 44
""
""
10 20 E E E 1 E 1 E N "_Window" E N "_3DFace" E E
 E EE E 0 0 0 0 1 E 1 0 1.42857142857143 1 222.428571428572 0 E 10 20 600 90
2 46
""
""
-542.337910567878 -180 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E EE E 0 0 0 0 1 E U  0 E 0 0 0 "s" 0 0 0 0 0 0  20 182 1
2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
2
LANG:0 13  Transferart:
LANG:1 15  Transfer mode:
22 47
"AgTransferMode"
""
109 174 E E E 1 E 1 E N [0,0,0] E N "_Window" E E
 E E2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
 109 174 209 203
3
2
LANG:0 10 Periodisch
LANG:1 10 Periodical

1
2
LANG:0 7 Trigger
LANG:1 7 Trigger

0
2
LANG:0 8 Ereignis
LANG:1 5 Event

0

E
"main()
{
  int AgTransferMode,AgTransferPeriod,AgTransferSyncTime,
      pos=0,month=0,day=0,hour=0,minute=0;
  
  getMultiValue(\"\",\"selectedPos\",AgTransferMode,
                \"AgTransferPeriod\",\"text\",AgTransferPeriod,
                \"AgTransferSyncTime\",\"text\",AgTransferSyncTime);
  setMultiValue(\"AgTransferTriggerDPE\",\"visible\",(AgTransferMode==2),
                \"TriggerDPE\",\"visible\",(AgTransferMode==2),
                \"AgTransferTriggerConditionOperator\",\"visible\",(AgTransferMode==2),
                \"AgTransferTriggerConditionValue\",\"visible\",(AgTransferMode==2),
                \"AgTransferTriggerSourceTime\",\"visible\",(AgTransferMode==2),
                \"AgTransferPeriodSourceTime\",\"visible\",(AgTransferMode==1),
                \"AgTransferDelay\",\"visible\",(AgTransferMode==1),
                \"AgTransferPeriod_txt\",\"visible\",(AgTransferMode==1),
                \"AgTransferSyncTime_txt\",\"visible\",(AgTransferMode==1),
                \"AgTransferTriggerDPE_txt\",\"visible\",(AgTransferMode==2),
                \"AgTransferTriggerConditionOperator_txt\",\"visible\",(AgTransferMode==2),
                \"AgTransferTriggerConditionValue_txt\",\"visible\",(AgTransferMode==2),
                \"AgTransferTriggerSourceTime_txt\",\"visible\",(AgTransferMode<3),
                \"sec_txt\",\"visible\",(AgTransferMode==1),
                \"AgTransferDelay_txt\",\"visible\",(AgTransferMode==1),
                \"change\",\"text\",1);
  if (AgTransferMode==1)
  {
    IS_PeriodToDetails(AgTransferPeriod,AgTransferSyncTime,
                       pos,month,day,hour,minute);
    setMultiValue(\"period\",\"selectedPos\",pos,
                  \"month\",\"text\",(month>0)?month:1,
                  \"day\",\"text\",(day>0)?day:1,
                  \"hour\",\"text\",(hour>0)?hour:1,
                  \"minute\",\"text\",minute,
                  \"period\",\"visible\",(AgTransferMode==1),
                  \"month\",\"visible\",(pos>9),
                  \"day\",\"visible\",(pos>8),
                  \"hour\",\"visible\",(pos>4),
                  \"minute\",\"visible\",(pos>0),
                  \"month_txt\",\"visible\",(pos>9),
                  \"day_txt\",\"visible\",(pos>8),
                  \"hour_txt\",\"visible\",(pos>4),
                  \"minute_txt\",\"visible\",(pos>0));
  }
  else
    setMultiValue(\"period\",\"visible\",false,
                  \"month\",\"visible\",false,
                  \"day\",\"visible\",false,
                  \"hour\",\"visible\",false,
                  \"minute\",\"visible\",false,
                  \"month_txt\",\"visible\",false,
                  \"day_txt\",\"visible\",false,
                  \"hour_txt\",\"visible\",false,
                  \"minute_txt\",\"visible\",false);
}" 0

E
 0 0
6 53
""
""
10 20 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E EE E 0 0 0 0 1 E 1 0 1.14285714285714 0 147.142857142857 0 E 10 20 600 90
6 54
""
""
10 20 E E E 1 E 1 E N "_Window" E N "_3DFace" E E
 E EE E 0 0 0 0 1 E 1 0 1.14285714285714 1 148.142857142857 0 E 10 20 600 90
22 55
"AgDbName"
""
110 100 E E E 1 E 1 E N [0,0,0] E N "_Window" E E
 E E2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
 110 100 290 129
0

E
"main()
{
  int        i,j;
  string     s;
  dyn_string _IS_Table=dpNames(\"*\",\"_IS_Table\"),tabs;
  
  for (i=1;i<=dynlen(_IS_Table);i++) _IS_Table[i]=dpSubStr(_IS_Table[i],DPSUB_DP);
  addGlobal(\"ISDbGlobal\",STRING_VAR);
  getValue(\"\",\"text\",ISDbGlobal);
  if (ISDbGlobal!=\"\")
  {
    tabs=makeDynString();
    j=0;
    for (i=1;i<=dynlen(_IS_Table);i++)
    {
      s=_IS_Table[i];
      strreplace(s,ISDbGlobal+\"_\",\"\");
      if (s!=_IS_Table[i])
      {
        j++; tabs[j]=s;
      }
    }
  }
  if (dynlen(tabs)>0) s=tabs[1]; else s=\"\";

  setMultiValue(\"AgTableName\",\"text\",s,
                \"AgTableName\",\"items\",tabs,
                \"change\",\"text\",1);
}
" 0

E
 0 0
2 56
""
""
-888.043070555519 29 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E EE E 0 0 0 0 1 E U  0 E 0 0 0 "s" 0 0 0 0 0 0  300 107 1
2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
2
LANG:0 14  Tabellenname:
LANG:1 12  Table name:
22 57
"AgTableName"
""
390 100 E E E 1 E 1 E N [0,0,0] E N "_Window" E E
 E E2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
 390 100 588 129
0

E
"main()
{
  setValue(\"change\",\"text\",1);
}" 0

E
 0 0
2 58
""
""
-468.515576772706 38 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E EE E 0 0 0 0 1 E U  0 E 0 0 0 "s" 0 0 0 0 0 0  20 136 1
2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
2
LANG:0 14  Beschreibung:
LANG:1 13  Description:
14 59
"AgDescription"
""
110 130 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
 110 130 557 159
2 "s" 0 0 0 0 0 -1  E E E
2 62
"AgTransferTriggerDPE_txt"
""
10 -99 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E EE E 0 0 0 0 1 E U  0 E 0 0 0 "s" 0 0 0 0 0 0  20 218 2
2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
2
LANG:0 9  Trigger-
LANG:1 8  Trigger
2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
2
LANG:0 5  DPE:
LANG:1 5  DPE:
14 63
"AgTransferTriggerDPE"
""
107 220 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
 107 220 331 249
3 "0s" 0 0 0 0 0 -1  E E E
2 64
"AgTransferTriggerConditionOperator_txt"
""
11 -99 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E EE E 0 0 0 0 1 E U  0 E 0 0 0 "s" 0 0 0 0 0 0  368 202 1
2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
2
LANG:0 10  Operator:
LANG:1 10  Operator:
22 65
"AgTransferTriggerConditionOperator"
""
370 220 E E E 1 E 1 E N [0,0,0] E N "_Window" E E
 E E2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
 370 220 449.778393351801 249
7
2
LANG:0 1 <
LANG:1 1 <

0
2
LANG:0 2 <=
LANG:1 2 <=

0
2
LANG:0 2 ==
LANG:1 2 ==

1
2
LANG:0 2 >=
LANG:1 2 >=

0
2
LANG:0 1 >
LANG:1 1 >

0
2
LANG:0 2 !=
LANG:1 2 !=

0
2
LANG:0 7 OnEvent
LANG:1 7 OnEvent

0

E
"main()
{
  setValue(\"change\",\"text\",1);
}" 0

E
 0 0
2 66
"AgTransferTriggerConditionValue_txt"
""
11 -99 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E EE E 0 0 0 0 1 E U  0 E 0 0 0 "s" 0 0 0 0 0 0  459 204 1
2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
2
LANG:0 6  Wert:
LANG:1 7  Value:
14 67
"AgTransferTriggerConditionValue"
""
461 220 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
 461 220 591 249
3 "0s" 0 0 0 0 0 -1  E E E
2 68
"AgTransferTriggerSourceTime_txt"
""
11 -101 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E EE E 0 0 0 0 1 E U  0 E 0 0 0 "s" 0 0 0 0 0 0  368 182 1
2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
2
LANG:0 11  Quellzeit:
LANG:1 13  Source time:
22 69
"AgTransferTriggerSourceTime"
""
459 174 E E E 1 E 1 E N [0,0,0] E N "_Window" E E
 E E2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
 459 174 589 203
4
2
LANG:0 17 Zeit des Triggers
LANG:1 12 Trigger time

1
2
LANG:0 13 Zeit der DPEs
LANG:1 12 Time of DPEs

0
2
LANG:0 16 jüngste DPE-Zeit
LANG:1 17 youngest DPE time

0
2
LANG:0 16 älteste DPE-Zeit
LANG:1 15 oldest DPE time

0

E
E
E
 0 0
17 70
"AgItems"
""
107 258 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
 107 258 440 345
0

E
E
E

0 1
2 71
""
""
20 -70 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E EE E 0 0 0 0 1 E U  0 E 0 0 0 "s" 0 0 0 0 0 0  20 260 1
2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
2
LANG:0 6  DPEs:
LANG:1 6  DPEs:
2 82
"AgTransferDelay_txt"
""
80 -379 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E EE E 0 0 0 0 1 E U  0 E 0 0 0 "s" 0 0 0 0 0 0  371 224 1
2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
2
LANG:0 13  Verzögerung:
LANG:1 7  Delay:
21 85
"AgTransferDelay"
""
459 220 E E E 1 E 1 E N "_WindowText" E N "_Window" E E
 E E2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
 459 220 561 249
0

E
"main()
{
  setValue(\"change\",\"text\",1);
}" 0

E

N 0 3600 1 5 1 1
13 86
"activate"
""
230 360 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
 230 360 340 387

T 
2
LANG:0 10 Aktivieren
LANG:1 8 Activate
"main()
{
  int        pos,change,timeout;
  bool       b,bb,dbactive;
  string     AgName,act,s,AgDbName;
  dyn_float  df;
  dyn_string agnames,ags,ds;
  
  ISActiveRegisterGlobal=2;
  getMultiValue(\"Ag\",\"text\",AgName,
                \"Ag\",\"items\",agnames,
                \"agdps\",\"items\",ags,
                \"\",\"text\",act,
                \"change\",\"text\",change);
                
  pos=dynContains(agnames,AgName);
  if (AgName==\"\" || pos<1)
  {
    ISShowWarning(\"agnotselected\",AgName);
    return;
  }
  
  dpGet(ags[pos]+\".AgDbName:_original.._value\",AgDbName);
  ISDbActive(AgDbName,dbactive);
  if (!dbactive)
  {
    ISShowWarning(\"dbisnotactive\",AgDbName);
    return;
  }

  if (change==1)
  {
    ChildPanelOnCentralModalReturn(\"vision/is/IS_MessageInfo.pnl\",
      getCatStr(\"para\",\"warning\"),
      makeDynString(getCatStr(\"IS\",\"changed\"),
                    getCatStr(\"IS\",\"yes\"),
                    getCatStr(\"IS\",\"no\")),
      df,ds);
    if (df[1]==0)
      return;
  }

  b=(act==getCatStr(\"IS\",\"activate\"));
  s=(b)?getCatStr(\"IS\",\"activateag\"):getCatStr(\"IS\",\"deactivateag\");
  ChildPanelOnCentralModalReturn(\"vision/is/IS_MessageInfo.pnl\",
    getCatStr(\"IS\",\"answer\"),
    makeDynString(s,
                  getCatStr(\"IS\",\"yes\"),
                  getCatStr(\"IS\",\"no\")),
    df,ds);
  if (df[1]!=1)
  {
    return;
  }
  
  dpSet(\"_IS_Control_1.AgName:_original.._value\",ags[pos],
        \"_IS_Control_1.AgActivate:_original.._value\",b);

  if (b)
  {
    ChildPanelOnCentralModal(\"vision/is/IS_Child.pnl\",
      \"...\",makeDynString(getCatStr(\"IS\",\"actinprogress\")+\" \"+AgName));
  }
  else
  {
    ChildPanelOnCentralModal(\"vision/is/IS_Child.pnl\",
      \"...\",makeDynString(getCatStr(\"IS\",\"deactinprogress\")+\" \"+AgName));
  }
  timeout=0;
  while (true)
  {
    dpGet(ags[pos]+\".AgActive:_original.._value\",bb);
    if (bb==b) break;
    timeout++;
    delay(0,200);
    if (timeout>50)
    {
      PanelOffPanel(\"...\");
      setValue(\"activate\",\"enabled\",true);
      ISShowWarning(\"acterror\",AgName);
      return;
    }
  }
  PanelOffPanel(\"...\");

  if (!bb)
  {
    setValue(\"\",\"text\",getCatStr(\"IS\",\"activate\"));
    ISShowWarning(\"agstopped\",AgName);
  }
  else
  {
    setValue(\"\",\"text\",getCatStr(\"IS\",\"deactivate\"));
    ISShowWarning(\"agstarted\",AgName);
  }
}

" 0
 E E E
13 93
"TriggerDPE"
""
330 220 E E E 1 E 0 E N "_3DText" E N "_3DFace" E E
 E E2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
 330 220 360.387831346735 247

P 
"93.xpm"
2
LANG:0 3 ...
LANG:1 3 ...
"main()
{
  string     dpe;
  anytype    val;

  getValue(\"AgTransferTriggerDPE\",\"text\",dpe);
  dpSelector(dpe,true,\"OWN_SYSTEM_NAME_SYS\");
  if (strpos(dpe,\".\")<1) dpe+=\".\";
  dpe=dpSubStr(dpe,DPSUB_DP_EL);
  if (dpGet(dpe+\":_original.._value\",val)<0)
  {
    ISShowWarning(\"noendnode\",dpe);
    return;
  }
  setValue(\"AgTransferTriggerDPE\",\"text\",dpe); 
  setValue(\"change\",\"text\",1);
}
" 0
 E E E
13 95
"langtexteditor"
""
560 130 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
 560 130 590 158

P 
"95.xpm"
2
LANG:0 2 DP
LANG:1 2 DP
"main()
{
  langString ls;
  dyn_string ds;
  string s;


  getValue(\"AgDescription\",\"text\",s);

  
  getValue(\"langtextliste\",\"items\",ds);

  ds[getActiveLang()+1]=s;

  ls=ds;
  langEditor(ls);
  ds=ls;
  setValue(\"langtextliste\",\"items\",ds);

  setMultiValue(\"AgDescription\",\"text\",ds[getActiveLang()+1],
                \"change\",\"text\",1);
}" 0
 E E "main()
{
  // mehrsprachig ?
  setMultiValue(\"\",\"visible\",(getNoOfLangs()>1),
                \"AgDescription\",\"editable\",(getNoOfLangs()<2));
}" 0

17 96
"langtextliste"
""
560 0 E E E 1 E 0 E N "_3DText" E N "_3DFace" E E
 E E2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
 560 0 590 30
0

E
E
E

3 1
22 97
"period"
""
266 174 E E E 1 E 0 E N [0,0,0] E N "_Window" E E
 E E2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
 266 174 354 203
11
2
LANG:0 5 3 min
LANG:1 5 3 min

1
2
LANG:0 6 10 min
LANG:1 6 10 min

0
2
LANG:0 6 15 min
LANG:1 6 15 min

0
2
LANG:0 6 30 min
LANG:1 6 30 min

0
2
LANG:0 3 1 h
LANG:1 3 1 h

0
2
LANG:0 3 6 h
LANG:1 3 6 h

0
2
LANG:0 3 8 h
LANG:1 3 8 h

0
2
LANG:0 4 12 h
LANG:1 4 12 h

0
2
LANG:0 5 1 Tag
LANG:1 5 1 day

0
2
LANG:0 7 1 Monat
LANG:1 7 1 month

0
2
LANG:0 6 1 Jahr
LANG:1 6 1 year

0

E
"main()
{
  int       pos;
  
  getValue(\"\",\"selectedPos\",pos);
  
  setMultiValue(\"month\",\"visible\",(pos>10),
                \"day\",\"visible\",(pos>9),
                \"hour\",\"visible\",(pos>5),
                \"month_txt\",\"visible\",(pos>10),
                \"day_txt\",\"visible\",(pos>9),
                \"hour_txt\",\"visible\",(pos>5),
                \"change\",\"text\",1);
}
" 0

E
 0 0
21 98
"month"
""
276 220 E E E 1 E 0 E N "_WindowText" E N "_Window" E E
 E E2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
 276 220 324 249
0

E
"main()
{
  setValue(\"change\",\"text\",1);
}" 0

E

N 1 12 1 1 0 1
2 99
"month_txt"
""
12 20 E E E 1 E 0 E N "_3DText" E N "_3DFace" E E
 E EE E 0 0 0 0 1 E U  0 E 0 0 0 "s" 0 0 0 0 0 0  276 204 1
2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
2
LANG:0 6  Monat
LANG:1 6  Month
21 100
"day"
""
220 220 E E E 1 E 0 E N "_WindowText" E N "_Window" E E
 E E2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
 220 220 268 249
0

E
"main()
{
  setValue(\"change\",\"text\",1);
}" 0

E

N 1 31 1 1 0 1
2 101
"day_txt"
""
2 30 E E E 1 E 0 E N "_3DText" E N "_3DFace" E E
 E EE E 0 0 0 0 1 E U  0 E 0 0 0 "s" 0 0 0 0 0 0  220 204 1
2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
2
LANG:0 4  Tag
LANG:1 4  Day
21 102
"hour"
""
164 220 E E E 1 E 0 E N "_WindowText" E N "_Window" E E
 E E2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
 164 220 212 249
0

E
"main()
{
  setValue(\"change\",\"text\",1);
}" 0

E

N 0 23 1 1 0 1
2 103
"hour_txt"
""
0 30 E E E 1 E 0 E N "_3DText" E N "_3DFace" E E
 E EE E 0 0 0 0 1 E U  0 E 0 0 0 "s" 0 0 0 0 0 0  164 204 1
2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
2
LANG:0 5  Std.
LANG:1 5  Hour
21 104
"minute"
""
108 220 E E E 1 E 0 E N "_WindowText" E N "_Window" E E
 E E2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
 108 220 156 249
0

E
"main()
{
  setValue(\"change\",\"text\",1);
}" 0

E

N 0 45 15 1 0 1
2 105
"minute_txt"
""
0 30 E E E 1 E 0 E N "_3DText" E N "_3DFace" E E
 E EE E 0 0 0 0 1 E U  0 E 0 0 0 "s" 0 0 0 0 0 0  108 204 1
2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
2
LANG:0 5  Min.
LANG:1 5  Min.
2 106
"AgTransferSyncTime_txt"
""
218 109 E E E 1 E 0 E N "_3DText" E N "_3DFace" E E
 E EE E 0 0 0 0 1 E U  1 E 0 0 0 "s" 0 0 0 0 0 0  20 226 1
2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
2
LANG:0 11  Beginn um:
LANG:1 10  Begin at:
22 107
"AgTransferPeriodSourceTime"
""
459 174 E E E 1 E 1 E N [0,0,0] E N "_Window" E E
 E E2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
 459 174 589 203
2
2
LANG:0 11 Auslösezeit
LANG:1 12 Trigger time

1
2
LANG:0 13 Zeit der DPEs
LANG:1 12 Time of DPEs

0

E
"main()
{
  setValue(\"change\",\"text\",1);
}" 0

E
 0 0
14 108
"AgTransferSyncTime"
""
530 0 E E E 1 E 0 E N "_WindowText" E N "_Window" E E
 E E2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
 530 0 559 29
2 "s" 0 0 0 0 0 -1  E E E
14 109
"AgTransferPeriod"
""
500 0 E E E 1 E 0 E N "_WindowText" E N "_Window" E E
 E E2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
 500 0 529 29
2 "s" 0 0 0 0 0 -1  E E E
2 110
"sec_txt"
""
37 358 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E EE E 0 0 0 0 1 E U  0 E 0 0 0 "s" 0 0 0 0 0 0  570 227 1
2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
2
LANG:0 3 [s]
LANG:1 3 [s]
13 111
"AgNew"
""
310 50 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
 310 50 380 77

T 
2
LANG:0 3 Neu
LANG:1 3 New
"main()
{
  int        i,j,max=0,pos=0,month=0,day=0,hour=0,minute=0,change;
  bool       AgExists=false;
  string     AgName,dp;
  langString ls;
  dyn_float  df;
  dyn_string ds,ags,dbs,tabs,agnames;
  
  ISActiveRegisterGlobal=2;
  getMultiValue(\"AgDbName\",\"items\",dbs,
                \"AgTableName\",\"items\",tabs,
                \"Ag\",\"items\",agnames,
                \"agdps\",\"items\",ags,
                \"change\",\"text\",change);

  if (dynlen(dbs)<1)
  {
    ISShowWarning(\"nodatabase\",\"\");
    return;
  }
  if (dynlen(tabs)<1)
  {
    ISShowWarning(\"notable\",\"\");
    return;
  }
  
  if (change==1)
  {
    ChildPanelOnCentralModalReturn(\"vision/is/IS_MessageInfo.pnl\",
      getCatStr(\"para\",\"warning\"),
      makeDynString(getCatStr(\"IS\",\"changed\"),
                    getCatStr(\"IS\",\"yes\"),
                    getCatStr(\"IS\",\"no\")),
      df,ds);
    if (df[1]==0)
      return;
  }

  ChildPanelOnCentralModalReturn(\"vision/is/IS_NewGroup.pnl\",
    getCatStr(\"IS\",\"newgroup\"),makeDynString(),df,ds);

  if (dynlen(ds)<1)
    return;

  if (strrtrim(strltrim(ds[1]))==\"\")
    return;
    
  if (!IS_CheckChar(ds[1]))
  {
    // error: invalid character(s) in name
    ISShowWarning(\"invalidchar\",\"\");
    return;
  }

  for (i=1;i<=dynlen(ags);i++)
  {
    j=strltrim(ags[i],\"IS_ArchiveGroup_\");
    if (j>max) max=j;
  }
  if (dynContains(agnames,ds[1]))
  {
    ISShowWarning(\"agexists\",ds[1]);
    return;
  }
  
  max++;
  dp=\"IS_ArchiveGroup_\"+max;
  while (dpExists(dp) && dpTypeName(dp)==\"_IS_ArchiveGroup\")
  {
    max++; dp=\"IS_ArchiveGroup_\"+max;
  }
  i=dpCreate(dp,\"_IS_ArchiveGroup\");
  setValue(\"activate\",\"enabled\",false);

  ISAgGlobal=ds[1];
    
  dpSet(dp+\".AgName:_original.._value\",ISAgGlobal,
        dp+\".AgDbName:_original.._value\",dbs[1],
        dp+\".AgTableName:_original.._value\",tabs[1],
        dp+\".AgDescription:_original.._value\",ls,
        dp+\".AgTransfer.Mode:_original.._value\",1,
        dp+\".AgTransfer.Period:_original.._value\",3600,
        dp+\".AgTransfer.SyncTime:_original.._value\",0,
        dp+\".AgTransfer.TriggerDPE:_original.._value\",\"\",
        dp+\".AgTransfer.TriggerConditionOperator:_original.._value\",\"==\",
        dp+\".AgTransfer.TriggerConditionValue:_original.._value\",1,
        dp+\".AgTransfer.TriggerSourceTime:_original.._value\",1,
        dp+\".AgTransfer.Delay:_original.._value\",5,
        dp+\".AgActive:_original.._value\",false,
        dp+\".AgThreadNumber:_original.._value\",-1,
        dp+\".AgItems:_original.._value\",makeDynString(),
        dp+\".AgStatistic.Reset:_original.._value\",false,
        dp+\".AgStatistic.TransferCounter:_original.._value\",0,
        dp+\".AgStatistic.Period:_original.._value\",3600,
        dp+\".AgStatistic.MaxCount:_original.._value\",0);

  dynAppend(ags,dpSubStr(dp,DPSUB_DP));
  dynAppend(agnames,ISAgGlobal);
  
  IS_PeriodToDetails(3600,0,pos,month,day,hour,minute);
  
  setMultiValue(\"period\",\"selectedPos\",pos,
                \"month\",\"text\",(month>0)?month:1,
                \"day\",\"text\",(day>0)?day:1,
                \"hour\",\"text\",(hour>0)?hour:1,
                \"minute\",\"text\",minute,
                \"month\",\"visible\",(pos>10),
                \"day\",\"visible\",(pos>9),
                \"hour\",\"visible\",(pos>5),
                \"minute\",\"visible\",(pos>0),
                \"month_txt\",\"visible\",(pos>10),
                \"day_txt\",\"visible\",(pos>9),
                \"hour_txt\",\"visible\",(pos>5),
                \"minute_txt\",\"visible\",(pos>0));

  setMultiValue(\"Ag\",\"text\",ISAgGlobal,
                \"Ag\",\"items\",agnames,
                \"agdps\",\"items\",ags,
                \"AgDbName\",\"text\",dbs[1],
                \"AgTableName\",\"text\",tabs[1],
                \"AgDescription\",\"text\",ls,
                \"langtextliste\",\"items\",makeDynString(),
                \"AgTransferMode\",\"selectedPos\",1,
                \"AgTransferPeriod\",\"text\",3600,
                \"AgTransferSyncTime\",\"text\",0,
                \"AgTransferTriggerDPE\",\"text\",\"\",
                \"AgTransferTriggerConditionOperator\",\"text\",\"==\",
                \"AgTransferTriggerConditionValue\",\"text\",1,
                \"AgTransferTriggerSourceTime\",\"selectedPos\",1,
                \"AgTransferPeriodSourceTime\",\"selectedPos\",1,
                \"AgTransferDelay\",\"text\",5,
                \"AgItems\",\"items\",makeDynString(),
                \"period\",\"visible\",true,
                \"AgTransferTriggerDPE\",\"visible\",false,
                \"TriggerDPE\",\"visible\",false,
                \"AgTransferTriggerConditionOperator\",\"visible\",false,
                \"AgTransferTriggerConditionValue\",\"visible\",false,
                \"AgTransferTriggerSourceTime\",\"visible\",false,
                \"AgTransferPeriodSourceTime\",\"visible\",true,
                \"AgTransferDelay\",\"visible\",true,
                \"AgTransferPeriod_txt\",\"visible\",true,
                \"AgTransferSyncTime_txt\",\"visible\",true,
                \"AgTransferTriggerDPE_txt\",\"visible\",false,
                \"AgTransferTriggerConditionOperator_txt\",\"visible\",false,
                \"AgTransferTriggerConditionValue_txt\",\"visible\",false,
                \"AgTransferTriggerSourceTime_txt\",\"visible\",true,
                \"AgTransferDelay_txt\",\"visible\",true,
                \"sec_txt\",\"visible\",true,
                \"activate\",\"text\",getCatStr(\"IS\",\"activate\"),
                \"change\",\"text\",0);
}
" 0
 E E E
17 112
"agdps"
""
407 0 E E E 1 E 0 E N "_3DText" E N "_3DFace" E E
 E E2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
 407 0 500 35
0

E
E
E

3 1
13 115
"DpAdd"
""
440 290 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
 440 290 516 317

T 
2
LANG:0 8 Einfügen
LANG:1 3 Add
"main()
{
  int        len,ic,dptype;
  bool       sys,ali;
  string     dp,db,table,alias=\"\";
  dyn_string ds;
  
  dpSelector(dp, \"true\", \"OWN_SYSTEM_NAME_SYS\");
  if (dp==\"\") return;
  
  getMultiValue(\"AgDbName\",\"text\",db,
                \"AgTableName\",\"text\",table,
                \"AgItems\",\"items\",ds,
                \"AgItems\",\"itemCount\",ic);
                
  dpGet(db+\"_\"+table+\".TableMaxLengthDpeName:_original.._value\",len,
        db+\"_\"+table+\".TableSystemNameDpe:_original.._value\",sys,
        db+\"_\"+table+\".TableAlias:_original.._value\",ali);
        
  if (strpos(dp,\".\")<0) dp+=\".\";

  dptype=dpElementType(dp);
  if (dptype==DPEL_STRUCT)
  {
    ISShowWarning(\"notendelement\",dp);
    return;
  }
  else
  if (dptype<DPEL_UINT || dptype>DPEL_BOOL)
  {
    ISShowWarning(\"wrongendelementtype\",dp);
    return;
  }

  if (ali)
    alias=dpGetAlias(dp);
  else
    alias=dpSubStr(dp,DPSUB_DP_EL);
  if (alias==\"\")
  {
    ISShowWarning(\"aliasempty\",dp);
    return;
  }
  else
    if (ali) alias=\"@\"+alias;
    
  if (sys)
  {
    alias=dpSubStr(dp,DPSUB_SYS)+alias;
  }
    
  if (strlen(alias)>len+1)
  {
    ISShowWarning(\"dpnametoolong\",dp);
    return;
  }
  
  if (dynContains(ds,alias)>0)
  {
    ISShowWarning(\"dpalreadyselected\",alias);
    return;
  }
  
  setMultiValue(\"AgItems\",\"appendItem\",alias,
                \"AgItems\",\"selectedPos\",ic+1,
                \"change\",\"text\",1);
}" 0
 E E E
13 116
"DpDelete"
""
440 260 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
 440 260 516 287

T 
2
LANG:0 7 Löschen
LANG:1 6 Remove
"main()
{
  int        pos;
  string     dp;
  dyn_string ds;

  getValue(\"AgItems\",\"selectedPos\",pos,
                     \"items\",ds);
  
  if (pos<1)
  {
    ISShowWarning(\"dpnotselected\",\"\");
    return;
  }

  setMultiValue(\"AgItems\",\"deletePos\",pos,
                \"change\",\"text\",1);
  if (pos>1)
    setValue(\"AgItems\",\"selectedPos\",pos-1);
  else
  if (dynlen(ds)>1)
    setValue(\"AgItems\",\"selectedPos\",1);
}" 0
 E E E
6 117
""
""
10 20 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E EE E 0 0 0 0 1 E 1 0 0.714285714285714 0 25.7142857142857 0 E 10 20 600 90
6 118
""
""
10 20 E E E 1 E 1 E N "_Window" E N "_3DFace" E E
 E EE E 0 0 0 0 1 E 1 0 0.714285714285714 1 26.7142857142857 0 E 10 20 600 90
2 119
""
""
150 140 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E EE E 0 0 0 0 1 E U  0 E 0 0 0 "s" 0 0 0 0 0 0  150 140 1
2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
2
LANG:0 5 Deakt
LANG:1 0 
13 120
"Import"
""
440 320 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
 440 320 516 347

T 
2
LANG:0 6 Import
LANG:1 6 Import
"main()
{
  int        len,ic,dptype,anz;
  bool       sys,ali,ok=true;
  file       fd;
  string     dp,db,table,alias=\"\",ascii,st;
  dyn_string ds;
  
  fileSelector(ascii, PROJ_PATH+\"dplist/\");
  if (ascii==\"\") return;

  if (access(ascii,R_OK)!=0)
  {
    ISShowWarning(\"filereaderror\",ascii);
    return;
  }

  fd=fopen(ascii,\"r\");
  if (fd==0)
  {
    ISShowWarning(\"filereaderror\",ascii);
    return;
  }

  getMultiValue(\"AgDbName\",\"text\",db,
                \"AgTableName\",\"text\",table,
                \"AgItems\",\"items\",ds);
                
  dpGet(db+\"_\"+table+\".TableMaxLengthDpeName:_original.._value\",len,
        db+\"_\"+table+\".TableSystemNameDpe:_original.._value\",sys,
        db+\"_\"+table+\".TableAlias:_original.._value\",ali);

  while (!feof(fd))
  {
    // reading file
    anz=fgets(dp,32767,fd);
    if (anz==0)
    {
      //ok=false; st=getCurrentTime();
      //DebugN(\"IS[AG-Para] \"+st+\" Error reading file: \"+ascii); 
      continue;
    }
    dp=strrtrim(dp,\"\\n\");
    dp=strltrim(strrtrim(dp));
    if (dp[0]==\"#\" || strlen(dp)==0)
      continue;
    if (!dpExists(dpSubStr(dp,DPSUB_DP)))
    {
      ok=false; st=getCurrentTime();
      DebugN(\"IS[AG-Para] \"+st+\" DP does not exist: \"+dp); 
      continue;
    }
    if (strpos(dp,\".\")<0) dp+=\".\";

    dptype=dpElementType(dp);
    if (dptype==DPEL_STRUCT)
    {
      ok=false; st=getCurrentTime();
      DebugN(\"IS[AG-Para] \"+st+\" DP is not an end node: \"+dp); 
      continue;
    }

    if (dptype<DPEL_UINT || dptype>DPEL_BOOL)
    {
      ok=false; st=getCurrentTime();
      DebugN(\"IS[AG-Para] \"+st+\" DPE has an invalid type: \"+dp+\" (Valid are: bool,uint,int,float)\"); 
      continue;
    }

    if (ali)
      alias=dpGetAlias(dp);
    else
      alias=dpSubStr(dp,DPSUB_DP_EL);
    if (alias==\"\")
    {
      ok=false; st=getCurrentTime();
      DebugN(\"IS[AG-Para] \"+st+\" DPE has no alias: \"+dp); 
      continue;
    }
    else
      if (ali) alias=\"@\"+alias;
    
    if (sys)
    {
      alias=dpSubStr(dp,DPSUB_SYS)+alias;
    }
    
    if (strlen(alias)>len+1)
    {
      ok=false; st=getCurrentTime();
      DebugN(\"IS[AG-Para] \"+st+\" DPE name is too long: \"+alias); 
      continue;
    }
  
    if (dynContains(ds,alias)>0)
    {
      ok=false; st=getCurrentTime();
      DebugN(\"IS[AG-Para] \"+st+\" DPE has already been selected: \"+alias); 
      continue;
    }

    dynAppend(ds,alias);
  }
  
  if (fd!=0) fclose(fd);
  
  setValue(\"AgItems\",\"items\",ds);
  setValue(\"AgItems\",\"selectedPos\",dynlen(ds));
  setValue(\"change\",\"text\",1);

  if (!ok)
  {
    ISShowWarning(\"asciiappenderror\",ascii);
  }
}" 0
 E E E
14 121
"change"
""
370 0 E E E 1 E 0 E N "_WindowText" E N "_3DFace" E E
 E E2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
 370 0 405 29
2 "s" 0 0 0 0 0 -1  E E E
13 122
"activate"
""
100 360 E E E 1 E 0 E N "_3DText" E N "_3DFace" E E
 E E2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
 100 360 210 387

T 
2
LANG:0 9 Statistik
LANG:1 10 Statistics
"main()
{
  int        pos;
  string     AgName;
  dyn_string agnames,agdps;
  
  getMultiValue(\"Ag\",\"text\",AgName,
                \"Ag\",\"items\",agnames,
                \"agdps\",\"items\",agdps);
                
  pos=dynContains(agnames,AgName);
  if (AgName==\"\" || pos<1)
  {
    ISShowWarning(\"agnotselected\",AgName);
    return;
  }
  ChildPanelOnCentralModal(\"vision/is/IS_Para_Ag_Stat.pnl\",
    getCatStr(\"IS\",\"agstat\"),makeDynString(AgName,agdps[pos]));
}

" 0
 E E E
13 123
"Export"
""
520 320 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E
 E E2
LANG:0 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
LANG:1 70 -microsoft windows-arial-medium-r-normal-*-*-120-100-100-*-*-iso8859-1
0
 520 320 596 347

T 
2
LANG:0 6 Export
LANG:1 6 Export
"main()
{
  int        i;
  file       fd;
  string     st=getCurrentTime(),name,AgName,dp;
  dyn_float  df;
  dyn_string ds,items;
  
  getMultiValue(\"AgItems\",\"items\",items,
                \"Ag\",\"text\",AgName);

  // no AG selected
  if (AgName==\"\")
  {
    ISShowWarning(\"agnotselected\",AgName);
    return;
  }

  // nothing to export
  if (dynlen(items)<1)
  {
    return;
  }
  
  // name of export file
  ChildPanelOnCentralModalReturn(\"vision/is/IS_NewGroup.pnl\",
    \"Export\",makeDynString(),df,ds);

  if (dynlen(ds)<1 || strrtrim(strltrim(ds[1]))==\"\")
    return;

  name=strrtrim(strltrim(ds[1]));
  if (!IS_CheckChar(name))
  {
    // error: invalid character(s) in name
    ISShowWarning(\"invalidchar\",\"\");
    return;
  }

  name+=\".txt\";
  // file already exists
  if (access(PROJ_PATH+\"dplist/\"+name,F_OK)==0)
  {
    ChildPanelOnCentralModalReturn(\"vision/is/IS_MessageInfo.pnl\",
      getCatStr(\"para\",\"warning\"),
      makeDynString(getCatStr(\"IS\",\"fileexists\")+\" \"+
                    PROJ_PATH+\"dplist/\"+name,
                    getCatStr(\"IS\",\"yes\"),
                    getCatStr(\"IS\",\"no\")),
      df,ds);
    if (df[1]==0)
      return;
  }

  // open file
  fd=fopen(PROJ_PATH+\"dplist/\"+name,\"w\");
  if (fd==0)
  {
    ISShowWarning(\"fileopenerror\",PROJ_PATH+\"dplist/\"+name);
    return;
  }

  fprintf(fd,\"%s\\n\\n\",\"# Datapoints from archive group \"+AgName);
  for (i=1;i<=dynlen(items);i++)
  {
    // writing file
    if (strpos(items[i],\"@\")>=0)
      dp=dpAliasToName(items[i]);
    else
      dp=items[i];
    if (strpos(dp,\".\")<1) dp+=\".\";
    fprintf(fd,\"%s\\n\",dp);
  }
  
  if (fd!=0) fclose(fd);
  
  ISShowWarning(\"fileexported\",PROJ_PATH+\"dplist/\"+name);
}" 0
 E E E
0
LAYER, 1 
2
LANG:0 0 
LANG:1 0 
0
LAYER, 2 
2
LANG:0 0 
LANG:1 0 
0
LAYER, 3 
2
LANG:0 0 
LANG:1 0 
0
LAYER, 4 
2
LANG:0 0 
LANG:1 0 
0
LAYER, 5 
2
LANG:0 0 
LANG:1 0 
0
LAYER, 6 
2
LANG:0 0 
LANG:1 0 
0
LAYER, 7 
2
LANG:0 0 
LANG:1 0 
0
0