Gumbo FlexGlobals.topLevelApplication data binding issues

Hi
what is the reccomended way to bind a datasource of a sub-component to a Bindable collection in the top level application location.
in 3, for this I would use {Application.application.instance_of_bindable_variable}, now I get a warning saying that data binding will not be able to detect assingments to  {FlexGlobals.topLevelApplication.instance_of_bindable_variable}
so, how do i bind a data source of a sub-component to a variable instantiated at the Application level in Flex 4?
Thanks,
Jed

Hi Alex, thanks for the reply.
i added an import statement to mx.core.Application to the component and cast the FlexGlobals.topLevelApplication call, as you suggested, and it will not find the property now : "Eror 1119, access of possibly undefined property."
I am trying to bind to a public ArrayCollcection that is marked with metadata as bindable in the toplevelApplication mxml file. as such
## index.mxml
[Bindable]
public var myArrayCollection:ArrayCollection;
## myComponent.mxml
<myComponent source = "{Application(FlexGlobals.topLevelApplication).myArrayCollection}" />
The project is imported from a Flex 3.x project and we are trying to move it over. Would it matter if the namespace for the script tag is mx vs fx, eg <mx:Script> | <fx:Script> ?
any help would be much appreciated. Thanks in advance.

Similar Messages

  • A data-binding issue with a combo box.

    Hi,
    Iu2019m having a data-binding issue with a combo box.  The field it is bound to is an integer.  The valid values in the combo box are 1, 2, and 3.  If I add a record when it is set to 1 or 2, the value gets stored correctly.  If I add a record when it is set to 3, it is stored as 1.  However, I can bring up the record just added on the form, change it to 3, and click u201CUpdateu201D and it is saved correctly as 3.  If I change it so that the valid values are 4, 5, and 6, it saves a 1 regardless of what is selected in the combo box.  It looks like the combo box is correctly bound for updates but not for adds.  The table is a master type UDO.  Any ideas?  Iu2019m somewhat committed to the field being an integer.  I'm using 2007A PL47.
    Thanks,
    Mike
    Edited by: Mike Angelastro on Jul 1, 2009 2:43 PM

    I tried a few things on my own.  The result is that I decided that it was not a good idea to use a combo box bound to an integer (numeric) field.  I donu2019t think the SDK can handle it.  The reason it was an integer field in the first place is that before I changed it to a combo box it was a group of two option buttons.  Option buttons use an integer (numeric) field.  This worked just fine until I added a third option; the SDK didnu2019t handle the third option correctly when adding records.  I thought that using a combo box instead would fix that.  I was wrong; the problem remained.  So I decided to use a character (alphanumeric) field instead.  This works just fine.
    So here is my advice:  Never use option buttons if they need to be bound to the database; a combo box will actually work better when bound to the database.  But use a character (alphanumeric) field.
    Edited by: Mike Angelastro on Jul 5, 2009 9:15 PM

  • DataGrid data binding issues

    I'm trying to create a DataGrid in code and populate it with
    information. The final product I'm trying to create is a form that
    displays the files you selected after browsing your computer. I
    plan to place the FileReferenceList informaiton into an array that
    will become the DataGrid's dataProvider.
    Would someone please let me know what I'm doing wrong, or
    provide a link to a great resource on how to create and use
    DataGrids with Actionscript 3?
    I keep getting the following error;
    "ArgumentError: Error #1063: Argument count mismatch..."
    This error occurs during the binding process of the
    dataProvider method.
    Below is an example of the relevant code I'm trying to use;
    var _dgFiles:DataGrid = new DataGrid();
    _dgFiles.allowDragSelection = false;
    _dgFiles.allowMultipleSelection = true;
    _dgFiles.resizableColumns = false;
    _dgFiles.sortableColumns = false;
    _dgFiles.percentWidth = 100;
    _dgFiles.percentHeight = 100;
    var aColumns:Array = _dgFiles.columns;
    var dgcIcon:DataGridColumn = new DataGridColumn();
    var dgcName:DataGridColumn = new DataGridColumn();
    var dgcSize:DataGridColumn = new DataGridColumn();
    var dgcFile:DataGridColumn = new DataGridColumn();
    dgcIcon.headerText = "";
    dgcIcon.dataField = "icon";
    dgcIcon.width = 26;
    dgcIcon.editable = false;
    dgcIcon.resizable = true;
    dgcIcon.visible = false;
    dgcName.headerText = "File";
    dgcName.dataField = "name";
    dgcName.editable = false;
    dgcName.resizable = true;
    dgcSize.headerText = "Size";
    dgcSize.dataField = "size";
    dgcSize.width = 50;
    dgcSize.editable = false;
    dgcFile.headerText = "Data";
    dgcFile.dataField = "data";
    dgcFile.wordWrap = false;
    dgcFile.editable = false;
    dgcFile.visible = false;
    aColumns.push(dgcIcon);
    aColumns.push(dgcName);
    aColumns.push(dgcSize);
    aColumns.push(dgcFile);
    _dgFiles.columns = aColumns;
    addChild(_dgFiles);
    var a1:Array = new
    Array({icon:"*.jpg",name:"FileName1.jpg",size:10002,data:"TEST1"});
    var a2:Array = new
    Array({icon:"*.jpg",name:"FileName2.jpg",size:10002,data:"TEST2"});
    var a:Array = new Array();
    a.push(a1);
    a.push(a2);
    _dgFiles.dataProvider = a;
    // This is where it fails. I think my test array "a" is not
    correct. How do I provide the correct information to the
    // DataGrid so that it works?

    I think there's an error where you're combining the arrays:
    a.push(a1);
    a.push(a2);
    is actually creating a 2-dimensional array, instead of
    concatenating them into a single array. Is that what you intended?
    For a datagrid, you want an Array/ArrayCollection of objects.
    I copied and pasted your code and changed the array part to
    this:
    var data:Array = new Array(
    {icon:"*.jpg",name:"FileName1.jpg",size:10002,data:"TEST1"},
    {icon:"*.jpg",name:"FileName2.jpg",size:10002,data:"TEST2"}
    _dgFiles.dataProvider = new ArrayCollection(data);
    And it works as (I think) you want.

  • Data Binding Issue

    Hello,
      I am trying to figure out how to Bind Data to a Custom form I created in Screen Painter. I would like to have all of the functionality(Add/Update/Find) of a standard form.  I beleive this needs to be a UDO, but seem to be missing some key concepts in getting this to work.  In programming this I am getting a "File Not Found" error when trying to bind the fields to my User Defined Table.
    Below is the code I am attempting to do. The Form works and everything is fine until I attempt to Bind the Data at that point it throws an exception.
    Dim CP As SAPbouiCOM.FormCreationParams
    Dim oEdit As SAPbouiCOM.EditText
    Dim SBOXMLDoc As System.Xml.XmlDocument
    Dim SBOFormCreationParam As SAPbouiCOM.FormCreationParams
    Dim SBOForm As SAPbouiCOM.Form
    SBOXMLDoc = New Xml.XmlDocument()
    SBOXMLDoc.Load("C:\WorkForm.srf")
    SBOFormCreationParam = applic.CreateObject_(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)
    SBOFormCreationParam.XmlData = SBOXMLDoc.InnerXml
    SBOForm = pApp.Forms.AddEx(SBOFormCreationParams)
    SBOForm.Freeze(True)
    Try
    '5 is the UID of the Text Field I am trying to bind
    '@AB_OWCT is an existing User Defined Table
    'U_WorkID is an existing field in that Table
    oEdit = SBOForm.Items.Item("5").Specific
    oEdit.DataBind.SetBound(True, "@AB_OWCT", "U_WorkID")
    Catch
      ' Err.Desc = "File Not Found'
    End Try
    SBOForm.DataBrowser.BrowseBy = "5"
    SBOForm.Freeze(False)
    I have tried to look at the Source code of the UDO Examples but have not had much luck in figuring out what I am missing.
    Thank You in Advance
    Paul

    Hi Paul !!
    I'm kind of new with all this but maybe it will help you.
    First bind all your fields in your form to your UDO table.
    Dont Forget : 
    Alias = Your UDF or SBO field
    Databind = True
    Database = @......
    Then try this....
    Private Function LoadFromXML(ByRef FileName As String) As String
            Dim oXmlDoc As Xml.XmlDocument
            oXmlDoc = New Xml.XmlDocument
            Dim sPath As String
            oXmlDoc.Load(your path & FileName)
            Return (oXmlDoc.InnerXml)
        End Function
    Private Sub .....
    Try
                oForm = SBO_Application.Forms.Item("Your Form ID")
                SBO_Application.MessageBox("Form Already Open")
            Catch ex As Exception
                Dim fcp As SAPbouiCOM.FormCreationParams
                fcp = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)
                fcp.BorderStyle = SAPbouiCOM.BoFormBorderStyle.fbs_Fixed
                fcp.FormType = "Your Form Type"
                fcp.UniqueID = "Your Form ID"
                fcp.XmlData = LoadFromXML("Your Form.SRF")
                oForm = SBO_Application.Forms.AddEx(fcp)
                oForm.DataBrowser.BrowseBy = "Your Field"
            End Try
    End Sub .....
    Make sure that the field you want to browse by is included in the search fields when you register your UDO... and that your application is refering to the path where your .SRF file is. 
    Normaly File not found error is not from the code but that it cant find your .SRF file...
    HtH
    Alain

  • AutoComplete data bind issues

    I have an AutoComplete component in a viewstack which binds
    to correct value from a dataProvider and displays the selected
    value. Everything works beautifully until I select a different
    option and the databind stops working. The newly selected value is
    to be saved and associated with the AutoComplete as the default
    only after I click a button. When I "select" a different option and
    switch the view without clicking the save button and come back to
    the viewstack, the AutoComplete is supposed to display the initial
    value, instead it retains the value of the option selected last
    time. But if I clear the AutoComplete textInput, switch the view
    and come back it displays the correct value. Anyone come across
    similar problems? Any ideas?
    I tried to use the dataChange event to rebind but found that
    the dataChange event is never fired. Next thing I was thinking of
    doing was to have the application recreate the AutoComplete
    everytime the view is changed. Any ideas?

    I am going to give you a simpler example but you would do
    something like this:

  • Empty Shared Variables & Data Binding not working in dynamically called VI

    Hi,
    I have just upgraded a system from LabVIEW 2011 to 2012 DS2.  I have a real-time PXI system running several shared variables, hosted on the PXI.
    After what appeared to be a succesful upgrade I have a couple of odd issues. 
    1.  The PXI writes test data into a network shared variable, based on a typedef of an array of custom clusters.  The variable is disconnected from the typedef, as RT does not function with shared variables linked to typedefs.  It seems that writing a seingle entry to the array is fine, but writing multiple entries causes the variable to appear empty. 
    I still need to debug this a little more, as while I was station to do so this other issue popped up.
    2.  I have some controls on the Host app with data binding to shared variables.  The host app uses three VIs dynamically called into the wrapper VI.  One of these called VIs is not able to connect to its variable when inserted in to the wrapper, but it can if run independently.  The other two have no such trouble.  Where I see a problem, the indication LED is grey and the mouse-over text reads "no status".  What does this mean?
    Any clues?
    Thanks,
    Ian

    I have changed the Invoke Node to a Run Asynchronous node, and this seems to have fixed the data binding issue. 
    The other issue may be related to a bug fixed in 2012 SP1:
    368648 Network Stream operations return Error 42 when data type contains nested clusters of typedefs
    I am now getting error 42 when reading a particular network shared variable.  This variable contains the results of measurements, in a data type which contains an array of nested clusters of typedefs.  When there is a single entry in the array I can read the variable fine, but when there is more than one entry in the array it does not read and I get error 42.
    I have downloaded 2012 SP1, and will see if this helps. 
    Ian

  • Performance issue during SharePoint list data bind to html table using Ajax call(Rest API)

    Hello,
    I am having multiple lists in my SharePoint Site. I am using SharePoint REST APIs to get data from these lists and bind a HTML Table. Suppose, I have 5 lists with 1000 records each, I am looping 5000 times to bind each row(record) to this html table. This
    is causing performance issue which is taking a very long time to bind. 
    Is there any way So that I can reduce this looping OR is there any better approach to improve the performance. Please kindly Suggest.  Thank you for your help :)
    Warm Regards,
    Ratan Kumar Racha

    Hi Racha,
    For handling large data binding in a page,
    AngularJS would be a great option if you might would worry about the performance.
    You can get more information about using AngularJS from the two links below:
    https://www.airpair.com/angularjs/posts/angularjs-performance-large-applications
    http://www.sitepoint.com/10-reasons-use-angularjs/
    Best regards
    Patrick Liang
    TechNet Community Support

  • Issues with removing Flex data binding to use Air 14

    Hello,
    I was wondering if anyone had optimal solution for replacing the Flex data binding classes in Air 14. I'm unable to merge the Flex and Air SDK together anymore so all the binding handlers need to be replaced. Has anyone else run into this issue yet? The automated binding generation and handling was the best feature of Flex and now that it's broken it creates huge issues for me.
    This is for Air desktop and mobile applications. They still build just no of the event handling works.
    Cheers,
    Pete

    I had forgotten I solved this myself last Dec. So basically from what I can tell the precompiler no longer does any [Bindable] conversions so you have to manually create the getters and setters for your model when this changes. I hope this helps anyone who may run into the same problem. There's literally no documentation on this any wheres.
    i.e.
    [Bindable]
    public var username : String;
    becomes
    private var _username : String;
            [Bindable(event="propertyChange")]
            public function get username():String
                return this._serviceState;
            public function set username(value:String):void
                var oldValue:Object = this._username;
                if (oldValue !== value)
                    this._username = value;
                    if (this.hasEventListener("propertyChange"))
                        this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "username", oldValue, value));
    You also need to make sure what ever class contains this property implements IEventDispatcher and has the following functions:
    IEventDispatcher implementation
    private var _bindingEventDispatcher:flash.events.EventDispatcher =
    new flash.events.EventDispatcher(flash.events.IEventDispatcher(this));
      * @inheritDoc
    public function addEventListener(type:String, listener:Function,
      useCapture:Boolean = false,
      priority:int = 0,
      weakRef:Boolean = false):void
    _bindingEventDispatcher.addEventListener(type, listener, useCapture,
    priority, weakRef);
      * @inheritDoc
    public function dispatchEvent(event:flash.events.Event):Boolean
    return _bindingEventDispatcher.dispatchEvent(event);
      * @inheritDoc
    public function hasEventListener(type:String):Boolean
    return _bindingEventDispatcher.hasEventListener(type);
      * @inheritDoc
    public function removeEventListener(type:String,
    listener:Function,
    useCapture:Boolean = false):void
    _bindingEventDispatcher.removeEventListener(type, listener, useCapture);
      * @inheritDoc
    public function willTrigger(type:String):Boolean
    return _bindingEventDispatcher.willTrigger(type);

  • Unable to find information on WS data binding error on WLS 9.2.03 startup

    Frustratingly, when I Google for "WS data binding error" I get 'old' links to BEA forum issues which may help but these are nowhere to be seen on the read-only copies now on Oracle forums here :- http://forums.oracle.com/forums/category.jspa?categoryID=202.
    The link I'm looking for is:-
    forums.bea.com/thread.jspa?threadID=600017135
    Is there anywhere I can get access to this information or should I just post new items on the new WLS forum?
    Many thanks.
    p.s. the errors I am trying to research are as follows:-
    <WS data binding error>could not find schema type '{http://xmlns.oracle.com/apps/otm}Transmission
    <WS data binding error>Ignoring element declaration {http://xmlns.oracle.com/apps/otm}Transmission because there is no entry for its type in the JAXRPC mapping file.

    Check this..
    http://docs.oracle.com/cd/E10291_01/doc.1013/e10538/weblogic.htm
    you can ignore those warnings
    The following data type binding warnings and errors are displayed during deployment and start of Decision Service (Business Rules) Applications. These errors and warnings can be ignored.
    <WS data binding error>could not find schema type '{http://www.w3.org/2001/XMLSchema}NCName
    <WS data binding error>could not find schema type
    '{http://websphere.ibm.com/webservices/}SOAPElement
    java.lang.IllegalStateException
    at weblogic.wsee.bind.runtime.internal.AnonymousTypeFinder$GlobalElementNode.
    getSchemaProperty(AnonymousTypeFinder.java:253)

  • Report data binding error unknown column name

    Hi,
    I am having a problem with the new 7.02 update of Report
    Builder. The issue is it's not finding my SQL query.
    I have wrote my query initally in the advance mode, and it
    doesn't seem to reconize it. Is there an issue with this?
    I did manage to fix one of my reports by using the basic mode
    and selecting all my tables and seting my linkage and criteria.
    I have other computers that i have not updated to 7.02 and
    they do not have this issue. Below is the error:
    Error Occurred While Processing Request
    Report data binding error Unknown column name : work_phone.
    Please try the following:
    Check the ColdFusion documentation to verify that you are
    using the correct syntax.
    Search the Knowledge Base to find a solution to your problem.
    Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0;
    .NET CLR 1.1.4322; .NET CLR 2.0.50727)
    Remote Address 127.0.0.1
    Referrer
    Date/Time 13-Jul-06 02:33 PM
    Stack Trace (click to expand)
    coldfusion.runtime.report.Report$ReportDataBindingException:
    Report data binding error Unknown column name : work_phone.
    at
    coldfusion.runtime.report.Report.runReport(Report.java:420)
    at
    coldfusion.filter.ComponentFilter.invoke(ComponentFilter.java:96)
    at
    coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:225)
    at
    coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)
    at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
    at
    coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69)
    at
    coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
    at
    coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
    at
    coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
    at
    coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
    at coldfusion.xml.rpc.CFCServlet.invoke(CFCServlet.java:106)
    at coldfusion.xml.rpc.CFCServlet.doGet(CFCServlet.java:157)
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at
    org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
    at
    jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
    at
    jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at
    jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)
    at
    jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
    at
    jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204)
    at
    jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:349)
    at
    jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:457)
    at
    jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:295)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    This report works in 7.01. So all query variables match with
    a variable in the SQL select statement.
    Anyone have any Ideas??
    Thanks,
    Daniel

    Thank you very much for help.
    The "Unknown column name " is a field still used in my
    report, so I can't remove it.
    After I clear the query in the report and reopen the report
    and apply the same query back to it, I get different error message:
    Element TASKNUM is undefined in QUERY.
    The error occurred in : line 1
    -1 : Unable to display error's location in a CFML template.
    I know for sure this "Element TASKNUM is undefined in QUERY."
    is defined in query. each time it complains something different. I
    get really confused.
    Thanks again.
    Yueming

  • Newbie Help Needed: Data Binding

    Okay, lemme see if I can possibly explain this issue clearly
    enough... (The whole explanation of the object graph may very well
    be superfluous, so you can probably skip to the bottom.)
    I have a whole object graph that I've downloaded from my
    server to my Flex client. Here's the general gist of object
    relationships (and I have to lay it out this way because there's
    not really any way to sketch on a whiteboard the object graph):
    Object A is a parent of object B, and there is a one-to-many
    relationship between the two. That is, there is one A to many B's.
    There is a one-to-one relationship between Object B and
    Object C.
    There is a many-to-one relationship between Object C and
    Object D. That is, there are many C's to one D.
    There is a many-to-one relationship between Object D and
    Object E. That is, there are many D's to one E.
    There is a many-to-one relationship between Object E and
    Object F. That is, there are many E's to one F.
    Now, because I am only given information from the user as far
    as which object A is the chosen object (that is, I'm not told right
    off the bat which B's, C's, D's, E's, and F's to pull from the
    server), I have a series of events being fired and listened to, so
    the sequence of steps pretty much goes like this:
    User chooses a particular object A.
    I pull A from the server.
    I pull all of A's children (the B objects).
    I look at the keys stored in the B's and pull the
    corresponding C's.
    I look at the keys stored in the C's and pull their parents,
    the D's.
    I look at the keys stored in the D's and pull their parents,
    the E's.
    I look at the keys stored in the E's and pull their parents,
    the F's.
    Now, here's where I'm having an issue:
    The B objects store a Date object called startTime. The D
    objects store an integer called runTimeMillis (the runtime of the
    video, in milliseconds). I need to somehow present endTime, which
    is simply the sum of startTime + runTimeMillis. But I have to do it
    in a data binding because the D objects are downloaded later than
    the B objects. But I've tried so many different ways of coding it,
    and nothing seems to work. Here's where I'm at:
    <mx:DateFormatter id="hmmssaFormatter"
    formatString="L:NN:SSA"/>
    <mx:Label text="{hmmssaFormatter.format(B.startTime +
    B.C.D.runTimeMillis)}" fontWeight="bold"/>
    The only thing I get in my client is a blank label. What am I
    doing wrong? The following seems to work just fine in displaying
    the start time of the video:
    <mx:Label text="{hmmssaFormatter.format(B.startTime)}"
    fontWeight="bold"/>
    But adding a number of milliseconds doesn't seem to work at
    all. Can anyone shed some light on the matter? Thanks!

    "Noreaster76" <[email protected]> wrote in
    message
    news:[email protected]...
    > Okay, lemme see if I can possibly explain this issue
    clearly enough...
    > (The
    > whole explanation of the object graph may very well be
    superfluous, so you
    > can
    > probably skip to the bottom.)
    >
    > I have a whole object graph that I've downloaded from my
    server to my Flex
    > client. Here's the general gist of object relationships
    (and I have to
    > lay it
    > out this way because there's not really any way to
    sketch on a whiteboard
    > the
    > object graph):
    >
    > Object A is a parent of object B, and there is a
    one-to-many relationship
    > between the two. That is, there is one A to many B's.
    > There is a one-to-one relationship between Object B and
    Object C.
    > There is a many-to-one relationship between Object C and
    Object D. That
    > is,
    > there are many C's to one D.
    > There is a many-to-one relationship between Object D and
    Object E. That
    > is,
    > there are many D's to one E.
    > There is a many-to-one relationship between Object E and
    Object F. That
    > is,
    > there are many E's to one F.
    >
    > Now, because I am only given information from the user
    as far as which
    > object
    > A is the chosen object (that is, I'm not told right off
    the bat which B's,
    > C's,
    > D's, E's, and F's to pull from the server), I have a
    series of events
    > being
    > fired and listened to, so the sequence of steps pretty
    much goes like
    > this:
    >
    > User chooses a particular object A.
    > I pull A from the server.
    > I pull all of A's children (the B objects).
    > I look at the keys stored in the B's and pull the
    corresponding C's.
    > I look at the keys stored in the C's and pull their
    parents, the D's.
    > I look at the keys stored in the D's and pull their
    parents, the E's.
    > I look at the keys stored in the E's and pull their
    parents, the F's.
    >
    > Now, here's where I'm having an issue:
    > The B objects store a Date object called startTime. The
    D objects store an
    > integer called runTimeMillis (the runtime of the video,
    in milliseconds).
    > I
    > need to somehow present endTime, which is simply the sum
    of startTime +
    > runTimeMillis. But I have to do it in a data binding
    because the D
    > objects are
    > downloaded later than the B objects. But I've tried so
    many different
    > ways of
    > coding it, and nothing seems to work. Here's where I'm
    at:
    >
    > <mx:DateFormatter id="hmmssaFormatter"
    formatString="L:NN:SSA"/>
    > ...
    > <mx:Label text="{hmmssaFormatter.format(B.startTime +
    > B.C.D.runTimeMillis)}"
    > fontWeight="bold"/>
    >
    >
    > The only thing I get in my client is a blank label. What
    am I doing
    > wrong?
    > The following seems to work just fine in displaying the
    start time of the
    > video:
    >
    > <mx:Label
    text="{hmmssaFormatter.format(B.startTime)}" fontWeight="bold"/>
    >
    > But adding a number of milliseconds doesn't seem to work
    at all. Can
    > anyone
    > shed some light on the matter? Thanks!
    I still think there's something unexpected going on with your
    data. In the
    function where you set C and D, can you put a breakpoint and
    inspect the
    variables? You could also probably put a break point in the
    formatter and
    see shat has been passed in to it.
    HTH;
    Amy

  • Pageflow - data binding for collection size

    Assume {pageFlow.students} is a collection. What data binding to use to write the
    collection size to the jsp page? The following does not work
    <netui:label value="{pageFlow.headers.size}" />
    Thanks, Jack

    This is a very FAQ on the "taglibs-user" mailing list. The same issue comes up
    with using the JSTL, because the JSTL follows the same rules about what it can
    access.
    A reasonable general solution would be to write a simple class called "CollectionBean"
    (and similarly "MapBean"). Put it in a "utils" package. It's constructor takes
    a Collection (and a Map, respectively). It has two properties, named "collection"
    and "size" (the other would be "map" and "size"). Instead of storing Collections
    or Maps, you store CollectionBeans and MapBeans. About the only challenge would
    be properly naming the instance variables of type CollectionBean, so it isn't
    confusing. I'll leave that problem for you.
    "Jack Liu" <[email protected]> wrote:
    >
    Assume {pageFlow.students} is a collection. What data binding to use
    to write the
    collection size to the jsp page? The following does not work
    <netui:label value="{pageFlow.headers.size}" />
    Thanks, Jack

  • How to fix this data binding bug?

    Hi All,
    I need a mutual-excluding component like ToggleButton behaves. There's a public property viewMode which indicates which button is selected. It works fine when I click other buttons. But when I click the selected button again, it seems the binding doesn't work.
    The project file is attached. Please help me to rectify this issue.
    Thanks and regards,

    Try setting toggle to false.  Data binding is doing the right thing, but because you have toggle set to true, the Button is toggling selected after data binding has done it's thing.  Try looking at Button.setSelected() to see what I'm talking about.

  • WebService data control data persistence issue

    Hi,
    We are using one Web Service data control on two jspx pages of application. The attributes from the data control are added on both the pages as data binding.
    Scenario:: We submit some data from Page1 using web service data control and move to Page2. Fill some data on Page2 and again submit the request to Web Service data control and after successful response move back to Page1. Same is repeated again and again for this scenario.
    Now the issue is, we submit some data from Page1, move to Page2, submit some data from Page2 and come back to Page1. If we repeat this process, then while submitting the data on Page1, the data that we submitted earlier on Page2 also get submitted, which is not expected. We only want to submit the data as per the binding on that page. Page1 is in unbounded taskflow and Page2 is in bounded taskflow.
    We have tried by setting possible values like :: CacheResults: false on iterator, Refresh condition: Ifneeded, UsePersistentStructure to false on data control. Also tried to reset and clear the data control using APIs and resetInputState on bindings. But nothing is working. The only method that is working is ClearForRecreate on Page1 iterator. But since its internal method this might not be good to use it. Also after using this we stated to receive intermittent error stating AttributeList$Itr can not be cast to String and some times argument is not an array exception.
    Please let me know, how i can ensure that correct data is sent to web service data control.
    Using JDev 11.1.1.6.
    Thanks

    Solved by removing the Share Data control option in taskflow.
    Thanks

  • Building my own data-binding method

    Hi,
    After looking at the various packages that allow you to do data-binding I have decided for my case it's just simpler (number of lines) to do something myself.
    If I have an XML that has fields a through f, which correspond to A through F in MySQL fields. What's the best way to connect these two?
    What's the best type to build this thing in? Maps, HashMaps, or Collections? I just don't know the advantages/disadvantages to each obviously.
    Thanks.

    amirzadeh wrote:
    jschell wrote:
    My question wasn't clear.
    For example if you have a customer entity and has one telephone number and now the users want it to have two telephone numbers then you must add a column to the database. And if you do a B2B xml with that data then you must upgrade the XML to add that new field.
    That process is replicated in about 99.9% of all business processing and most of that does not need a runtime solution to the problem.
    So the question becomes
    1. How often do the requests arrive?
    2. What is the nature of the request - how complex is it?"We would like to have dataPoint123 added to the excel file that we get every day" sort of thing, so we have to check to see if we have the data stored in the database, if not than we have to go back to the appliance and add it to the XML report that is generated. Than add it to the database to be stored. Modify the import of the XML code. Add in the data processing portion of the code if need be, add it to the export report.
    If you are doing 50 of these a day and they are all simple then your design if flawed because you cannot continue to add that many columns to existing tables. This is further complicated if you are differentiating it by user (some users have different fields from others.) Again it would still represent a design flaw.It's more like 1 every two to three weeks. And since we don't touch the code every day it becomes a pain when something like this has to change, because we have to go find it in the 17 different places it needs to be touched.
    The phrase "17 places" suggests a disconnect with what you described above. With "17 places" you have at a moderately complex change request.
    And your description above doesn't sound like something that you can pattern.
    If I have a database with tables/columns and the users request a change to a report frequently which originates with existing data then automating the report creation might be a worthwhile project. Myself with the given timeline I would opt for code generation rather than a runtime solution.
    However if the data doesn't exist then you MUST rollout a code change. The DDL must change, you must have code to populate it, and perhaps other business rules are added. And that is unlikely to be something that can be patterned. Actually only way that could be patterned would be in a flow through system (source in => database => report)
    >>
    If on the other hand you get one of these every 6 months then you do not need a dynamic solution (at all.)I don't agree with the statement, I think "dynamic" nature of code is even more important with code that you don't touch/live with every day. I have C code that I live with every day, it's always been improved and worked on, I rarely do anything majorly dynamic in there, because I don't need it. It's faster than I need it to be, the foot print is small comparatively and it is changes too often to try to modularize it.
    That paragraph seems contradictory. Or maybe it is a terminology issue.
    "Dynamic" for this discussion relates to code generation, generalization (adding complexity in tradeoff for power), metadata type solutions, etc.
    That said maintenance is the highest cost in software development. To maintain code someone must understand it. Adding a "dynamic" solution (above definition) into code means that it will take longer to find and fix bugs. And without rigorous process control over time it is likely to lead to more 'hacks' because someone couldn't figure out the correct way to fix something or because the existing design didn't allow for it and they didn't refactor.
    Thus one must consider the tradeoffs carefully.
    Note that with code generation one can achieve simplicity with ease of use. I do this commonly because I do not want to require other developers to understand the code creation process. So I create code generation tools to ease my work but check in the generated code so that if some other developer needs to maintain it they can work with that. I check in the tools to but at the point where they start maintaining the code it is their choice which route to use.

Maybe you are looking for