PlotSeries (One serie and multiple itemRenderer)

Hi all,
I'm working in charts, concretely with a PlotChart.
Its code:
<mx:PlotChart  id="plot" width="100%" height="100%"
                dataProvider="{chartList.arrRouting}"
                showDataTips="true">
              <mx:horizontalAxis>
                   <!--<mx:CategoryAxis categoryField="time"/>-->
                   <mx:DateTimeAxis  alignLabelsToUnits="true" dataInterval="2"
                        dataUnits="hours" parseFunction="myParseFunction"/>
              </mx:horizontalAxis>
               <mx:verticalAxis>
               <mx:CategoryAxis dataProvider="{chartList.arrcoll2}"/>
               </mx:verticalAxis>
               <mx:series>
                    <mx:PlotSeries id="pSeries" xField="time" yField="node"
                         fillFunction="myFillFunction"/>                    
               </mx:series>     
</mx:PlotChart>
DataProvider is an array like this: [event:'NodeConnected', time:'23:53', node:'A']
                                                 [event:'NodeDisconnected', time:'02:53', node:'A']
                                                 [event:'RemoveRouteTo', time:'01:53', node:'B'];
                                                 [event:'NewRouteTo', time:'23:53', node:'C']............................
And I use a fill function:
          private function myFillFunction(element:ChartItem, index:Number):IFill{
               var c:SolidColor = new SolidColor(0x00CC00);
               var item:PlotSeriesItem = PlotSeriesItem(element);
               if (item.item.event == 'NewRouteTo'){
                    c.color =0x01DFD7;
                    return c;
               if (item.item.event == 'RemoveRoute'){
                    c.color = 0xF7FE2E;
                    return c;
               if (item.item.event == 'NodeConnected'){
                    return c;
               }else {
            c.color = 0xFF0000;
               return c;
Then, I want to change the itemRenderer (icon) acorrding to param Event. As I have only one serie all items are with a circle (default Item Renderer),
I try to put in myFillFunction the next code: pSeries.setStyle("itemRenderer", new ClassFactory(mx.charts.rendereres.CrossItemRenderer)); but doesnt work.
Is it possible to do that?
Thanks in advance,

Hi,
if you set itemRenderer for series, all items will be rendered using this class.
If you want to have different pictures for items in one series you should create your own itemRenderer and change the symbol accoding data.
For example,
public class MyCoolItemRenderer extends ProgrammaticSkin implements IDataRenderer
... // do something
override protected function updateDisplayList(unscaledWidth:Number,
  unscaledHeight:Number):void
super.updateDisplayList(unscaledWidth, unscaledHeight);
var stroke:Stroke = getStyle("stroke");
var g:Graphics = graphics;
g.clear();
g.lineStyle(stroke.weight, stroke.color, stroke.alpha);
switch (data.event)
     case "NewRouteTo":
          g.drawCicle(0, 0, unscaledWidth); // just an example. You can show the way of rendering items in SDK source
          break;
g.endFill();

Similar Messages

  • How do I install driver for hp psc 2400 all in one series AND safe wsnmp32.dl​l Without a Disk?

    How do I install driver(s) for hp psc 2400 all in one series ( WIndows 7 laptop)   AND a safe version of wsnmp32.dll -- Without a Disk?    A tech took the driver off my laptop and I now have no printer/scanner.  Help!!
    Much thanks!

    Hello,
    I see that you're having an issue installing the software. I would suggest following this document, which will guide you through several steps on how to resolve the issue.

  • Content Conversion: One row with one header and multiple item structures. Possible?

    Dear all,
    I have a input that looks like this:
    HeaderKeySomeHeaderInformationItemKeySomeItemInformationItemKeySomeItemInformation...
    Here's the actual input
    TEHGMESS0026000000288S0001TEI2____026200006112410400000000           18010000000000                                                      00126000000000126000120600000000002000000000                                    000WESTMONOBERTBE2014052309422408120003 000000000000000000000000000000JTEI2____026200006112410400000000           19010000000000                                                      00126000000000126000120600000000002000000000                                    000WESTMONOBERTBE2014052309422408120003 000000000000000000000000000000J
    HeaderKey = TEHGMESS
    ItemKey = TEI2____
    Is it possible to process this via MessageTransformBean (my actual scenario is JMS to IDoc)? I already tried but I only succeeded when having new lines in my input to separate between Header and (multiple) Items.
    So when the input and my configuration looks like below it works, but when I only have a single row input it doesn't work, even when specifying xml.recordHeader.endSeparator = '0' / xml.recordItem.endSeparator = '0'. I even tried xml.endSeparator = '0' but no luck.
    Input that works
    TEHGMESS0026000000288S0001
    TEI2____026200006112410400000000           18010000000000                                                      00126000000000126000120600000000002000000000                                    000WESTMONOBERTBE2014052309422408120003 000000000000000000000000000000J
    TEI2____026200006112410400000000           19010000000000                                                      00126000000000126000120600000000002000000000                                    000WESTMONOBERTBE2014052309422408120003 000000000000000000000000000000J
    Matching configuration that works for input which structures are delimited by new line.
    Paramentername
    Parametervalue
    Transform.Class
    com.sap.aii.messaging.adapter.Conversion
    Transform.ContentType
    text/xml;charset=utf-8
    xml.conversionType
    StructPlain2XML
    xml.documentName
    MT_TEI2Split
    xml.documentNamespace
    http://hansgrohe.com/pi/MQ/TEI2/10
    xml.keyFieldName
    SATZARTKey
    xml.keyFieldType
    CaseSensitiveString
    xml.processFieldNames
    fromConfiguration
    xml.recordHeader.fieldFixedLengths
    8,4,9,1,4
    xml.recordHeader.fieldNames
    SATZARTKey,SATZLENHG,NUTZLEN,MESSAE,MESSNR
    xml.recordHeader.keyFieldValue
    TEHGMESS
    xml.recordItem.fieldFixedLengths
    8,4,2,10,8,19,3,3,2,10,6,2,10,6,2,10,6,6,6,6,6,11,9,2,10,6,2,10,6,3,4,3,7,14,8,1,31
    xml.recordItem.fieldNames
    SATZARTKey,SATZLEN,BUCHART,TRNR,ANDGNR,MITEM,TEIVARI,BSTSTATU,REFTYP,ORNO,POS,REFTYP1,ORNO1,POS1,CHATYP,CHARGE,CHAPOS,ABBVONL,ABBNACH,ZUBVONL,ZUBNACH,I2MENG,I2BUNR,REFTYPN,ORNON,POSN,REFTYP1N,ORNO1N,POS1N,BSTSTATN,ABUSERAB,ABUSERFN,ABUSERNA,I2TIME,I2LIDNR,I2FMCODE,FILLER
    xml.recordItem.keyFieldValue
    TEI2____
    xml.recordsetName
    records
    xml.recordsetStructure
    recordHeader,1,recordItem,*
    Any clues on this? Is it even possible to have multiple structures in one row? Many thanks in advance
    Jens

    SAP came back to me with this answer:
    First, I would like to point the documentation for Message Transform
    Bean (MTB) in 7.4:
    http://help.sap.com/saphelp_nw74/helpdata/en/57/0b2c4142aef623e10000000a155106/content.htm?frameset=/en/57/0b2c4142aef623e10000000a155106/frameset.htm&current_toc=/en/45/0ea2de423c2d6be10000000a11466f/plain.htm&node_id=18
    As it is written at the beginning of this document, MTB is used to
    call classes written for the Plain Adapter Engine. So you may find
    additional documentation about the parameters for convertion in the
    documentation of the Plain Adapter Engine
    (http://help.sap.com/saphelp_nw74/helpdata/en/0d/00453c91f37151e10000000a11402f/content.htm?frameset=/en/1b/d5ef3b1ad56d4fe10000000a114084/frameset.htm&current_toc=/en/75/246b3de666930fe10000000a114084/plain.htm&node_id=11).There it is written that the structures by default are
    arranged line-by-line. The endSeparator just adds additional character
    string as a separator after the last column in a row.
    I hope that this answers your question. MTB expects the data to be
    structured line by line.
    You may add a custom module, which transforms the message in the
    expected format.
    If you have a look at the second link there's even a more precise wording that multiple structures within one line are not supported:
    xml.NameA.endSeparator
    Even if no specification is made here, a line break must follow since substructures are always expected as a line of the document.
    Bottom line is that it's not supported by now and verfied by me with PI 7.4 SP5
    Many thanks to Ambrish, Amit and Hareesh for the valuable input. Will probably try to work things out for now following Ambrish's / Hareesh's suggestion as this seems easier to implement. Amit's proposal with a dedicated module however would probably be the more polished solution.
    Cheers
    Jens

  • ALV for one header and multiple item table

    Hello All,
    I have a requirement to display records from one header and three item table using ALV.
    The output should be such that
         1-line - record from header table
         followed by - records from the 1st item table(can have multiple entries corresponding to a header record and each should be displayed on separate line)
         followed by - records from 2nd item table(can have multiple entries corresponding to a header record and each should be displayed on separate line)
         followed by - record from 3rd item table(can have multiple entries corresponding to a header record and each should be displayed on separate line)
    Can you help me out.
    Thanks and regards,
    Subramanian.

    hi
    data population is same for alv or normal reporting.
    First you select the data from header
              select from item data using for all entries in it_header where....
              select item 2
              selct item 3
    loop a it_header
    read item1
    read item2
    read item3
    check sy-subrc
    move to i_final
    then build fieldcatalog and display..
    look the example
    SELECT   PERNR
               STELL
               WERKS
               ABKRS
               ENAME
               ENDDA
               BEGDA
               ORGEH
               PERSG
               PERSK
               KOSTL
          FROM PA0001
          INTO TABLE I_PA0001
         WHERE PERNR IN S_PERNR
           AND ABKRS IN S_ABKRS
           AND PERSG IN S_PERSG.
    SELECT  SPRSL
                STELL
                ENDDA
                STLTX
                FROM T513S
                INTO TABLE I_T513S
                FOR ALL ENTRIES IN I_PA0001
                WHERE STELL = I_PA0001-STELL AND SPRSL = 'EN'.
        SELECT  PERSA
                NAME1
             FROM T500P
             INTO TABLE I_T500P
             FOR ALL ENTRIES IN I_PA0001
            WHERE PERSA EQ I_PA0001-WERKS.
      LOOP AT I_PA0001 .
    READ TABLE I_T513S INTO WA_T513S WITH KEY STELL = WA_PA0001-STELL
                                                  SPRSL = 'EN'
                                                  ENDDA = WA_PA0001-ENDDA.
        IF SY-SUBRC IS INITIAL.
          MOVE WA_T513S-STLTX TO WA_FINAL-STLTX.
        ENDIF.
        V_SNO = V_SNO + 1.
    Read Value For Personal area Text.
        READ TABLE I_T500P INTO WA_T500P WITH KEY
                                PERSA = WA_PA0001-WERKS.
        IF SY-SUBRC EQ 0.
          MOVE WA_T500P-NAME1 TO WA_FINAL-NAME1.
        ENDIF.
    FORM DISPLAY_DATA .
    --BUILDING FIELD CATALOG--
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
       EXPORTING
         I_PROGRAM_NAME               = V_REPID
         I_INTERNAL_TABNAME           = 'I_FINAL'
      I_STRUCTURE_NAME             =
      I_CLIENT_NEVER_DISPLAY       = 'X'
         I_INCLNAME                   = V_REPID
      I_BYPASSING_BUFFER           =
      I_BUFFER_ACTIVE              =
        CHANGING
          CT_FIELDCAT                  = I_FCAT[]
       EXCEPTIONS
         INCONSISTENT_INTERFACE       = 1
         PROGRAM_ERROR                = 2
         OTHERS                       = 3
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    *--Modifying titles of Field Catalog--
      READ TABLE I_FCAT INTO WA_FCAT WITH KEY FIELDNAME = 'S_NO'.
      IF SY-SUBRC EQ 0.
        WA_FCAT-REPTEXT_DDIC = 'X'.
        WA_FCAT-SELTEXT_S = TEXT-041.
        WA_FCAT-SELTEXT_M = TEXT-041.
        WA_FCAT-SELTEXT_L = TEXT-041.
        WA_FCAT-OUTPUTLEN = 3.
        WA_FCAT-JUST = 'L'.
        MODIFY  I_FCAT FROM WA_FCAT INDEX SY-TABIX.
        CLEAR WA_FCAT.
      ENDIF.
    do for all the fields u want to display..
    Award points if useful.

  • One IDP and multiple web applications

    Continuing to look at the configuration necessary to enable SAML on my 2013 farm, I have two web apps which i would like to have SAML running on, both leveraging the same 3rd party IDP for authentication. As I dug into the various stages of configuration
    there is a part that establishes the SharePoint site realm identifier...researching what this is for, i found an article by Steve Peschka (http://blogs.technet.com/b/speschka/archive/2010/04/27/how-to-create-multiple-claims-auth-web-apps-in-a-single-sharepoint-2010-farm.aspx)
    in it he talks about if you have one IDP but multiple web apps that must use that IDP.
    Am i correct in understanding that when steve mentioned "You can only associate a token-signing certificate from an STS with one SPTrustedIdentityTokenIssuer." That the TS cert I import from my IDP is unique and is only able to be linked to one
    Web Application...unless i create a URI that makes Sharepoint aware of the additional web app?
    Going further...I can't just import another copy of the TS cert and set it to another name unique from the first one?, once this is done i could then create a new unique realm for that additional web app with that other cert. Then when configuring the web
    apps it would list two IDP's for me to choose from and i would assign them individually to on or the other.
    His article covered 2010 not sure how 2013 works with this stuff...new territory for me here so forgive my lack of knowledge on how this all comes together.
    Also, is there some sort of configuration necessary for Office web apps farm to work with SAML or is that handled through S2S communication and is beyond SAML?

    Right, so your IDP will have a single certificate which will be single-instanced on the SharePoint farm. Steve's article is accurate for SharePoint 2013 and I've used this method with ADFS. It should be no different, on the SharePoint side, with other IDPs.
    WAC is beyond SAML. The S2S/JWTs take care of it.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • HT1495 Multiple logons for one computer and multiple devices trying to use one itunes account.

    I have one computer with a logon for Kids and one for Adults.  There is a touch and nano that was added to a single itunes account tied to my email on the adult logon and the shuffle that is on the kids account.  I can't seem to get the multiple devices access to all the songs with out erase and re-sync error message when not using the right device on the assigned logon to the computer - why and can we change this?

    It sounds like each Windows user has it's own iTunesLibrary.itl file.  If that is the case, then you are correct, the correct device must be connected when logged in with the correct login.
    If all Windows logins share an iTunesLibrary.itl file... then it does not matter which login is used or which device is connected.

  • Can I use multiple IDs for one iTunes and multiple devices

    We have one family computer with iTunes, my older brother has an iPhone and I have an iPhone. A family ID was previously used to purchase songs for the family to share. My older brother has created an apple ID for his iPhone, and l have a yet unused apple ID. my brother downloaded songs etc onto the family iTunes that I would like to share, there are songs on the family apple ID that we would both like. Can you download purchases from multiple apple IDs into one iTunes  account, then sync that data onto multiple phones that each have a separate ID? Is iTunes linked to one ID? Can purchases from multiple IDs be grouped together in our family account. Also do I Actually need a separate Apple for my iPhone to prevent private messages and contacts being shared?
    Thanks for any advice

    I forgot to add my iPhone is brand new and unused, and also that the iTunes account has non purchased songs on there. Can these be shared. As it is a new computer the purchases from the family ID have not been downloaded yet

  • OWB10gR2 : One Repository and Multiple Enviroments(Dev , QA and Prod)

    Hi All,
    In 10gR1 , Runtime repository and Design repository used to be 2 different schemas. Because of this , we can simply have one repository in development and deploy the mappings into QA and Prod.
    In R2 , runtime and design objects are present in a single repository. Do we need to install separate repository for each of the environments(Dev, QA and Prod) or is there a way to manage multiple envs without multiple repositories?
    Thanks in Advance
    Mallee

    Hello Malle,
    We are in a similar situation so our setub looks something like this.
    We have a database which serves the purpose of design repository. Let's call it owbdev.
    We have three target databases (data warehouse). Let's call them whdev, whqa, whprd.
    In the db owbdev we configured an owb user (as owner of the repository) and various other users (as developers).
    In whdev, whqa and whprd we did the same configuration except this time, we called the repository owner in each of these target databases, owbrun. This will be what we call in R2 our control center.
    Then we deploy from owbdev to any of the three targets after having setup the appropriate locations and control center configurations in owbdev.
    If there is a better way to do things I'm open to any and all suggestions.
    Mike

  • One JAVA and multiple ABAP Instances

    Hello All,
    Till now i have done configurations for  Billerdirect on one Java instance  and one ABAP instance.
    Now my situation  in production we have multiple ABAP  (1 CI + 4 Dialog) and only one production Java instance.
    So in XCM configuration  using method  group_connect i have  created XCM configuration this is working fine.
    so here is our problem after doing this .
    For self user Registration  we have created JCO_RFC_Server in XCM   this configuration is working only in one situation.
    Since JCO_RFC_SERVER can be created only for one instance when ever self user registration  goes to other instance it fails , which is happening frequently
    Can anyone  please help me understand in creating XCM configuration for multiple ABAP instances so that i  can create multiple JCo_RFC servers.
    Over View:
    From one Java instance i want to establish multiple connection to ABAP (CI + DI) so that  i can create one JCO_RFC server for each connection.
    When i want to access system i will access using  XCM connection name at the end.
    eg some thing like this.
    http://myserver:53000/bd/public/frameset_top_html.jsp?SYS=MYSYS1
    http://myserver:53000/bd/public/frameset_top_html.jsp?SYS=MYSYS2
    Please help in moving forward.
    Thanks in advance.
    Regards,
    Vardhan.

    Hello All,
    Could you please help me in getting to an logical solution on this approach .
    Thanks,
    Vardhan.

  • One Executable and multiple computers

    I would like to confirm my understanding on this topic -
    Assuming I have one LV executable stored on a network location, and 6 PC's accessing that single EXE file -
    Is is correct the each PC loads that exe into it's internal memory, and as such, there is likely not an issue with
    X number of PC's accessing the same exe file ?
    Someone keeps trying to press the issue that comm errors are a result of 'too much demand' on the network EXE file.
    (The comm errors are due to RS232 limitations, in my mind, but I'd like to be sure I'm correct in my understanding).
    Thanks,

    Hi,
    Thank you both for the replies. 
    I certainly had thought about loading the software on the individual machines, however it was set up as I described before I started working 
    at my facility and it involves medical devices - which means validation of the most minute change.
    As the end of the year approaches, it's unlikely I can slow down production to prove a point.
    I wanted to verify my assumptions were correct before I pushed the issue.
    Thanks !

  • Datagrid and multiple ItemRenderer

    What I would like to do and haven't been successful is add a column to a Datagrid at runtime.  Each cell in that column is going to be different based upon user data. The first column is populated based upon a user query then another query (i.e. RESTful query) is made to mashup some data.
    I wanted a button (mashup data) to appear in the column enabled if data was available and disabled if data was not available.
    I was doing something like this:
    My MXML file has this:
            <mx:DataGrid id="dg" dataProvider="{ModelLocator.getInstance().list}" itemClick="itemClickHandler(event)" left="10" right="0" bottom="0" top="50" editable="true" >
                <mx:columns>
                    <mx:DataGridColumn headerText="Name" dataField="name" editable="true" />
                     <mx:DataGridColumn headerText="Data" dataField="someData" itemRenderer="ActionButtonItemRenderer" />
                </mx:columns>
            </mx:DataGrid>
    ActionButtonItemRenderer.as file:
        public class ActionButtonItemRenderer extends Button
            public function ActionButtonItemRenderer()
                super();
                label = "Show Data";
            override public function set data(value:Object):void {
                if (null == value.myData) {
                    label = "";
                    this.enabled = false;
            // Handle the search button event.
            override protected function clickHandler(event:MouseEvent):void
                // Code omitted here...
    It works but when I use my mouse wheel to scroll through the records the buttons get all hosed up and the enabled buttons become disabled.  It's weird.
    Thanks!

    You create an ArrayCollection or XMLListCollection and populate it initially with perhaps data that would represent "no data".
    Then if your queries return real data, the dataProvider object now "has data".
    The itemRenderer does the appropriate thing if there is not is no data.
    You don't generate the button in the dataProvider, you just get the label and visible property value etc. from the dataProvider.
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex / AIR Development, Training, and Support Services

  • One installer and multiple users

    I copied the Lion installer to a flash drive and I have a few different users at work that I want to upgrade. Can they buy Lion in the app store and then stop the download and use my copied installer to install Lion? Will there be any conflicts with future updates?

    The problem is that one transaction is linked to one user (on license), and a gblink will have the transaction id (orderid) inside of it.  I remember we were playing with a 'free' transaction type before I left, but I'm not if that got into 4.1 or not.
    The easier solution is to not send a gblink URL to the users, but to send a link to a service on your server that responds with HTTP 302 (or 303) redirect to gblink URL that the service computes with a brand new transaction id.

  • One Photoshop and Multiple Licenses?

    I want to purchase one Photoshop program but with additional licenses for other people to use on their computers. Does anyone know how much each additional license would cost?
    Also could the licenses be used on Macs and PCs?
    Thanks!!
    - Allen

    Right, so your IDP will have a single certificate which will be single-instanced on the SharePoint farm. Steve's article is accurate for SharePoint 2013 and I've used this method with ADFS. It should be no different, on the SharePoint side, with other IDPs.
    WAC is beyond SAML. The S2S/JWTs take care of it.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • One computer, One iPhone, and multiple calendars?

    I have multiple calendars in Outlook 2007. Unlike many posters, I have no problems syncing the "default" calendar. However, I have another calendar that I want to sync too. In iTunes, the only option I have is "sync all calendars" and it doesn't even list any to choose from. But, only my default calendar will sync. I've tried reloading iTunes, resetting the sync history, and I already have the updates for Outlook 2007. Anyone?

    According to this article, it appears that selected calendars are only available from OS X.
    http://support.apple.com/kb/HT1386?viewlocale=en_US
    CG

  • 3000 series and Multiple DHCP scopes (DHCP-relay)

    I need to send different DHCP options to users; however, I need to put certain groups in different subnets. Is it possible to setup the concentrator to relay for addresses from different scopes?

    - Configuration
    - System
    - IP Routing
    - DHCP Relay
    a. Enable 'Enabled' checkbox
    b. Select Forward to
    c. Address == 192.168.10.8 255.255.255.0
    - Address Management
    - Assignment
    a. Enable 'Use DHCP'
    - User Management
    - Groups
    - Select 'groupA'
    - Modify Group
    - Click General tab
    - Enter 'DHCP Network Scope' x.x.x.x
    - Select 'groupA'
    - Remove Address Pool
    Now I get the following error:
    118 02/08/2005 13:29:00.720 SEV=3 DHCPDBG/39 RPT=34
    DHCP discover timeout: no response from polled servers (xid 3821297335)
    I can ping the server, and it is serving up this scope to other devices (just not from the concentrator)

Maybe you are looking for