Quantcast
Channel: OpenCities Map Wiki
Viewing all articles
Browse latest Browse all 1284

Define Property Watcher to update a date property

$
0
0
Current Revision posted to Bentley Map - Wiki by Inga Morozoff on 8/18/2017 2:11:12 PM

In this example, existing polygon features have a Name and Date Changed property.

When the Name is edited, the Date Changed property will automatically update to the current date.  

To do that, you need to define a Property Watcher on the Name field with Type=SynchItem

In the Synch Item Watcher Detail section, you'll notice that there's no provision to specify a dateFormat for the ValueType:

The suggested workaround is to open the XML with  a text editor, search for the watchersList tag and edit the valueType from none to dateFormat:

<watchersList><watcher name="UpdateDateChanged" type="SynchItem" alias="Site" operation="" property="DateChanged" redraw="true" valueType="dateFormat" >%Y-%m-%d</watchersList>

Note that this change will not be reflected in the Geospatial Administrator, but will operate fine in the design file:


Viewing all articles
Browse latest Browse all 1284

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>