Add new values for the axis desabscisses when adding a new series

Hi all

I work with and I found myself with a problem when I try to add new series.

< mx:ColumnChart id = "cChart" height = "100%" width = "100%" dataProvider = "{dataChart}" showDataTips = "true".
>
< mx:horizontalAxis >
< mx:CategoryAxis id = "cAxis" categoryField = "{name}" / >
< / mx:horizontalAxis >
< mx:series >
< mx:ColumnSeries yField = xField "{field}" = "{name} field" displayName = "{displayName}" / >
< / mx:series >
< / mx:ColumnChart >

DataProvider is a table something like this:

-Datachart - > [nameField:A, area: 20;]

nameField:B, field: 30;

[nameField:C, field: 80]

In my application, user boxes add new series after the graph is created. For example, imagine that he wants to put on the table of following values:

-Datachart - > [nameField:A, area: 13;]

nameField:B, field: 62;

nameField:D, field: 30

[nameField:E, field: 92]

Now, start the problem:

When the graph is (adding series with ACE) refresh the values on the axis desabscisses are the same 'old'. In these cases ('A', B', 'C'), but the new do not appear (',' E').

Is there anyway to fix this?

Replace this part:

var currentChart:Array = cChart.series;
currentChart.push (series1);
cChart.series = currentChart;  This code do nothing!

with

var currentChart:Array = cChart.series.reverse () .reverse ();
currentChart.push (series1);
cChart.series = currentChart; But this one does!

This is to ensure that you will create a NEW array instead of use the reference to the former.

Tags: Flex

Similar Questions

  • How to add the default value for the "Full - Text Search" box

    Hi all

    I am looking for the ability to add a default value for the "Full text search" box in the search form.

    Example:

    When the user accesses the search page it get default values for some fields (defined in the rule as default values) such as

    xField1 = txt1 and xFiel2 = txt2.

    and Furthermore we need full-text = Hello world.

    Is this possible?

    Another way that we use is to open the search by URL with coreContentOnly = 1 as a form:

    http:// < Server >/cs/idcplg? IdcService = GET_DOC_PAGE & to Action = GetTemplatePage & to Page = STANDARD_QUERY_PAGE & coreContentOnly = 1 & to xField1 = txt1 & to xFiel2 = txt2

    It is possible to add full-text criteria here? Somethig like: & text = Hello World

    Thank you

    Leon

    It is not possible in a very obvious way, not to mention that it is a rather strange request.  I can't really imagine a realistic use for this case.

    Anyway, without a messy customization, you should provide a default query with an FTX inside element text setting (i.e. "IdcService = GET_DOC_PAGE & Action = GetTemplatePage & Page = STANDARD_QUERY_PAGE & QueryText =Hello World" "")

    To do this in a profile in the secondary effects of the profile section, add the following:

    <$dpPromote("QueryText",>Hello everyone") $>.

  • When you create a PDF from a scanner, is there a way to set the default value for the size of 8.5 x 11 letter custom every time I make a PDF from a scanner?

    When you create a PDF from a scanner, is there a way to set the default value for the size of 8.5 x 11 letter custom every time I make a PDF from a scanner?

    Hi kevin7frg,

    You can go to "file > create > scanner > configure presets PDF»

    The dialog box that appears, you can choose 8.5 X 11 as the default width and height of PDF pages to scan.

    Hope that helps.

    Kind regards

    Ana Maria

  • Default value for the select list of type of form elements

    Hello

    I do not work with Apex that mutch, so this may be a simple question... but I still need help.
    I have a form, in this form, I have a question P19_ONTVANGER_ID, this is based on a LOV.
    This LOV is on a table that has a field of username with the value of APP_USER.
    The table looks like:
    ONTVANGER_ID this is the PK and is going to be the return value from the LOV.
    NAME is the display value for the LOV.
    USERID is the column APP_USER.

    What users would like to get is that if they create a new record, the default value for the P19_ONTVANGER_ID field is their own ONTVANGER_ID.
    But they must also be able to select another user.

    hope there is someone out there that can and will help me.

    Kind regards

    Rob

    APEX 4.0.2 Oracle 10

    Rob-v-M-Gn-Nl wrote:
    Until now, I had, but I need to select the value of the id of the table and the list of selection item appears the corresponding value.

    How can I do this?

    You can select the Type of default value as the body of the PL/SQL function

    and to add something like that

    declare
    v_return number;
    begin
      select your_id
        into v_return
      from your_table
      where some_column = :APP_USER;
     return v_return;
    exception when no_data_found then
     return null;
    end;
    

    http://www.asktheoracle.NET/PLSQL-function.html

  • [ADF, JDev12.1.3] (How to set values for the attributes 1) to create a file and 2) committing to the database?

    Hallo,

    in my tables and forms (created from VO istances) there are some areas for which, insert and update, I calculate and set the value programmatically when a record is created or updated.

    In some cases, I put the necessary values using the 'CreateWithParams' in the workflow diagram...

    In some other ones, I associate an action, a bean, a created button drag-and - drop operation 'CreateWithParams' of the istance VO...

      public String cwpButton_action() {
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding = bindings.getOperationBinding("CreateWithParams");
        // here I calculate and set the needed params
        // ...
        Object result = operationBinding.execute();
        if (!operationBinding.getErrors().isEmpty()) {
          return null;
        }
        return null;
      }
    

    And is ok if I can calculate the values for the attributes before a new record is created.

    But the approach that I have used to define the attributes (for new and updated records) whose value should be caluclated after the user has filled in the fields, before committing to the database?

    Thank you

    Federico

    Federico,

    Let me first tell you that our code is activity masking errors (the cache instead of working on them).

    1. If (! operationBinding.getErrors () .isEmpty ()) {}
    2. Returns a null value.
    3. }
    4. Returns a null value.

    This means that you do not check the errors at all. You must at least print a log with the error message, you receive, if you get one!

    To solve your problem, you override the method prepareForDML() of the entity or entities in question. You can calculate and set the necessary attributes until they get engaged in the doDML(). Do not use doDML() because it is too late in the life cycle.

    Timo

  • DEU-00014: invalid value for the setting, "include".

    Hi, I need to do an export of paintings from a schema and a particular query executed will apply to all the specified tables in "INCLUDE = TABLE: '('TBL1', 'TBL2') IN' in the command expdp.»

    Now, I get the question in this setting INCLUDE. I have about 200 paintings to be included and I add this parameter INCLUDE in a separate parameter with all table names 200 file in Informatics and with the help of this parameter file in the expdp command.

    Error message I get:
    DEU-00014: invalid value for the setting, "include".

    When I use the same process for 2 tables, this works very well. I think that there is a limit to the number of characters that can be used in the INCLUDE parameter. If so, then how do I use expdp to select only those 200 tables of 500 paintings in my diagram. I'd appreciate any help on this. Thank you.

    Hello

    I'm sure that the limit is 4000 characters, but there are fairly simple workaround.

    Create the table my_tabs (a varchar2 (30));
    insert into my_tabs values ('your_table_name');
    Repeat this step for each of your 200 tables

    include = TABLE: "in ((SELECT from MY_TABS)) '"

    You may need to mess you with the quote, but the value you were using is just an expression. It is only by using a different expression.

    Dean

  • Definition of default values for the inputs of button and the cursor?

    Hello

    I use Labview 8.5.1 and have a few entries button and zipper-type on my front. How can I set some of them having specific (as opposed to zero) default values when the VI is executed?

    Thanks for the help

    The default value for the type of slide of entry (or button).

    Right-click on the control.

    Select "Operations on the data" > "default to the current value of doing."

  • I am maing a movie with windows movie maker and you cannot add a song for the end credits. Whenever I get the song imported the system stops... Help!

    I'm doing a movie with windows movie maker and cannot add a song for the end credits. Whenever I get the song imported the system stops... Help!

    I'm doing a movie with windows movie maker and cannot add a song for the end credits. Whenever I get the song imported the system stops... Help!

    ===============================
    If a music file Movie Maker crashes
    in a format that is not compatible. If you convert
    the file to the format of .wma before importing, you
    can have a better result.

    The converter below might be helpful to try:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Format Factory
    http://www.pcfreetime.com/
    (FWIW... you can uncheck
    all the boxes on the last screen)

    After downloading and installing Format Factory...
    Open the program and choose an output folder...
    (this is where you will find your files when they are
    converted)

    Drag and drop your audio clips on the main screen...

    Select "while"WMA"/ OK...

    Click on... Beginning... in the toolbar...

    That should do it...

    Good luck.
    John Inzer - MS - MVP - Digital Media Experience - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • Change the default value for the field selection at run time

    I would like to know how can I keep persistent information in Sib. My problem is I want to change the default value of the choice field when running so that when the user starts the application again, it can retrieve the new default value.

    store values can be done using the persistence framework.
    See Persistable, PersistantObject and PersistantStore in the API.

    You can call setSelectedIndex on an objectchoicefield.

  • Essbase Warning (1023135) skip certain values for the replication

    Hello

    When you replicate the complete data of a partition Essbase BSO in Essbase ASO (11.1.2.2),
    thousands of warning messages are logged in the application log:

    "Warning (1023135) skip certain values for the replication.

    The partition (data of level 0) valid and the counties of cells in each area are exactly.

    No idea of the possible causes and consequences?

    Thanks for your help.

    Philippe Cuisset

    Hello

    Thanks to the contributors.

    The contours of the source and the corresponding target, with the exception of 3 members with different names in the source and target.
    My score has 2 spaces for these 3 members. Mapping advanced between the names of source and target members has been set in a field, but it was missing in the other (not detected by the validation of the partition!). I don't set it too and now no more warnings.

    Philippe Cuisset

  • I do a layout of paper every two weeks; This time, when I opened my model, set up for the next issue when I typed 'W' to display the grid I have something totally different than previously, a background grid which is more annoying.  Why in the world

    new to InDesign 6 months I do a newspaper page layout every two weeks.  This time, when I opened my model, set up for the next issue, when I typed "W" to display the grid, I have something I never saw elsewhere. ".  The background was filled with a new grid of tiles rather than the void behind the newspaper that I'm used to seeing.  I don't know what happened, but it seems that Adobe has tinkered once more with the program.  The last time this happened, I lost the icon "cover the columns" at the top; now, it's a case of two steps to put the head-lines across more than one column.  NOT useful.

    There is probably a command or a term, I don't know that this right but my main question is why, when I did this dozens of times before, doing something different will come this time.  (I know, without replica.)

    I'd also appreciate comments that someone out there could offer re why now when I tap on InDesign, is there a slight pause before that something happens to the screen.  What is my new Mac, or something to do with the program that I can fix it?

    Thanks, Sacie

    It looks like the grid of the document, which can be disabled in the view menu.

  • Is there a default value for the color management in PSE10? Beautiful photos from iPhoto, but blur with elements. I need help with this before as I consider that the upgrade to PSE13 and beyond.

    Is there a default value for the color management in PSE10? Beautiful photos from iPhoto, but blur with elements. I need help with this before as I consider that the upgrade to PSE13 and beyond.

    Printing which forms an angle seems ok, but one that is horizontally seems faded, incomplete.

    I was wondering if I saved a layer somewhere and set it as a default value.

    If you group the layers, you will be left with a single layer, thus spreading your concern.

    Suggest that you do the following:

    1. Make sure you have the latest drivers for your printers
    2. Reset the default preferences.

    Hold the Alt, Ctrl + Shift keys when you click the icon to open the items. When asked if you want to delete the settings file, say Yes.

    Items nearby and let regenerate the file.

  • How can we formulize a threshold value for the maximum number of connections for LDAP?

    Hi all

    We use Sun one DS 5.2 on the Solaris platform.

    How can we define the value for the attribute config "nsslapd-maxconnections" because it depends on allocaated for each process's file descriptors.
    If you please also correcct me if the above statement is false.

    Thank you.

    Hello

    This attribute can be used to limit the number of simultaneous client connections slapd can handle. The main goal is to Cap slapd memory usage.
    By default, this limit is undefined, so slapd can handle up to the number max allowed for the slapd process file descriptor.

    Use only when necessary. You can use the ulimit command to get the limit of the OS settings.

    -Sylvain

  • Multiple values for the same column in the columns of diffétent in the same row?

    Hi all
    I wonder how you can display different values for the same column in different columns on the same line. For example, using a CASE statement, I can:

    CASE WHEN CODE IN ('1 ', ' 3') THEN COUNT (ID) AS 'Y '.
    CASE WHEN CODE NOT IN ('1 ', am') THEN COUNT (ID) AS "N".

    Yes, that will produce two columns but will produce null values to empty and also two separate registers.


    Any ideas?

    Thank you

    Are you sure that this code works for you?

    Select ID
             ,CASE WHEN MODE_CODE IN ('1', '3') THEN COUNT( No) END as "Fulltime"
             ,CASE WHEN MODE_CODE NOT IN ('1', '3') THEN COUNT( No ) END  as "Other"
    From table
    group by ID
    

    I guess the code above fails because MODE_CODE is not in your group by?

    My suggestion would be to put the CASE in the COUNT:

    Select ID
             ,COUNT(CASE WHEN MODE_CODE IN ('1', '3') THEN No END) as "Fulltime"
             ,COUNT(CASE WHEN MODE_CODE NOT IN ('1', '3') THEN No END)  as "Other"
    From table
    group by ID
    

    CASE expressions return no. when the respective conditions are true and NULL otherwise.
    COUNTY will have non-null values.

  • How can I add session variables for the subject field and the body of the e-mail Message?

    How can I add session variables for the subject field and the body of the e-mail Message? Tried several combinations, but do not seem to correct the syntax.

    This is the code I have. I need to change all the form variables in $msg in session variables. The $to part is supported. What remains are the $subject and $msg fields.

    $à = « à : ». $_SESSION ["toemail"];
    $subject = '$firstname $lastname, your registration details ';
    $from = "from: [email protected]"; "
    $msg = "Dear $title $firstname $lastname\r\n\nThank for the registration for the design of your dream Home.\r\nWe have received this following details details of you-\r\n\nClient-\r\n\nOccupation: $occupation \r\nPhone No.: $phone \r\nE-mail: $email\r\n\nPresent $ location: \r\n location\r\n\nPresent address: \r\n$ address\r\n\n\nFollowing are specified by you - design requirements \r\n\nBasic Features\r\n\nNo." floors: $floors\r\nNo. of bedrooms: bedrooms\r\nNo of $. of bathrooms: $bathrooms\r\nFloor region: $sqft\r\n\nFurther Suggestions: $ Plan\r\n\nSplit one further\r\n\n\nType floor: $splitfloor\r\n-remarks: $splitfloorremarks\r\nOpen floor: $openfloor\r\n-remarks: $openfloorremarks\r\n\n\nList of the rooms to be Included\r\n\nFoyer: $foyer\r\n-remarks: $foyerremarks\r\nDrawing: $drawing\r\n-remarks: $ alive drawingremarks\r\nFormal: $formalliving\r\n-comments : $ alive formallivingremarks\r\nFamily: $familyliving\r\n-remarks: $familylivingremarks\r\nHome Office: $homeoffice\r\n-remarks: $homeofficeremarks\r\nDining: $dining\r\n-remarks: $diningremarks\r\nMaster room: $master\r\n-remarks: $masterremarks\r\nMaster bathroom: $masterbath\r\n-remarks: $masterbathremarks\r\nMaster Dressing: $masterdress\r\n-remarks: $masterdressremarks\r\nBedroom: $bed\r\n-remarks: $bedremarks\r\nBathroom: $bath\r\n-remarks: $bathremarks\r\nDress: $dress\r\n-comments : $dressremarks\r\nStudy: $study\r\n-remarks: $studyremarks\r\nLibrary: $library\r\n-remarks: $libraryremarks\r\nPowder room: $powder\r\n-remarks: $powderremarks\r\nPrayer room: $prayer\r\n-remarks: $prayerremarks\r\nKitchen: $kitchen\r\n-remarks: $kitchenremarks\r\nPantry: $pantry\r\n-remarks: $pantryremarks\r\nUtility/area of work: $utility\r\n-remarks: $utilityremarks\r\nBalcony: $balcony\r\n-remarks: $balconyremarks\r\nStore: $store\r\n-remarks: $storeremarks\r\nLaundry : $laundry\r\n-remarks: $laundryremarks\r\nVeranda: $veranda\r\n-remarks: $verandaremarks\r\nCar porch: $carporch\r\n-remarks: $carporchremarks\r\nGarage: $garage\r\n-remarks: Theater garageremarks\r\nHome $: $theater\r\n-remarks: room of $theaterremarks\r\nMaid: $maid\r\n-remarks: $maidremarks\r\n\nOther general remarks: $general\r\n\nPlease note that the fields have been left blank in your form will be considered undecided details and used in discretion.\r\nIf of the architect , it better to add more later, design requirements please feel free to reply to this email with the details. « ;
    $fla = mail ($to, $subject, $msg, $from);

    Thanks in advance!

    askintrades wrote:

    How can I add session variables for the subject field and the body of the e-mail Message?

    What you want to do? Given the nature of your question, it seems that you probably don't know what a session variable is used. The PHP manual describes the purpose of sessions here: http://docs.php.net/manual/en/intro.session.php.

    I need to change all the form variables in $msg in session variables. The $to part is supported. What remains are the $subject and $msg fields.

    $à = « à : ». $_SESSION ["toemail"];

    Why do you need to change the form variables in session variables? They are already stored in session variables, or they come directly from the form?

    The $to part is not supported. When you pass $to to the mail() function, it should contain only an e-mail address, not a string that begins with "to:

Maybe you are looking for