Select to view content in your preferred language

Create an infowindow in a flex mobile project

3771
22
05-09-2013 12:55 PM
buslimmohcine
Deactivated User
Hi i need to creat an infowindow in a flex mobile project from my feature of point can i have  help 😛
Tags (2)
0 Kudos
22 Replies
ClintonCooper1
Deactivated User
Does this not work with flashbuilder 4.7?  I am getting an error : 

Intial Content Not found



with an error at the bottom of:


unable to open '\ags-api-3.0\fbin\ags-api-3.0.swc'



I overlayed to air 3.1 and changed the namespace as instructed above.
0 Kudos
AaronNash1
Frequent Contributor
i would remove and the add back in the swc file. if you look at the path you posted it says fbin, unless you change the folder the default location is bin
0 Kudos
ClintonCooper1
Deactivated User
because I have no idea where ags-api-3.0.swc is from (only thing I could find for this is agslib-api-3.0.swc which doesn't work).  I rebuilt the app from a new flex mobile project.  everything works well except one item called
Adobe AIR application is missing the corresponding ResponsiveViewNavigatorApplication-app.xml.

ResponsiveViewNavigatorApplication.as /mobile-map-boilerplate/src/com/esri/mobile/components Unknown AIR application.xml Problem
0 Kudos
ClintonCooper1
Deactivated User
because I have no idea where ags-api-3.0.swc is from (only thing I could find for this is agslib-api-3.0.swc which doesn't work). I have done an exhaustive search online looking for the ags-api-3.0.swc library and could not find it.


So, I rebuilt the app from a new flex mobile project.  everything works well except one item called ResponsiveViewNavigatorApplication located at /mobile-map-boilerplate/src/com/esri/mobile/components from the example is throwing this error:


Adobe AIR application is missing the corresponding ResponsiveViewNavigatorApplication-app.xml.

Anyone have any idea on this new error or could shed some light on where to find the ags-api-3.0.swc file?

Clinton
0 Kudos
AaronNash1
Frequent Contributor
you can download all the swc files from here , you will need to login using your global account
0 Kudos
ClintonCooper1
Deactivated User
Got it to kind of work after I removed the ags-api-3.0.swc and replaced it with the agslib 3.4 because after doing an exhaustive search for ags-api-3.0.swc, nothing was found.  Now it starts fine (with no compile errors) but when I go to edit the features view I get this error:


Error: Required skin part stringField cannot be found.
 at spark.components.supportClasses::SkinnableComponent/findSkinParts()
 at spark.components.supportClasses::SkinnableComponent/attachSkin()
 at spark.components.supportClasses::SkinnableComponent/validateSkinChange()
 at spark.components.supportClasses::SkinnableComponent/createChildren()
 at mx.core::UIComponent/initialize()
 at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()
 at mx.core::UIComponent/addChildAt()
 at spark.components::Group/addDisplayObjectToDisplayList()
 at spark.components::Group/http://www.adobe.com/2006/flex/mx/internal::elementAdded()
 at spark.components::Group/setMXMLContent()
 at spark.components::Group/createChildren()
 at mx.core::UIComponent/initialize()
 at app.views.supportClasses::ItemRendererAttributeInspector/initialize()
 at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()
 at mx.core::UIComponent/addChild()
 at spark.components::DataGroup/initializeTypicalItem()
 at spark.components::DataGroup/ensureTypicalLayoutElement()
 at spark.components::DataGroup/measure()
 at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::measureSizes()
 at mx.core::UIComponent/validateSize()
 at mx.managers::LayoutManager/validateSize()
 at mx.managers::LayoutManager/doPhasedInstantiation()
 at mx.managers::LayoutManager/doPhasedInstantiationCallback()




Any thoughts on how to fix this?
0 Kudos
AaronNash1
Frequent Contributor
don't use the 3.4 api, use the 3.3. you can find the download location on my previous post.
0 Kudos
ClintonCooper1
Deactivated User
That worked!  Thank you!!
0 Kudos
YannCabon
Esri Contributor
Hi,

Sorry about the late reply.
In 3.4 we modified the way the AttributeInspector works to let developers be able to customize the components display to edit feature's field.
Basically in order to migrate your custom AttributeInspectorSkin, you need to add:

    <fx:Declarations>
        <fx:Component id="codedValueDomainField">
            <fieldClasses:CodedValueDomainField minWidth="200"/>
        </fx:Component>
        <fx:Component id="dateField">
            <!--
            Display dates in local time, using a localized short date format. eg: for en_US: MM/DD/YYYY
            See PopUpFieldFormat date formats or provide a custom one.
            -->
            <fieldClasses:CalendarField dateFormat="shortDate" useUTC="false"/>
        </fx:Component>
        <fx:Component id="doubleField">
            <!--
            By default the maximum number of digits after de decimal separator is 16, but it's customizable.
            -->
            <fieldClasses:DoubleField fractionalDigits="16" minWidth="200"/>
        </fx:Component>
        <fx:Component id="integerField">
            <fieldClasses:IntegerField minWidth="200"/>
        </fx:Component>
        <fx:Component id="labelField">
            <fieldClasses:LabelField minWidth="200"/>
        </fx:Component>
        <fx:Component id="memoField">
            <fieldClasses:MemoField minWidth="200"/>
        </fx:Component>
        <fx:Component id="rangeDomainField">
            <fieldClasses:RangeDomainField minWidth="200"/>
        </fx:Component>
        <fx:Component id="singleField">
            <fieldClasses:DoubleField minWidth="200"/>
        </fx:Component>
        <fx:Component id="smallIntegerField">
            <fieldClasses:IntegerField minWidth="200"/>
        </fx:Component>
        <fx:Component id="stringField">
            <fieldClasses:StringField minWidth="200"/>
        </fx:Component>
        <fx:Component id="textField">
            <fieldClasses:TextField minWidth="200"/>
        </fx:Component>
        <fx:Component id="typeField">
            <fieldClasses:TypeField minWidth="200"/>
        </fx:Component>
    </fx:Declarations>
0 Kudos
ClintonCooper1
Deactivated User
Thanks Yann.  But I apologize as I am a flex newbie.  Where exactly do I add the code you provided.  Once I add the code, do I just remove the 3.3 and add in the new 3.4 library?  Thanks!

Clinton
0 Kudos