<?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 Re: ArcGIS JS - 4.16 - Bookmark Widget - onAdd event in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-4-16-bookmark-widget-onadd-event/m-p/439101#M40455</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read more about watch here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/guide/programming-patterns/#watching-for-property-changes" title="https://developers.arcgis.com/javascript/latest/guide/programming-patterns/#watching-for-property-changes"&gt;Programming patterns | ArcGIS API for JavaScript 4.16&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, since the bookmarks property is a collection, you have to set an event handler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Not all properties can be watched, including &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html"&gt;collections&lt;/A&gt;. Register an event handler to be notified of &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html#event-change"&gt;changes&lt;/A&gt; to a collection.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; Because both the &lt;CODE&gt;FeatureLayer.source&lt;/CODE&gt; and &lt;CODE&gt;GraphicsLayer.graphics&lt;/CODE&gt; properties are collections, use &lt;CODE&gt;on()&lt;/CODE&gt; instead of &lt;CODE&gt;watch()&lt;/CODE&gt; to be notified of changes to the values of these properties.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jul 2020 12:46:31 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2020-07-30T12:46:31Z</dc:date>
    <item>
      <title>ArcGIS JS - 4.16 - Bookmark Widget - onAdd event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-4-16-bookmark-widget-onadd-event/m-p/439099#M40453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to implement a functionality of saving the newly created bookmarks. I see in he old 3.33 version using esri/digit there is an option implemented to &lt;A href="https://developers.arcgis.com/javascript/3/jssamples/exp_bookmarks_stored_client_side.html"&gt;store in the client&lt;/A&gt; but I can use the same to take the value and pass it to my custom service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However for the new 4.16 library, I don't see any event for edit/remove etc or even for add.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I achieve this with the new library?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2020 06:20:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-4-16-bookmark-widget-onadd-event/m-p/439099#M40453</guid>
      <dc:creator>GeorgeAbraham</dc:creator>
      <dc:date>2020-07-30T06:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS JS - 4.16 - Bookmark Widget - onAdd event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-4-16-bookmark-widget-onadd-event/m-p/439100#M40454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;George,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;In 4.x you would Watch the bookmarks property. Many things that were Event'd in 3.x are not in 4.x as you can just watch properties for changes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2020 12:22:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-4-16-bookmark-widget-onadd-event/m-p/439100#M40454</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-07-30T12:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS JS - 4.16 - Bookmark Widget - onAdd event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-4-16-bookmark-widget-onadd-event/m-p/439101#M40455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read more about watch here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/guide/programming-patterns/#watching-for-property-changes" title="https://developers.arcgis.com/javascript/latest/guide/programming-patterns/#watching-for-property-changes"&gt;Programming patterns | ArcGIS API for JavaScript 4.16&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, since the bookmarks property is a collection, you have to set an event handler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Not all properties can be watched, including &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html"&gt;collections&lt;/A&gt;. Register an event handler to be notified of &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html#event-change"&gt;changes&lt;/A&gt; to a collection.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; Because both the &lt;CODE&gt;FeatureLayer.source&lt;/CODE&gt; and &lt;CODE&gt;GraphicsLayer.graphics&lt;/CODE&gt; properties are collections, use &lt;CODE&gt;on()&lt;/CODE&gt; instead of &lt;CODE&gt;watch()&lt;/CODE&gt; to be notified of changes to the values of these properties.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2020 12:46:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-4-16-bookmark-widget-onadd-event/m-p/439101#M40455</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2020-07-30T12:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS JS - 4.16 - Bookmark Widget - onAdd event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-4-16-bookmark-widget-onadd-event/m-p/439102#M40456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot &lt;A href="https://community.esri.com/migrated-users/3101"&gt;Robert Scheitlin, GISP&lt;/A&gt;and &lt;A href="https://community.esri.com/migrated-users/3856"&gt;Ken Buja&lt;/A&gt;! You guys are awesome. These pointers actually helps me clear some of my concepts and main confusion with how the watch and on worked and this makes sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I am mainly concerned with the BookmarksWidget.bookmarks Collection, I will go with the .on("change") and play around with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I just have a concern on how it will trigger for edit operation as I see only event.added, event.moved and event.removed while there is an Edit operation allowed for bookmarks.&amp;nbsp;&lt;/EM&gt;I will check if the its getting captured in the added, if not, I will reach out to either of you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2020 03:50:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-4-16-bookmark-widget-onadd-event/m-p/439102#M40456</guid>
      <dc:creator>GeorgeAbraham</dc:creator>
      <dc:date>2020-07-31T03:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS JS - 4.16 - Bookmark Widget - onAdd event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-4-16-bookmark-widget-onadd-event/m-p/1243650#M79726</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/53310"&gt;@GeorgeAbraham&lt;/a&gt;&amp;nbsp;, did you find it out? how to trigger for add, remove, and edit?&lt;/P&gt;</description>
      <pubDate>Sat, 24 Dec 2022 13:19:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-4-16-bookmark-widget-onadd-event/m-p/1243650#M79726</guid>
      <dc:creator>MohammedZaki</dc:creator>
      <dc:date>2022-12-24T13:19:51Z</dc:date>
    </item>
  </channel>
</rss>

