Author Topic: XML to GIS  (Read 2473 times)

Offline daniel_san

  • Jr. Member
  • **
  • Posts: 84
  • Karma: 1
XML to GIS
« on: January 27, 2016, 07:20:41 PM »
Hello all,

I´m trying to refresh variable on Application object trough GIS. With CfgUpdate object and CfgApplication

Looking on the samples of GIS i can see that it must be with xml.

This Xml is working, it can create the variable, but is not able to refresh if i launch again... Somebody knows?

String xml = "<?xml version=\"1.0\" encoding=\"utf-8\"?>"
<CfgData>
<CfgUpdate>
<CfgApplicationUpdateActionType DBID='351'>
<userProperties>
<list_pair key=\"v1\">
<str_pair value=\"232163\" key=\"v2\"/>
</list_pair>
</userProperties>
</CfgApplicationActionType>
</CfgUpdate>
</CfgData>

Offline PeteHoyle

  • Full Member
  • ***
  • Posts: 126
  • Karma: 13
Re: XML to GIS
« Reply #1 on: January 29, 2016, 09:30:02 AM »
Hi Daniel,

One way I have found is:

<CfgData>
  <CfgUpdate>
    <CfgApplicationUpdate DBID='522'>
    <userProperties [color=green]action="change"[/color]>
  <list_pair key="v1">
  <str_pair value="test1" key="v2"/>
  </list_pair>
  </userProperties>
    </CfgApplicationUpdate>
  </CfgUpdate>
</CfgData>

Where action can be either add, change or delete.

Pete.

Offline daniel_san

  • Jr. Member
  • **
  • Posts: 84
  • Karma: 1
Re: XML to GIS
« Reply #2 on: February 01, 2016, 09:42:08 AM »
Thank you so much  :)