<?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 Add Event Listener to Edit Widget&amp;nbsp; Pop-up Skin in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/add-event-listener-to-edit-widget-nbsp-pop-up-skin/m-p/230449#M5431</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working on customising the Edit Widget.&amp;nbsp; I have made some changes to the EditWidgetAttributeInspectorSkin to add a button which dispatches an event to the Edit Widget to tell it to display a secondary modal box for the user to enter some values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When the user clicks the ok button I want to pass a value from the modal box back to the EditWidgetAttributeInspectorSkin and display the value between 2 buttons to allow the user to change or delete the info.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have created a custom event which contains a data object similar to the event class here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://www.flex-blog.com/flex-custom-event-example/" rel="nofollow" target="_blank"&gt;http://www.flex-blog.com/flex-custom-event-example/&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem is catching the event in the EditWidgetAttributeInspectorSkin, I can catch it in the Edit widget but I don't know how to pass it on to the EditWidgetAttributeInspectorSkin or just catch it in there in the first place.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The 3 screenshots attached show the workflow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Dec 2012 09:01:26 GMT</pubDate>
    <dc:creator>AnthonyKeogh1</dc:creator>
    <dc:date>2012-12-04T09:01:26Z</dc:date>
    <item>
      <title>Add Event Listener to Edit Widget  Pop-up Skin</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/add-event-listener-to-edit-widget-nbsp-pop-up-skin/m-p/230449#M5431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working on customising the Edit Widget.&amp;nbsp; I have made some changes to the EditWidgetAttributeInspectorSkin to add a button which dispatches an event to the Edit Widget to tell it to display a secondary modal box for the user to enter some values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When the user clicks the ok button I want to pass a value from the modal box back to the EditWidgetAttributeInspectorSkin and display the value between 2 buttons to allow the user to change or delete the info.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have created a custom event which contains a data object similar to the event class here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://www.flex-blog.com/flex-custom-event-example/" rel="nofollow" target="_blank"&gt;http://www.flex-blog.com/flex-custom-event-example/&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem is catching the event in the EditWidgetAttributeInspectorSkin, I can catch it in the Edit widget but I don't know how to pass it on to the EditWidgetAttributeInspectorSkin or just catch it in there in the first place.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The 3 screenshots attached show the workflow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 09:01:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/add-event-listener-to-edit-widget-nbsp-pop-up-skin/m-p/230449#M5431</guid>
      <dc:creator>AnthonyKeogh1</dc:creator>
      <dc:date>2012-12-04T09:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Add Event Listener to Edit Widget  Pop-up Skin</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/add-event-listener-to-edit-widget-nbsp-pop-up-skin/m-p/230450#M5432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: AntoJK&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have managed to pass the event down to the skin using the following code in the Edit widget.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It might not be the best solution but it is the only one I have at the minute&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;recordPanel.addEventListener(PassDataEvent.DATA_PASSED, passOnData);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;The recordPanel is the dialog that the user enters data in.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;private function passOnData(event:PassDataEvent):void {&amp;nbsp; var skinAccessObj:EditWidgetAttrInspectorRelatedSkin = editor.attributeInspector.skin as EditWidgetAttrInspectorRelatedSkin;&amp;nbsp; skinAccessObj.addRelatedFeatBtn(event); }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 11:38:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/add-event-listener-to-edit-widget-nbsp-pop-up-skin/m-p/230450#M5432</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-12-04T11:38:49Z</dc:date>
    </item>
  </channel>
</rss>

