Datatable data binding seems useless

I have the following inside of form tags
<h:commandButton value="submit" action="#{mybean.examinedata}"/>
<h:dataTable binding="#{mybean.data}" id="table1" value="#{mybean.loaddata}" var="payment">
<h:column>
     <h:outputText value="#{payment.title}"/>
</h:column>
</h:dataTable>
When the submit button is clicked and the action method mybean.examinedata is run how to I access the data stored in the data binding mybean.data ?

I now can access all rows by setting
mybean.setRowIndex(0); to the row I wish to access. The next problem I do not understand is how to access the column data.
where mybean.getrowdata() returns the row of data
where mybean.getrowdata().toString() returns
" {title=mytitle, transactionid=80820-92426} "
I have tried to cast the row data to a class
rowdata mydata = (rowdata) mybean.getrowdata();
where rowdata is
public class rowdata {
private String title;
private String transactionid;
public rowdata(String title,String transactionid){
this.title=title;
this.transactionid=transactionid;
also I have getter and setter for both title & transactionid
I get
javax.faces.el.EvaluationException: java.lang.ClassCastException
Thanks ...

Similar Messages

  • Shared variable vs. data binding

    Hi,
    I try to write a program which communicates motor drives through ethernet and I use OPC server and shared variables created using PLC. I created front panel indicators in a while loop with 50 ms cycle to read motor encoder position, status etc. When I try to do this with wiring shared variable to indicator and with changing the data binding property of the indicator browsing the same variable from the project library, data binding seems to respond slower than wiring the shared variable to indicator directly. Can anyone explain why?

    Hi mhn05, 
    I'm not exactly sure why it would be operating slower.  Do you have code that you can upload that benchmarks or tests the speed of these, side by side? 
    Thanks, 
    Dave T.
    National Instruments
    FlexRIO & R-Series Product Support Engineer

  • 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

  • Populating a javascript array with datatable data

    I want to populate a javascript array with datatable data.
    How do I do this?
    I want the javascript array to be populated as the datatable is displayed.
    Doing this way doesn't work.
    <h:dataTable value="#{pmManager.profiles}" var="pmProfile" binding="#{pmManagerUiBean.uiTable}" ">
    <script>
    allProfilenames[index]='#{pmProfile.profileName}';
              alert("index ="+index);
              alert("...1"+allProfilenames[0]);
              alert("...2"+allProfileRes[0]);
              index++;
    </script>
    <h:dataTable>

    In Javascript do something like this:
    document.getElementById('form1:dec_param');
    where form1:dec_param is the id of the component on the page source (html)

  • Data Binding for Custom Controls?

    Hello,
    I'm a little bit confused of how to use databinding for custom controls.
    I know i can bind a property, as seen here http://help.sap.com/saphelp_uiaddon10/helpdata/en/91/f0f3cd6f4d1014b6dd926db0e91070/content.htm, but how can I map whole arrays?
    My problem is the following:
    I want to create a custom table control in SAPUI5 (as the default one doesn't provide the neccessary options and properties I need), but I can't seem to find an example how to bind "rows".
    There has to be a way to do this properly. All I can think of now, and implemented, is, passing the name of the variable in the model...
    var x = new my.controls.complex.table({data: "/status"});
    var row1 = new my.controls.complex.columnHeaderRow();
    row1.addColumn(new my.controls.complex.column({text: "", rowspan: "2", colspan: "1", content: "FIRST_COL"}));
    x.addColumnsRow(row1);
    x.placeAt("content");
    ...my JSON/model looks like:
    { "status": [ {"FIRST_COL": "a" , ...}, {"FIRST_COL": "b", ... }, ... ], ... }
    (which should translate into /status/0/FIRST_COL, /status/1/FIRST_COL, ... AFAIK)
    ... and then I use this variable name by getting the application-wide model and use the variable passed as key for the model... (please note, this code is just a snippet)
           var sapCore = sap.ui.getCore();
                if (sapCore !== undefined) {
                 var model = sapCore.getModel().getObject();
                 if (model === undefined || model == [] || model == null){ } else {
                  $.each(model, function(idx, item){
                   $.each(oControl.getColumnsRows(), function(idx, item2) {
                    $.each(item2.getColumns(), function(idx, item3){
                     var content = item3.getContent();
                     if (content !== undefined && content != ""){
                      outpLine = outpLine + "<td>" + model[idx][content] + "</td>";
    ...which still leaves me with the problem of to get an event to react to re-render on changes within the data model, as well as when there would be just an control-specific model, or just a sub-node within a model etc.
    So my question is:
    Is there a way/best practice to define data binding in a custom control and have a way to react on it, and how to react on data changes within a custom control?
    Thanks & KR
    Chris

    I create a entirely new control, from sap.ui.core.Control.
    sap.ui.core.Control.extend("my.controls.complex.table",{... });
    I did define a aggregation...
            aggregations : { columnsRows: {type : "my.controls.complex.columnRow", multiple : true, visibility: "public"}     },
    ...yet I'm still unclear how I work with this aggregation and databinding. I know we can use the bindAggreation functionallity, but since the aggregation is a object (my.control.complex.columnRow) I don't know how my JSON model should be able to bind to that aggregation (as well as how would one be able to cascade a aggregation like this down futher? For example if there is an aggregation in the object of my aggregation?), plus it still doesn't solve my problem of how I can react (for example redraw) on model changes.
    Thanks in advance,
    Chris

  • Data Binding in ADF UIX example trouble

    Two related questions:
    From the help example 3. Data Binding in ADF UIX example trouble in JDeveloper on UIX. If this worked I was going to run a small java class that captures the login and passes it as a messagebox with a Welcome login name on the first page, but I can't get past the example and path problems.
    From the example..."
    package yourpackage;
    import java.util.Date;
    public class CurrentDateBean
    public CurrentDateBean() { }
    public String getTime()
    return (new Date()).toString();
    Now, we want to change the page so it uses getTime(). We need to do three things: Tell UIX to data bind the text attribute. Add a <dataScope> to the page to provide data to the content. Write a small "data provider" in Java that can access the bean. First, we'll data bind "text": <text xmlns="http://xmlns.oracle.com/uix/ui"
    text="${uix.data.currentDate.time}"/>The example has one small change. The value is changed to ${uix.data.currentDate.time}, which is an expression that defines the data. This is shorthand for "get the time property from currentDate." If you tried running this example, you'd see nothing. That iss because we haven't given currentDate to the page, so the databinding failed, and the "text" is left to null. We do this by adding <dataScope> to the page: <dataScope xmlns="http://xmlns.oracle.com/uix/ui">
    <provider>
    Q#1?? Trying to follow the demo. The method class and method name do not seem to match the names in the above class from the demo. Am I missing a point here, please help.
    <data name="currentDate">
    <method class="yourpackage.DataDemo" method="getCurrentDate"/>
    </data>
    </provider>
    <contents>
    <text text="${uix.data.currentDate.time}"/>
    </contents>
    </dataScope>
    Q#2?? When I try and apply the demo class to my home.uix XML file with
    "<?xml version = '1.0' encoding = 'windows-1252'?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ui="http://xmlns.oracle.com/uix/ui"
    xmlns:data="http://xmlns.oracle.com/uix/ui"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:html="http://www.w3.org/TR/REC-html40" expressionLanguage="el">
    <content>
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui">
    <provider>
    <!-- start Add DataProviders (<data> elements) here -->
    <data name="currentDate">
    <method class="us.mn.state.dot.apptrack.security.CurrentDateBean" method="getTime()"/>
    </data>
    <!-- end Add DataProviders (<data> elements) here -->
    </provider>
    <contents>
    <text text="${uix.data.currentDate.time}"/>
    <document>
    <metaContainer>"
    I get the following, and I don't know how to make the UIX XML accept the correct path, please help:
    �file:/C:/JDeveloper905p/jdev/mywork/ProjTrack/AppTrack/ViewController/public_html/home.uix: Parsing error, line 12, column 97: Could not find class us.mn.state.dot.apptrack.security.CurrentDateBean

    for question 1 the name of the class CurrentDateBean
    actually has nothing to do with the el expression
    uix.data.currentDate.time. The currentDate part of the
    el expression is coming from the method data provider part
    of your page:
    <data name="currentDate">
    <method class="yourpackage.DataDemo"
    method="getCurrentDate"/>
    </data>
    so if you changed the name of the data provider to "foo":
    <data name="foo">
    <method class="yourpackage.DataDemo"
    method="getCurrentDate"/>
    </data>
    your el would look like this:
    uix.data.foo.time
    by the way the uix.data part tells UIX to look for
    a <data> element define in the <provider> section of
    your dataScope.
    For question #2, do you have the java file
    us.mn.state.dot.apptrack.security.CurrentDateBean on
    your classpath and is it compiled? You will get that
    warning if it is not on your classpath.
    Also you are incorrectly interpreting the example. What
    you are doing is trying to reference the actual bean
    object and its getTime() method. What you want to do
    is write a method data provider that returns your
    CurrentDataBean. so uix.data.currentDate would return
    a CurrentDateBean instance object. the .time part of the
    el expression would tell UIX to look for a method named
    getTime() and use that value.
    let me know if you have any more questions.

  • Best Practice: Data Binding

    Each non-trivial Swing application needs to bind GUI elements (windows and components) to data. Ten years back in my MFC times, the typical solution was to initialize the GUI with fixed data, show the window, and read back the modified data after window closure. But in Swing, there is more flexibility (data can be dynamic for example). But what is the best way to deal with data binding?
    - Writing custom models, bound directly to data objects?
    - Initializing once and read back after window closure?
    - Using the non-standard (but rather interesting) beans binding API?
    Certainly there are more solutions, but my intention is not to write a list of possibilities or to get your opinion on one of these solutions. Actually I'd like to know from the experienced Swing pros in this forum, whether there is a best practice for data binding?

    Hi,
    I'd say it depends on what kind of data are you binding and if they're refreshed or not. In our "framework" we're using Properties-based approach for dialogs - server packs an @Entity into class similar to Properties - basically it's s Map<String, Object>, sends this Properties to client and values are put into our customised components. We're using component name as a key, most of controls are simple extends of standard JComponents with handful of methods from common interface (like load(), save(), ...). This approach seems to work fine.
    For refreshed "lists" we're using again our custom "framework" based on sending initial batch and consequent diffs - there is sort of event queue responsible for telling everyone what had been changed. Because this kind of data tends to be quite huge, we're sending gzipped binary representation of source data.
    With beans there might be a way how to implement both simply by calling getters, but then every single value results in one roundtrip, which was absolutely unacceptable for us. But I can imaging this working fine on LAN.

  • How to bind dynamic row data to submit it by HTTP submit (PHP) - addInstance and Data Binding

    Hi,
    i have got a problem with submit HTTP all data (variables) from PDF to submit.php.
    I have got table with dynamic add/remove Table Row button. When i add it their names are Table.Row[0] , Table.Row[1], Table.Row[2] etc. Only Table.Row is real, and every other row is create dynamically by addInstance script command.
    When i fill "Data Binding" box like this: "Use name(Row)" then after submiting it do PHP i will see only last Table.Row data. For example if last would be Table.Row[3] then i will see only this on my submit.php and the others will be replaced by this value. This is happen becouse of replacing value by value with the same name (data binding is seeing only one Table.Row without instance name:"[1]", "[2]", "[3]" etc.).
    I guess that if i would change something to get addInstance command with Row names like Row1, Row2, Row3 then all will be ok.
    Another way it`s to change something in the "Data Binding" box (Object > Binding Tab) to get relative name like Row[*] instead of "Use name(Row)".
    I don`t know how to solve it and i need your help

    Create a binding for your dataTable.
    In the binding create a UIData element with gettters and setters.
    You can manipulate rows and columns from it.

  • Data Binding using DataSet and ComboBox

    Hi guys, hope someone can help me with this. Seems it should
    be simple, but it's not, that's why I'm here. I have data loading
    into a DataSet component. I have a ComboBox on the stage with
    predefined values and lables, so it's not dynamic at all. After
    loads into the DataSet I have the value Bound to the the Combobox,
    but nothing is being selected. I know the ComboBox is a little bit
    trickier, unlike the Textfield or TextInput wich work right away.
    Again, hope someone can help.

    Hi,
    I think the data binding concept you asked for Dropdown listboxes and RadioButtonGroups .If My Guess Correct follow the links provided here you may get useful information,
    [http://help.sap.com/SAPHELP_NW70EHP1/helpdata/EN/bb/69b441b0133531e10000000a155106/content.htm]
    for Example refer this link,
    [http://help.sap.com/saphelp_nw04/helpdata/en/74/450e8af57065468e88e4b86de47e4b/frameset.htm]
    Hope This information Useful for you.
    Regards,
    Raghava Channooru.

  • 10g: Data Binding in event handlers?

    I'm trying to use data binding in my event handlers so that I can have a definitive source for the Strings that name things like this. I can see that the page is getting generated with the proper names on the elements in the page, but I always get an UnhandledEventException when I trigger the event. The idea is something like this:
            <submitButton text="Refresh" event="${ pageBean.controlRefreshEventName }" >
            </submitButton>
            <submitButton text="Hide Controls" event="${ pageBean.controlHideEventName }" >
            </submitButton>
        <handlers>
            <event name="${ pageBean.controlRefreshEventName }">
                <method class="com.avega.portlets.view.EventHandler"
                        method="handleControlFormSubmit"/>
            </event>
            <event name="${ pageBean.controlHideEventName }">
                <method class="com.avega.portlets.view.EventHandler"
                        method="handleControlFormSubmit"/>
            </event>
        </handlers>
    ...Now in my EventHandler I would be able to use the getXXXName methods when checking for which submit button was hit. Except I'm getting an exception instead.
    (BTW, I only have the two event tags because I wasn't sure how to concatenate the el expressions with a space...)

    No, there's no indication that anything is wrong until I cause the event and get the UnhandledEventException.
    However, I did the an experiment with the following tags, the first in a plain JSP, the second in a UIX page, and it seems that this is the normal way of handling a non-existant bean reference. Both cases printed 'text' in the page and did not complain that 'noBean' didn't exist. It seems you get an error when you reference a non-existant property on an existing bean, but no error if the bean itself doesn't exist. Anyway, UIX doesn't appear to be any different from JSP in this regard.
    <c:out value="${ noBean.noProperty } text" />
    <styledText text="${ noBean.noProperty } text" />

  • Using a repeater in a custom FileInfo Panel --data binding error

    When I developed a custom FileInfo panel in Flex Builder 3, I could use an array to populate a checkBox control inside a repeater, and it worked.
    Now, using Flash Builder 4, data binding with <mx:Repeater> doesn't seem to work, resulting in an empty fileInfo panel.
    When I remove the dataProvider from the <mx:Repeater> tag, my panel displays, but without the repeater. How can I specify the dataProvider in a different way that works?
    Thanks
    The code:
    <fi:XMPForm
              xmlns:mx="http://www.adobe.com/2006/mxml"
              xmlns:fi="com.adobe.xmp.components.*" width="100%" height="100%"
              label="TestPanel2_1" xmlns:s="library://ns.adobe.com/flex/spark" >
         <!-- Each namespace prefix that is used within an xmpPath-attribute,
              MUST BE registered at the top of EACH panel where it is referenced -->
         <fi:XMPNamespaces>
              <fi:XMPNamespace prefix="dc" value="http://purl.org/dc/elements/1.1/"/>
         </fi:XMPNamespaces>
         <mx:Script>
              <![CDATA[
                   import mx.collections.ArrayCollection;
                   [Bindable] public var newArray:Array =["One", "Two", "Three", "Four", "Five"];         
              ]]>
         </mx:Script>
         <fi:XMPFormItem>
              <mx:VBox id="primaryFrame" width="800">    
                   <mx:Repeater id="myRep" dataProvider="{newArray}">
                        <mx:Label text="{myRep.currentItem}"/>                  
                   </mx:Repeater>
              </mx:VBox>
         </fi:XMPFormItem
    </fir:XMPForm>

    Okay, I may have been making a rookie mistake. I see online reports that you can't bind an array to a repeater (even though it has worked for me).
    I've added the following variable to make my array an array collection:
    [Bindable] public var newArray2:ArrayCollection = new ArrayCollection(newArray);
    After changing the binding of the repeater to the new array and running the build, the fileInfo panel still does not function.
    Any thoughts?

  • 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

  • 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.

  • 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

  • Controls lose data binding when added to cluster

    Please forgive me if this is a newbie question, but I can't seem to find an answer.
    In a nutshell, I have an array (constant) of strings and a cluster of booleans.  I want to search the name of each boolean in the cluster for a match to a string in the array and perform an action for each match.  Say I want to turn on all booleans that match.
    The problem is that the booleans are bound by datasocket - to OPC server to PLC.  So when I add a boolean to the cluster, the data binding is dropped.  Attempts to reassign data binding are unsuccessful.  If I move the control outside the cluster and reassign data binding, it works.  There are a fair number of booleans so I want to avoid wiring them one by one.
    I am using LabVIEW 8.6 and there is a known bug similar to this for arrays of fixed size.  However I don't totally understand the solution and how I would apply it to a cluster:  "Uncheck autopreallocate arrays and strings in the VI properties execution category for all VIs not intended to run on an FPGA."  There is no listing for clusters.  Could I be doing something wrong?  Should I be using shared variables instead of data binding?
    3OLE2573
    Return
    DataSocket and Fixed Size Array Do Not Work
    You cannot use front panel DataSocket data binding with fixed-sized arrays.
    Workaround: Uncheck autopreallocate arrays and strings in the VI properties execution category for all VIs not intended to run on an FPGA.
    Message Edited by Katelyn on 08-18-2009 12:14 PM

    Peter,
    Thanks. i will separate this in 3 questions.
    I posted the whole thing, so people could copy the code on
    Flex and tested to see what I am talking about.
    "evt.target.selectedItem should be a <module> element.
    Is that not happening?"
    Yes, when loading is a module. Once a click on a list item I
    get the following error:
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at SPADE2/::changeHandler()
    at SPADE2/__cList1_change()
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()
    at
    mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::mouseUpHandler()
    at mx.controls::List/mx.controls:List::mouseUpHandler()
    If a click dismiss all, I can click on the tabs and the
    content on the list changes as expected, but when clicking on the
    list items, they don't work.
    If a click on the video tab the state changes, but I have to
    click on the list twice to play a video. After that I the list
    items for the other tabs work.
    Gilbert

Maybe you are looking for

  • SWF is not loading in Google Chrome browser.

    Hello, My project is developed in adobe flash builder which used sdk 4.0. But from last few month it creates one problem with Google Chrome browser. Some times swf which reside in my .aspx page is not loading and i am getting white background in swf.

  • Should I use a MAC address to validate users for my program?

    I'm writing a graphical console program and I was planning on using a few methods for security. One being to block a user from logging in again if they don't type the correct username and password within three tries until the root user authenticates

  • HT6058 Anyone having trouble updating to iOS 7.0.4 on 2nd gen iPad?

    We are trying to use a flipped classroom and need to update to iOS 7.0.4 on the 2nd generation iPad.  It will not download.  Can anyone enlighten us on this matter?

  • Error ORA-600, please help me

    Hello, My computer planted while I had the base of gone up datum. I not more to open my data base: error ora-600, how to make to remedy this probleme?? Thank you in advance

  • Where do I download Adobe Acrobat Pro XI Trial?

    Please help, I cannot download the Trial.When I click download nothing happens, the screen doesn't even change and the computer does nothing. I don't get any signs. gracias,