Adding series to the table during execution?

Newbie :-)

I'm trying to add series to a chart during execution because the number of series to draw is variable and only determined once the XML of a HTTPService returns...

My chart looks like this:

< mx:PlotChart id = "mainChart" showDataTips = "true" width = "100%" height = "100%" >
< mx:series >
...

If I add:

< mx:PlotSeries xField = "Size" yField = "CompetitorPrice" displayName = "Competitor price" / >

then the data plots OK, but try to create the same AS serial does not work (nothing appears):

var newSeries:PlotSeries = new PlotSeries();
newSeries.xField = "size";
newSeries.yField = "CompetitorPrice";
newSeries.displayName = "SeriesAddedAtRuntime!"
mainChart.series.push (newSeries);

Debugging presents the new series added and it seems OK... but it does not appear on the graph. No errors.

I tried mainChart.executeBindings (); and mainChart.validateNow (); with no chance, but I guess as to what is to be the case here, as you can probably!

What Miss me something to force an update of the chart with the new series added?

Thanks in advance

John

It is not displayed because the table is not aware of the change in ownership of the series. I think that to run the following steps (give an or take a few syntax errors):

var set = mainChart.series;
var newSeries:PlotSeries = new PlotSeries();
...
Series.push (newSeries);
mainChart.series = series;

Tags: Flex

Similar Questions

  • Filter the Table during execution and keep uncommitted line changes

    Hello

    I have a requirement which has been quite difficult for me so far.

    I use the first version Jdev 12 c.

    I have a table of AF that is connected to a ViewObject that is used for sending new data.

    When I add lines to this ViewObject, I put a field that I intend to use for filtering so that the number of lines is not displayed at the same time.  This field comes from a selection of LOV.

    I want to be able to change lines are displayed in the table based on what is the current value of selection LOV.  This isn't a problem for me, and it works perfectly using a view criteria and a variable transitional EO I put in place.

    My problem is that when I select a new value in the LOV and change to bind the variable view criteria, I want all changes uncommitted to the lines to be preserved in the View object.  Currently, the lines are not keep their changes, and I need to do this, because after that the user has entered data for a large number of lines, there will be a commit to the database for all new lines added.  Is this possible or should I look for an alternative?

    I also tried to use a table filter in the link of the page layer, but I get an error that I can't debug. It is marked as Houston-34014.  In this method, I try to access my bean in pageFlowScope to filter the table.  This bean variable is updated when the LOV selection changes.  Error messages settings are {0 = oracle.jbo.Key [-220-225], 1 = root}.  I also read that this filter parameter is a static filter and does not dynamically during execution.

    Any help would be appreciated, thanks for reading.

    Hello lhymel

    I think that your problem is solved, so please close this thread and open a new thread for tuning related problem

    Thank you

    -Ashish

  • Edit/delete/add scene coordinates in the table during execution

    Hello world

    I managed to build table allows you to store and record the coordinates of the stage and remind to control steps. However, I need change/remove/add details of scene during execution. I also need to allow the user to directly edit the coordinate from the scene of the array. Wondering what someone knows what is the best way to do it? Or is it better to use the matrix or Cluster? Thanks in advance.

    Best regards

    Han Yen

    Han Yen wrote:

    Thanks much altenbach for all the advice. I tried to do a table 2D control. I've been playing with table in the control. However, I still can't find out how can I detect that I change the data in the table 2D with the more recent issue during execution? How can I then update my current table with the latest data?

    Well, the 2D table is updated immediately and you do not all the other tables.

    Do you mean that you want to update XAbs, etc. where the just changed line is already selected?

    In any case, here's a simple project, perhaps it will give you some ideas. I would recommend using also the tables for XYZPos, entrances etc. and the XYZabs. This simplifies the code because you reduce the number of terminals and table operations.

    Let me know if something is not clear to you.

  • change the frequency of the signal during execution

    Hi, I'm working on a VI to calculate excess of signal I think VI seems to be good (not sure) but now my problem is

    change the frequency during execution, which I am not able to do only when I stop and run the vi frequency changes... pls

    someone help me I tried to put in an event... but no use... maybe iam missing something pls help me...

    I noticed that you have some time a loop around the entire block diagram - I'm not entirely sure why that is.  The way you have your VI wrote that the two inner loops will never come out unless there is an error-'stop' buttons are hidden.  Thus, the outer loop is not do anything for you.

    Once you take it, it is easy to see why you cannot change frequency.  It is defined once, outside of the loops and so never gets checked again.  The best way to resolve this, in your case, is to use registers with shift on the upper loop and check if the value of the frequency has changed since the last iteration.  If so, generate a new waveform and feed DAQmx writing instead.

    See the version annexed to your main VI for what I mean.  (I also replaced the controls to stop with one that is visible and which will stop the two loops without your duty to hit the button abandon.) I'm also an error on the DAQmx read in the loop at the bottom, but I'm sure it will work fine on your equipment.

    See you soon,.

    Michael

  • Pass the value of the variable during execution

    Hello

    I have a package with a set of interfaces and three other variables.

    I want to pass the value of the variable at runtime, based on the value passed I want to decide which interface to run then. How can I do this? I got a set variable but I want to asssign the value during execution.

    Any help is greatly appreciated.


    Thank you
    San

    You have many options to achieve this goal.

    1. keep the run settings in the database, extract the Variables in a time of refreshment and use these variables in your Interfaces to get values of execution.

    2. change the value to the variables on the outside. You can declare a variable in a package as a step of the statement, and then use the variable in your interface in a successive step in your package. Then, create a scenario of your package and creating the scenario, it will prompt you to include the variables that you want to include as a startup parameter. Choose the one (s) concerned. Citing this scenario using Java or an OdiStartScen command or by using Webservices ODI externally, you can provide values of the runtime as a result.

    I hope this helps.

    Concerning
    A

    Published by: 922636 on August 29, 2012 23:53

  • definition of the background image of the file during execution

    So, I have another issue to resolve and my migration to 11.5 will be complete.  In the previous iteration, the project has been able to set the background image from an external file dynamically during execution.

    After the migration, it seems that the projector keeps the canonical path to the image of Member and looking for him there. In other words, loads of projector, but a file finder opens, saying: he cannot find the background image in the path of the source machine Director.  Setting the name of the file in the jargon does not stop this behavior doesn't happen.

    I tried to re - import the image as "link to external file" (which had the same results) and flat import (which does not load the file during execution, even if I put the file name in the jargon).

    Anyone know how I can do this, the value of the background image of a file during execution?

    Thanks in advance!

    I do it all the time.  Just make sure that the image is in the same location relative to the projector that's director file.  The easiest way is of course if the image is in the same folder as the .dir file, in which case, you'd sure as to put it in the same folder as the projector, and you can set the name of the file using:

    Member ("someExternalMember"). FileName = the moviePath & "filename.jpg"

    You can have it in subfolders as well if you want to make sure that the relative location is the same.

  • How to hide the ADF table during execution

    Hi all

    I use Jdeveloper - 11.1.2.4.39.64.36.1 version

    Is it possible to show only the tables with associated in the same lines and hide tables with no record.

    For ex: Let's say that at the time of the design, there are three related data tables with the diagram below.

    Table 1
    Table 2
    Table 3

    However, during execution, there is no record for 'Table 2', but the table 1 and table 3 have records associated with them.

    Is it possible to hide the table 2 and get the following provision -

    Table 1
    Table 3

    According to the schema, table 2 should hide, and table 3 should get reordered under table 1 directly.

    Best regards

    Ankit Gupta

    Hello

    You can set the property visible from the table to something like #{bindings.. estimatedRowCount gt 0}

    Arun-

  • Problem with pl/sql procedure, trying to get the value of the user during execution

    Hello

    Using oracle 11.2.0.3

    Can run sql that gets the value of the user during the fine workmanship and also via an anonymous block.

    uses of SQL & Enter_Product_Number

    anonymous block using: Enter_Product_number.

    However, get problems when trying to create a pl/sql procedure, use one of the above

    relevant below tried code part & and: buit works do not error, try bad bind variable if used: and ora-600 if try use &.

    How can we have a procedure from pl/sql that can call and receives a value of user during execution?

    Only way around what I can think of is to pass parameters to the procedure

    Thank you

    create or replace procedure ins_into_issues is

    v_nd_rec_cnt number (10);

    v_normal_rec_cnt number (10);

    Start

    Select count (*)

    in v_nd_rec_cnt

    refmast.issues I have

    where i.iss_product_num = & old_nd_product_number;

    Select count (*)

    in v_normal_rec_cnt

    refmast.issues I have

    where i.iss_product_num = & normal_product_number;

    -code below commented above works.

    end;

    Hello

    what something like this:

    create or replace procedure INS_INTO_ISSUES ( in_normal number, in_old number )  is
      v_nd_rec_cnt     number(10);
      v_normal_rec_cnt number(10);
    begin
        select count(*)
          into v_nd_rec_cnt
         from refmast.issues i
         where i.iss_product_num = in_old;
      --
        select count(*)
          into v_normal_rec_cnt
          from refmast.issues i
         where i.iss_product_num = in_normal;
    end;
    

    concerning

    Kay

  • Question: adding prefixes to the table of contents chapter entries?

    Hello I would like to know if anyone can help understand me how to format Table of contents entries to include a prefix.

    I want to each chapter entry in my table of contents to include the prefixes of words Chapter 1, Chapter 2... etc.

    For example. Just to say that my first chapter is called "aseptic".

    Currently the aseptic 'A technical' chapter title is formatted with a paragraph style called "chapter title", and this paragraph style is included in the "Styles of Table of contents.

    So for the moment my OCD simply shows the words "One Technique aseptic" followed by the page number.

    I want that entry of table of contents to say: "Chapter 1 asepsis.

    But I don't want the words "Chapter 1" to appear on the title page of actual chapter. "»

    Also, I want to be able to add unique style to the prefixes (I guess with character styles). So that I can make the "Chapter 1"style a little differently to "Aseptic", while both appear on the same line.

    Is it possible to do? I know that I can just click on the table of contents, and then make the changes directly, but it's not ideal because if I click on "update the Table of contents" then all changes are lost. I want the added prefixes dynamically so that they remain in place even if chapter headings are changed in the future.

    Thanks for any help.

    Of course, I see no problem:

  • Cannot change the value of the cells during execution of the VI

    Hello

    I'm changing the values in the table while the VI is on, but without success, can anyone show me please how to do this.

    Thank you

    MGarry

    MGarry,

    something like this:

    Please note that this does not reset the contents of the table if you rerun the VI. You can add code to it.

    Norbert

  • Lose the vertical alignment of the table during the conversion of the ditamap to book

    FrameMaker Version: 12.0.4.445 (later part of TCS5)

    1. I have a project structured, where several XML files have been grouped in a ditamap.
    2. For one of the XML files, I have a table, where I need to set the cell Vertical alignment of cells in the MIDDLE.
    3. So using Paragraph Designer > table cell, I have change the entries in the top in the Middle (the default values have been Top).
    4. With the ditamap pane selected, I'll then menu file > > Save Ditamap under
    5. I save ditamap as ' book with fm components 12.0 (* .book) "file type.
    6. In the resulting book, the XML files are now. FM files.

    However, at this point, when I open the. File of FM which has the table, the cell styles back to the TOP.

    I searched high and low for a similar problem. It's look like a bug to me, but can someone confirm?

    Thank you

    No, this is not a bug by itself. I bet that the alignment is lost before you generate the book. After you set the alignment and saving and closing the file... reopen and see if the alignment is still there... I bet it's gone. As a general rule, you cannot apply put in shape or properties to objects (elements) in a DITA file. This applies to font and paragraph properties as well as table set in shape and other types of development in the form. All you can do is create items and set attributes. Any parameter properties will usually be lost on file save.

    You would probably need to have a 'process of publication' (script any) you run your generated book and chapter files that would scan for an attribute that shows some properties must be set on the table. The @outputclass attribute is typically used for this kind of thing. I'm not aware of what anyone in default FrameMaker DITA, who put in place to manage this type of formatting of the tables.

    If this formatting that you try to apply is consistent for the whole table, it is possible that you will be able to do this by creating a new table format that has this set of default formatting. When you insert a table in a subject, the table format is assigned to the tgroup/@outputclass attribute and this is the form that is used when rendering the table. Just create a new table in the structured application model and put in place this format to have the properties you want. Then, when you insert the table, be sure to select this format. It can be hard to set this up, but it * should * work.

    However, if this does not work, or you need more refined formatting applied to the parts of the table, I produce a tool called DITA-FMx, which offers extended DITA creation and publication of the options for FrameMaker. It offers features that allow this type of table set shaped to be applied by setting the attribute @outputclass to a specific value on the line or cell. You can get more information on DITA-FMx here...

    http://leximation.com/DITA-FMX/

    Good luck!

    Scott Prentice

    Leximation, Inc..

    www.leximation.com

  • SELECT from the table during a TRUNCATION operation...

    Nice day

    Environment: Oracle 10 g 2 EE on AIX and Crystal Reports/Crystal Enterprise (XI 3.1)

    We have a table that is refreshed every 10 minutes throughout the day and night. Users run reports against the table pretty well any time they want. The table is updated through OWB by using the TRUNCATE/INSERT that first truncates the table and then reloads the entire table.

    Opportunities random when the user runs the report at the same time as the update of the table, the user gets an error message from Crystal as follows:

    Error in the file ~ tmp23206abf4faed20.rpt: impossible to extract the data from the database. Details: [database vendor Code: 8103]

    In other cases, which is the one that I expect, the user sees a report empty and all simply of runs again the report. The report only takes a few seconds.

    This error could be due to the Crystal report trying to get the data in the table at the EXACT time that the table is truncated?

    Other thoughts are welcome!

    Thank you very much!

    -gary

    Hi Gary,.

    This behavior is described in MOS 170185.1

    Concerning
    Peter

  • Select all checkboxes in the column of the table during the 11 G radio button click

    Hello

    I have a table where I inserted a checkbox in the column of the table. I have two outside this table option button, Yes and no. When I select the option button Yes all the boxes in the table to spread and when I select any option button all the boxes should get deselected. As the boxes are inside the columns of the table, we can use setSelected(). How to do this please give ideas.



    Thank you.

    Hi, Maxim,.

    Is your table based on a view object or some bean code?
    If it is based on the view object, the column Boolean checkbox is bound to some transient attribute?

    Have you tried view iteration object rows (if your table bound to viewobject) /POJO(if created list of pojo instances in bean and bound to table) and by setting the Boolean attribute related to the box to true/false on valueChangeListener option button?

    Can you post an example of code to get an idea of your problem?

    Jean Lou

    Published by: Israel Jean Lou on October 24, 2009 04:50

  • Question of the ADF during execution of the established steps FDMEE

    Hello

    Whenever I try to run any step in the data loading Workbench in FDMEE 11.1.2.3 (PSU520) I immediately get the following error message:

    "FDMEE + ADF_FACES-60097: for more information, see the error log of the server for an entry beginning with: 60096-ADF_FACES: server during the PPR, #5 Exception.

    If I run the same underlying data loading rule of the DLR page it works ok.

    Is this a bug of the ADF? Any other ideas?

    Kind regards

    Simon

    Simon,

    Check also that the period all mappings are set correctly for the POV you are dealing with.

    Concerning

  • adding columns in the table by trigger

    Hello
    I, ve found a better way of this using triggers. I'm using Oracle XE 11.2 billion, with an interactive report and a standard form.
    APEX 4.0.2. I tried using SQLDeveloper:

    CREATE OR REPLACE TRIGGER TRIGGER1
    PRIOR TO THE UPDATE OF THE AMOUNT, TOTAL_QUANTITY ON STOCK_CONTROL
    FOR EACH LINE
    BEGIN
    TOTAL_QUANTITY_: = AMOUNT + TOTAL_QUANTITY;
    END TRIGGER1;

    with message
    Error (5.1): PL/SQL: statement ignored
    Error (5.1): PLS-00201: identifier 'TOTAL_QUANTITY_' must be declared

    I have tried variations of this but still no result, can't get the syntax right, can help anyone?
    Thank you
    Tim

    Assuming that TOTAL_QUANTITY_ is already a column in the STOCK_CONTROL table:

    : NEW. TOTAL_QUANTITY_: = : NEW. AMOUNT + : NEW. TOTAL_QUANTITY;

    SY.

Maybe you are looking for