<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic UndoManager's Operations in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/undomanager-s-operations/m-p/724730#M67268</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As per the API:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;add(operation)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Adds an undo operation to the stack and clears the redo stack.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Return value: none&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Input Parameters:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Operation&amp;gt; operation Required An operation to add to the stack. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Code snippets:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; var operation = new esri.dijit.editing.Delete({&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; featureLayer: layer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; deletedGraphics: [feature]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; });&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; undoManager.add(operation);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am curious how an Operation is defined.&amp;nbsp; It is not a part of the API, and considering the wide variety of actions I would like to include, I have generally no idea how to go about defining an Operation to add to my stack, other than the ones included in the API for UndoManager and in the one Sample that uses it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone implemented this?&amp;nbsp; Any insight you could provide would be great.&amp;nbsp; Our highest priority for this involves drawing graphics on the map, changing the color/scale/rotation/etc. of those graphics, deleting said graphics, etc...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jun 2011 20:47:17 GMT</pubDate>
    <dc:creator>MarkHoover</dc:creator>
    <dc:date>2011-06-30T20:47:17Z</dc:date>
    <item>
      <title>UndoManager's Operations</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/undomanager-s-operations/m-p/724730#M67268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As per the API:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;add(operation)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Adds an undo operation to the stack and clears the redo stack.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Return value: none&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Input Parameters:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Operation&amp;gt; operation Required An operation to add to the stack. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Code snippets:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; var operation = new esri.dijit.editing.Delete({&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; featureLayer: layer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; deletedGraphics: [feature]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; });&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; undoManager.add(operation);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am curious how an Operation is defined.&amp;nbsp; It is not a part of the API, and considering the wide variety of actions I would like to include, I have generally no idea how to go about defining an Operation to add to my stack, other than the ones included in the API for UndoManager and in the one Sample that uses it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone implemented this?&amp;nbsp; Any insight you could provide would be great.&amp;nbsp; Our highest priority for this involves drawing graphics on the map, changing the color/scale/rotation/etc. of those graphics, deleting said graphics, etc...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2011 20:47:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/undomanager-s-operations/m-p/724730#M67268</guid>
      <dc:creator>MarkHoover</dc:creator>
      <dc:date>2011-06-30T20:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: UndoManager's Operations</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/undomanager-s-operations/m-p/724731#M67269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Mark,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can certainly implement your own operations by extending the base class "esri.OperationBase", which requires to implement two methods�?"performUndo" and "performRedo". &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please take a look at the doc:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/operationbase.htm"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/operationbase.htm&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a sample included.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2011 00:28:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/undomanager-s-operations/m-p/724731#M67269</guid>
      <dc:creator>JianHuang</dc:creator>
      <dc:date>2011-07-01T00:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: UndoManager's Operations</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/undomanager-s-operations/m-p/724732#M67270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Excellent, Jian, thanks.&amp;nbsp; Perhaps UndoManager's add/remove methods should mention this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, the sample provided does not include an example of inheriting from the OperationBase class.&amp;nbsp; Rather, it uses the provided operations from the Editing realm (Add, Cut, Update, Union, Delete).&amp;nbsp; Any chance of getting a sample showing an Operation built by inheriting from OperationBase?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2011 12:01:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/undomanager-s-operations/m-p/724732#M67270</guid>
      <dc:creator>MarkHoover</dc:creator>
      <dc:date>2011-07-01T12:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: UndoManager's Operations</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/undomanager-s-operations/m-p/724733#M67271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Mark,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a code snippet illustrating how to inherit the base class in the section of "Constructor Detail".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2011 21:44:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/undomanager-s-operations/m-p/724733#M67271</guid>
      <dc:creator>JianHuang</dc:creator>
      <dc:date>2011-07-01T21:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: UndoManager's Operations</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/undomanager-s-operations/m-p/724734#M67272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Mark,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This sample uses a custom operation:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/demos/graphics/graphics_undoredo.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/demos/graphics/graphics_undoredo.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can view the custom operation code here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/demos/graphics/myModules/customOperation.js"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/demos/graphics/myModules/customOperation.js&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2011 05:29:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/undomanager-s-operations/m-p/724734#M67272</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2011-07-04T05:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: UndoManager's Operations</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/undomanager-s-operations/m-p/724735#M67273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jian and Kelly, thanks for the help.&amp;nbsp; Those were exactly the resources I needed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2011 12:05:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/undomanager-s-operations/m-p/724735#M67273</guid>
      <dc:creator>MarkHoover</dc:creator>
      <dc:date>2011-07-05T12:05:43Z</dc:date>
    </item>
  </channel>
</rss>

