{"id":5871,"date":"2014-04-07T23:40:14","date_gmt":"2014-04-07T23:40:14","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/07\/get-text-from-a-reapeater-object-flex-collection-of-common-programming-errors\/"},"modified":"2014-04-07T23:40:14","modified_gmt":"2014-04-07T23:40:14","slug":"get-text-from-a-reapeater-object-flex-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/07\/get-text-from-a-reapeater-object-flex-collection-of-common-programming-errors\/","title":{"rendered":"Get text from a reapeater object &#8211; flex-Collection of common programming errors"},"content":{"rendered":"<p>I have a label that is using a repeater to get information form a database. Now I&#8217;m trying to pass the information in that label to another label component, but I haven&#8217;t had any luck.<\/p>\n<p>if I do a trace on the label in the repeater eg.<\/p>\n<pre><code>trace (Gotid.text);\n<\/code><\/pre>\n<p>I get this error in debug mode<\/p>\n<p>warning: unable to bind to property &#8216;user_name&#8217; on class &#8216;Object&#8217; (class is not an IEventDispatcher) undefined<\/p>\n<p>Any ideas on how I go about getting information form Gotid to display as text in another label?<\/p>\n<ul>\n<li>\n<p>k I&#8217;ll try to make this as straight forward as possible<\/p>\n<pre><code>    private function Getid():void {\n    var stmt:SQLStatement = new SQLStatement();\n    stmt.sqlConnection = sqlConn;\n    stmt.text = \"SELECT * FROM tbl_animal WHERE animal_ptag='\"+ptagInput.text+\"'\"; \n    stmt.execute();\n    var result:SQLResult = stmt.getResult();\n    acGetid = new ArrayCollection(result.data);\n    animalid.text = Gotid.text;\n    trace (Gotid.text);\n}\n<\/code><\/pre>\n<\/li>\n<\/ul>\n<p>&#8211;<\/p>\n<pre><code>    \n  \n\n\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I have a label that is using a repeater to get information form a database. Now I&#8217;m trying to pass the information in that label to another label component, but I haven&#8217;t had any luck. if I do a trace on the label in the repeater eg. trace (Gotid.text); I get this error in debug [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5871","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5871","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5871"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5871\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5871"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5871"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}