12 Replies Latest reply on Jul 21, 2011 5:37 AM by Rajeshb_Flash

    FLEX TOPOLOGY NETWORK VIEW USING XML -- Source Code Need V Urgently !!!

    Rajeshb_Flash Level 1

      Hello Friends,

       

      I need a very big help from you guys !! I have to do a task in flex and my deadline is tuesday. I dont have any idea how to do/achieve ?? I believe some one will help me definitely...

       

      Task is , i have to do a FLEX TOPOLOGY NETWORK VIEW. And this has to done in FLEX and XML... All the nodes info has to come from XML, ie which node has to connect to which one etc... Based on the info what i am getting from XML, i have to display a FLEX TOPOLOGY NETWORK VIEW.....

       

      Can some one help me out. except this info i dont have anything to share..meanwhile i will also try from myside...i will def'ly share if i found any sol.

       

      Thanks guys, pls help me out... waiting for your replies...

       

      Rajesh

        • 1. Re: FLEX TOPOLOGY NETWORK VIEW USING XML -- Source Code Need V Urgently !!!
          pradeep reddy Level 1

          Rajesh,

           

           

          Here is the link which meets your requirements..!

           

          http://code.google.com/p/birdeye/wiki/RaVis

           

           

          Thanks

          Pradeep

          • 2. Re: FLEX TOPOLOGY NETWORK VIEW USING XML -- Source Code Need V Urgently !!!
            Rajeshb_Flash Level 1

            Hello Pradeep,

             

            Thanks for your reply, i dont have flex installed in my personal pc. so i have to try/implement the above thing in my office 2morrow only... i will let you know 2morrow about the feedback... thanks for your help once again.... i think the above link will help me out....

             

            Rajesh
            • 3. Re: FLEX TOPOLOGY NETWORK VIEW USING XML -- Source Code Need V Urgently !!!
              Rajeshb_Flash Level 1

              Hello Praddep,

              Now i got a problem again... I just strucked up... can you pls help me again.

              I have gone thru the source files and i can able to compile also...  everything is working fine... but my requirement was, i want to load my  own images using XML and i want to display those images in a network  topology ??? how to do this ?? and secondly, as of now the network  topology is in Tree -> Parent -> Children struture.... Now how to  load Children under Children !!! I have edited XML file also... but  still i cant able to figure it out.. can you pls help me on both the  issues....

              I need a solution little urgent.... can you pls help me...waiting for your reply
              Rajesh

              • 4. Re: FLEX TOPOLOGY NETWORK VIEW USING XML -- Source Code Need V Urgently !!!
                pradeep reddy Level 1

                Rajesh,

                 

                OWN ICONS:

                 

                look @ EmbeddedIcons.as file which is under org.un.cava.birdeye.ravis.assets.icons.. add yourOwn icons here and send the class name from XML file nodeClass="yourOWN" and for edge edgeClass="yourOWN"

                 

                showing Children:

                 

                RAVIs Birdeye capable of showing 'n' levels.. i think you are doing something wrong with the XML you prepared. please check it once

                 

                Thanks

                Pradeep

                 

                Message was edited by: pradeep reddy

                 

                Message was edited by: pradeep reddy

                • 5. Re: FLEX TOPOLOGY NETWORK VIEW USING XML -- Source Code Need V Urgently !!!
                  Rajeshb_Flash Level 1

                  Hey Pradeep,

                   

                  Thanks for your quick reply... I have verified the source files once again... The package name/structure what you are telling was exactly right ie

                   

                  org.un.cava.birdeye.ravis.assets.icons. But unfortunately i dont have the source code of that file ie EmbeddedIcons.as file . But i can able to see the documention file. But how to get that file to do the changes. I have checked in http://birdeye.googlecode.com/svn/trunk/ravis/RaVisExamples/ website clearly.

                  can you pls send me the source code of EmbeddedIcons.as file.

                   

                  I will try it out... for second issue ie children of children i will try it again by editing XML file...

                   

                  Thanks for your reply.

                   

                  Rajesh

                  • 6. Re: FLEX TOPOLOGY NETWORK VIEW USING XML -- Source Code Need V Urgently !!!
                    Rajeshb_Flash Level 1

                    graph.XML code i am using for Network Topology. That you can get in src code of RaVi's.

                     

                    Assume that i want to display children of children for F.6 ie for suppose if F.6 also may have 2 more children then how to edit the XML and where to edit the XML. can you pls do this small help for me.

                     

                    Also pls dont forgot to send me the source code of EmbeddedIcons.as file.

                     


                    Waiting for your rpely.

                     

                    Rajesh
                    • 7. Re: FLEX TOPOLOGY NETWORK VIEW USING XML -- Source Code Need V Urgently !!!
                      pradeep reddy Level 1

                      Rajesh,

                       

                      http://birdeye.googlecode.com/svn/trunk/ravis/  please checkout

                       

                       

                      and check livRaVis for EmbeddedIcons.as.. and regarding the children.. i will post the xml very soon.. !

                       

                       

                      Thanks

                      Pradeep

                      1 person found this helpful
                      • 8. Re: FLEX TOPOLOGY NETWORK VIEW USING XML -- Source Code Need V Urgently !!!
                        Rajeshb_Flash Level 1

                        Hello Friends,



                        I am still having lots of issues when customizing the source code of FLEX NETWORK TOPOLOGY.

                        Source files path: http://code.google.com/p/birdeye/wiki/RaVis, with this link i can able to download the files and can able to run the files without any errors..

                        I am customizing Level1.mxml file according to my requirements. As of now, the xml was structured in Earth->Tree->Leaf structure.

                        1) But when ever i am trying to create Earth->Tree->Leaf -> Leaf by editing graph.xml ie using "fromID" & "toID " nothing is coming. I mean whole swf becomes empty. But i can able to create chains with any tree to any leaf. But not with leaf of leaf......
                        2) I want to use my own XML structure for parsing and displaying the data in Network Topology. How's it possible ?? what are the source files i need to edit for this.
                        3) I want to load my own images instead of colored boxes ie for differentiation of Tree and Leaf. Hows it possbile ???

                        some how i've found full source code of this. but only thing was which files i need to edit to meet my reqmnts ??

                        I want to achieve all the things using Level1.mxml. Bcoz this is the file meeting my requirements of simple network topology. Using this file i need to achieve. can any one help me out....i am really thankful to them..

                        waiting for your replies.
                        Rajesh
                        • 9. Re: FLEX TOPOLOGY NETWORK VIEW USING XML -- Source Code Need V Urgently !!!
                          Rajeshb_Flash Level 1

                          Hello Pradeep,

                           

                          I have downloaded full source what you mentioned and after compiling i am getting an error from 1 file called Graph.as

                           

                          File path : org.un.cava.birdeye.ravis.graphLayout.data there is a class file called Graph.as and there is function called getTree() and here i am getting the error as below

                           

                          Multiple markers at this line:
                          -implements org.un.cava.birdeye.ravis.graphLayout.data.IGraph.getTree
                          -1047: Parameter initializer unknown or is not a compile-time constant.

                           

                          Can you pls resolve this error. Because i have some issues pending to do. But without fixing the above error i cant able to go forward, so i just strucked here.. I need a help desparately. sorry if am troubling you.

                           


                          waiting for your reply.

                           

                          Rajesh

                          • 10. Re: FLEX TOPOLOGY NETWORK VIEW USING XML -- Source Code Need V Urgently !!!
                            Rajeshb_Flash Level 1

                            Hello ,

                             

                            I have tried with all the available  swc's. I have tried with flex 3 related swc and also flex 4 related swc.  But still i am getting the same error from Graph.as file.

                             

                            can you pls give me a solution for this. I am strucked here from last friday. i need a solution desparately.

                             

                            waiting for your reply

                            Rajesh

                            • 11. Re: FLEX TOPOLOGY NETWORK VIEW USING XML -- Source Code Need V Urgently !!!
                              Rajeshb_Flash Level 1

                              Hello friends,

                               

                              I have solved almost all the errors,.

                               

                              I have solved the Graph.as error by changing the parameter value of  getTree function. Its working fine now. But now i am struggling to  achieve my requirement.

                              Now, i want to maintain nodeClass, nodeIcon,  x,  y  positions in a different XML file and to load accordingly ie how the  actual component is working till now. So how to map nodeClass, nodeIcon,  x & y attributes to Node id attribute.

                              Because Node id is from graph.xml and nodeClass, nodeIcon,  x,  y are from map.xml. how to map it each other using this component/code.

                              any idea/suggestions.. this was the only requirement pending..

                              FINAL XML -----------

                               

                              -------Graph.xml---------


                              <Graph>
                                 <Node id="1" name="ASN1"/> <!-- nodeClass="node" nodeIcon="43" x="10" y="10" -->

                                 <Node id="4" name="BS1"/> <!-- nodeClass="basestation" nodeIcon="2" x="10" y="25" -->
                                  
                                 <Node id="20" name="RS1"/> <!-- nodeClass="rs" nodeIcon="3" x="40" y="40" -->
                                 <Node id="21" name="RS2"/> <!-- nodeClass="rs" nodeIcon="4" x="40" y="45" -->
                                 <Node id="22" name="RS3"/> <!-- nodeClass="rs" nodeIcon="5" x="40" y="50" -->
                                 <Node id="23" name="MS1"/> <!-- nodeClass="rs" nodeIcon="6" x="40" y="65" -->
                                 <Node id="24" name="MS2"/> <!-- nodeClass="rs" nodeIcon="7" x="40" y="75" -->    
                                
                                
                                 <Edge fromID="1" toID="4"/>
                                
                                 <Edge fromID="4" toID="20"/>
                                 <Edge fromID="4" toID="21"/>
                                 <Edge fromID="4" toID="22"/>
                                
                                 <Edge fromID="22" toID="23"/>
                                 <Edge fromID="23" toID="24"/>
                                 <Edge fromID="21" toID="24"/>
                              </Graph>

                              • 12. Re: how to map 1 xml node value to another xml node value
                                Rajeshb_Flash Level 1

                                Hello Friends,

                                 

                                I still struch with up with my requirement, can any one help me out from this...

                                 

                                i am having an xml called Graph.xml like this ie

                                 

                                <Graph>
                                  <Node id="1" name="ASN 1" type="ASN" />

                                 

                                  <Node id="4" name="BS 1" type="BS"/>
                                   
                                  <Node id="20" name="RS 1" type="RS"/>
                                  <Node id="21" name="RS 2" type="RS" />
                                  <Node id="22" name="RS 3" type="RS" />
                                  <Node id="23" name="MS 1" type="MS"  />
                                  <Node id="24" name="MS 2" type="MS" />    
                                 
                                 
                                  <Link fromID="1" toID="4"/>
                                 
                                  <Link fromID="4" toID="20"/>
                                  <Link fromID="4" toID="21"/>
                                  <Link fromID="4" toID="22"/>
                                 
                                  <Link fromID="22" toID="23"/>
                                  <Link fromID="23" toID="24"/>
                                  <Link fromID="21" toID="24"/>
                                </Graph> -->

                                 

                                and here based on the type attribute ie ASN or BS or RS or MS i want to load another XML ie map.xml with values ....

                                 

                                <map>
                                    <ASN nodeIcon="center"/>
                                    <BS nodeIcon="Earth"/>
                                    <RS nodeIcon="Leaf"/>
                                    <MS nodeIcon="Leaf"/>
                                </map>

                                 

                                ideally if @type == ASN means, i have to map to <ASN nodeIcon="center"/> and vice versa...... where nodeIcon are images.....

                                 

                                waiting for your replies guys.. can anyone help me out..

                                 

                                rajesh