<?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: Adding Features to the Related Tables Example? in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/adding-features-to-the-related-tables-example/m-p/491927#M11319</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Joseph,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I assumed that you want to add features directly from the code without changing the feature server behind.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In this case, I am not positive that you can add any existed features or create a new category feature from the code behind.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Put another way, even though you can add the feature but you can't fully function the vote button, because the vote information will only update those features connect with the table behind. Like the description said in the example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you "click to vote", the "voteRecordAttributes" are populated; specifically the "sf_311_serviceoid" attribute is set to the "objectid" of the selected feature. These attributes are then included in the "voteRecord" graphic that is then saved through the feature layer "incidentVoteTable" using the apply edits method. Each time you vote a new record is added to the "Incident Priority" table. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Make sure the new feature/category you add in your feature server&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Create the relationships both in ServiceRequest_IncidentPriority to Incident Priority and IncidentPriority_ServiceRequest&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope my tips may help you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Sep 2013 14:39:42 GMT</pubDate>
    <dc:creator>YueWu1</dc:creator>
    <dc:date>2013-09-06T14:39:42Z</dc:date>
    <item>
      <title>Adding Features to the Related Tables Example?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/adding-features-to-the-related-tables-example/m-p/491926#M11318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to add features to the &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/flex/sample-code/editing-a-related-table.htm"&gt;editing related table example&lt;/A&gt;&lt;SPAN&gt; and still keep the voting functionality?&amp;nbsp; I've been trying for a while now but can't quite get it to work.&amp;nbsp; The infowindow with the vote button doesn't want to come back.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can post some code if needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2013 21:04:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/adding-features-to-the-related-tables-example/m-p/491926#M11318</guid>
      <dc:creator>JHayes</dc:creator>
      <dc:date>2013-09-04T21:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Features to the Related Tables Example?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/adding-features-to-the-related-tables-example/m-p/491927#M11319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Joseph,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I assumed that you want to add features directly from the code without changing the feature server behind.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In this case, I am not positive that you can add any existed features or create a new category feature from the code behind.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Put another way, even though you can add the feature but you can't fully function the vote button, because the vote information will only update those features connect with the table behind. Like the description said in the example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you "click to vote", the "voteRecordAttributes" are populated; specifically the "sf_311_serviceoid" attribute is set to the "objectid" of the selected feature. These attributes are then included in the "voteRecord" graphic that is then saved through the feature layer "incidentVoteTable" using the apply edits method. Each time you vote a new record is added to the "Incident Priority" table. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Make sure the new feature/category you add in your feature server&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Create the relationships both in ServiceRequest_IncidentPriority to Incident Priority and IncidentPriority_ServiceRequest&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope my tips may help you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 14:39:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/adding-features-to-the-related-tables-example/m-p/491927#M11319</guid>
      <dc:creator>YueWu1</dc:creator>
      <dc:date>2013-09-06T14:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Features to the Related Tables Example?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/adding-features-to-the-related-tables-example/m-p/491928#M11320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;goldenlimit,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply.&amp;nbsp; The scenario I'm attempting to complete is this;&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Someone creates a new feature with a comment.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Another person sees the new feature on the map, selects it to read the comment, then has the ability to give it a 'Thumbs Up' vote if they agree with the comment.&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;SPAN&gt;I've worked out the AS not allowing existing comments/features to be editable once created. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It think my main challenges are;&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;creating a new related entry in the related table once a new feature has been added to the map (I think you were getting at this in point #2).&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Allowing the related tables to be edited by voting.&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;SPAN&gt;I'm not sure I understand what you're getting at in point #1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 16:41:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/adding-features-to-the-related-tables-example/m-p/491928#M11320</guid>
      <dc:creator>JHayes</dc:creator>
      <dc:date>2013-09-18T16:41:09Z</dc:date>
    </item>
  </channel>
</rss>

