Select to view content in your preferred language

3.0preRelease - eSearch 2.5.1.6

670
2
Jump to solution
04-02-2012 06:28 AM
philippschnetzer
Frequent Contributor
Robert,

Trying to upgrade an existing flexviewer 2.4 app to 3.0prerelease.  I get the following error when using the latest eSearch download:

1061: Call to a possibly undefined method hasOwnProperty through a reference with static type com.esri.ags.layers.supportClasses:IDomain. SearchWidget.mxml /LIU3beta/src/widgets/eSearch line 2567 Flex Problem


Is there something I am missing or do basically all of the widgets in the code gallery need to be updated to work with the pre-release 3.0 api?

Thanks!
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Phillip,

   3.0 of the API made changes to the IDomain so this widget will require an update to fix that.

View solution in original post

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Phillip,

   3.0 of the API made changes to the IDomain so this widget will require an update to fix that.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Phillip,

   Here is the changes to be made:

                    if (field && field.domain && field.domain is CodedValueDomain){
                        codedValueDomain = field.domain as CodedValueDomain;
                        domainsCache[domainsKey] = codedValueDomain;
                    }else if (field && field.domain && field.domain is RangeDomain){
                        rangeDomain = field.domain as RangeDomain;
                        domainsCache[domainsKey] = rangeDomain;                        
                    }else{


You will also have to replace the PopUpRendererSkin.mxml file in the eSearch folder with the new 3.0 Flex API version of that skin.

Don't forget to click the Mark as answer check on this post and to click the top arrow (promote) as shown below:
0 Kudos