AS2 Dynamic graph

Hi
I want to create a set of buttons with assigned values, that after adding one to another, passes the value to graphsbar width.
here is somewhat ilustrated example of the structure
http://img9.imageshack.us/i/problemsvx.jpg/
In a practical way, the groupA could be different processor types, groupB; graphic cards and groupC; motherboards.
every button has 3 values that refers to: Velocity, Performance, Power usage (for example).
adding the value1 from groupA.ButtonA1, the value1 from groupB.ButtonB1 and so on... would give us a total width of the bar1
what would be the function to make this possible?
so far I'm using the TweenLite engine to do the tweening, and the code for 1 group is like this :
function group1(graph, value1, value2, value3)
TweenLite.to(graph.bar1, .5, {_height:value1});  
TweenLite.to(graph.bar2, .5, {_height:value2});  
TweenLite.to(graph.bar3, .5, {_height:value3});  
buttonA1.onRelease = function(){
   group1(performancegraph, 80, 90, 30);
buttonA2.onRelease = function(){
   group1(performancegraph, 45, 20, 5);
this only alters the initial values of the graph, how to construct all the rest?
I was thinking on adding a variable like
var Bar1TotalWidth:Number = group1.value1+group2.value1;
and put the Bar1TotalWidth into the _height:value1 but I'm totally lost now.
I'd appreciate help.

then you'll need to use non-local variables:
var bar1var1:Number=40;
var bar1var2:Number=10;
var bar1var3:Number=15;
etc
function barF():Void{
bar1._width=bar1var1+bar1var2+bar1var3;
bar2._width=bar2var1+bar2var2+bar2var3;
bar3._width=bar3var1+bar3ar2+bar3var3;
button1.onRelease=function(){
bar1var1=10;
bar2var1=100;
bar3var1=20;
barF();
etc

Similar Messages

  • Dynamic graph in Smart Forms

    Hi
    I have searched the forums and noticed this question has been put forward many times but without a complete solution.
    I have so far managed to use the IGS to create a .JPG/PNG file for me. I seem to have an error while trying to create a BMP file, basis is currently looking into this for me, i get a LISTENERRFC : error.
    I'm using class : cl_igs_chart_engine
    to generate a chart from the IGS, this is returned to me in a MIME table format.
    Now how can I use this MIME table to insert it dynamically in the SMARTFORM. I see there is provision for Dynamic determined graphics in smart forms but i don't think it can be used here.
    Does anyone know how to do this ? Is there any other more effective way of inserting dynamic graphs into SAMRTFORMS
    Another question is class : cl_igs_chart_engine, how can you create a line graph instead of a bar graph ?
    Thanks

    Hi Kevin,
    Dynamic graphic in samrtform is supported provided you have the BMAP ( Bitmap ) created in SAP. In the graphics node of SMARTFORM you can assign a variable &GRAPHIC& as the name. From the program pass the graphic name in variable "GRAPHIC" through samrtform interface .
    The prerequisite is that the graphics should be there in SAP database at the time you call smartform .
    About your other question I have no idea but I can say that if you can have a graphics created on your PC at runtime you can always upload it to SAP using report RSTXLDMC , just before calling smartform. However this would generate a lot of graphics on SAP even if it is for one time use by smartform . You will have to find a way to delete subsequently .
    Cheers

  • Color change in Halfgauge (Dynamic Graph)

    Hi all,
    i am using halfgauage dynamic graphs, my requirement is to swap the color form red to green and green to red as i tried all possibilities in animation link but i am not getting.
    thanks
    praveen

    Hi Praveen.
    You need to create a variable of type color and then map this to the desired element in the SVG image through animation link.
    You can create two color variable for red and  green and while mapping it in svg image you can write rule and assign proper color reference.
    Hope this will help.
    -- Ketan

  • Dynamic Graph

    Hi All,
    I'm running a site which gives Economic Data if anybody want. Now I have to show Graphs of selected data. can anybody help me that what should I use to create Dynamic Graphs, B'coz range of data is set by the user. Site is running on Oracle 8i and java on MS Windows environment.

    you should have a look into the bi beans at: http://otn.oracle.com/products/bib/content.html

  • Drawing a Dynamic Graph Using Java/J2EE Technology

    Dear Friends,
    I have a immediate requirement.
    I have to draw a dynamic graph based on changing statistical data(Stock market appliaction).
    Have a look at finance.yahoo.com.There we can a find a dynamic graph.The x and y axis in the graph will change according to the data it recieves without using refresh option and all ... In a periodic interval of time ,say for every 10 minutes the application have to check whether it has any changes in the statistical data it recieves (the data maybe from database or form anyother application). If it finds any changes ,automatically it should reflect those changes in the graph.
    Please help me out friends . I have been struggling with this over a period of time but am not able to resolve.
    Please provide me with any sample application and code.
    Keeping my fingers crossed.
    Thanks in Advance.

    I don't have example code, but I am sure JFree.org has lots. It's a free chart API for Java, that also works with Servlets etc.

  • Seeburger AS2: dynamic message subject

    Hi guys,
    I'm using and developing an AS2 scenario with the Seeburger Adapter.
    I've read Deepthi Thread relating having the AS2 subject build dynamically but there is no suggestion, and the manual is not clear about this.
    In the situation of getting one message sent by an external partner, we need to have the message subject placed as * and then replace the * by a field sent on the message or even by a static text.
    Have you guys faced this kind of problem?

    Hi,
    > Can anyone please me how to identify different messagetype (like order response,ASN and invoice) without using message subject in AS2 sender adapter
    When message comes to PI, initially it goes to seeburger workbench, here based on the EDI type (ANSI X12 or EDIFACT or...), EDI Version (4010 or 4020 or...) and Signal (850 or 810 or ....) it determines the respective mapping (E2X or X2E) program, this is done by Classifier.
    When we are sending outbound scenarios and using MDN option then message subject plays an important role. Once we send the outbound signal we can get the ack(997) signal, based on AS2ID and message subject it identifies the respective 997 inbouns scenario.
    > I cant use splitter because my sender is sending XCBL data and splitter we can use when we go for EDI.
    Seeburger is used if you are handling the EDI data but here you are using XCBL so you no need to use the seeburger adapters.
    Regards,
    Venkata Ramesh

  • Dynamic graph generation

    I have a query result as below. The number of Othercompany's can change.
    MyCompany 10%
    Othercompany_1 12%
    Othercompany_2 12%
    Othercompany_3 12%
    Othercompany_4 12%
    Othercompany_N 12%
    Now I have to generate "N" Pie Graph's individually comparing with mycompany.
    Can we generate DYNAMICALLY THE "N" number of PIE GRAPHS based on the above query. How to handle layout dynamically based
    on the above query results. I am using reports 10g. Appreciate your responses. Thanks
    MyCompany 10%
    Othercompany_1 12%
    MyCompany 10%
    Othercompany_2 12%
    MyCompany 10%
    Othercompany_3 12%
    MyCompany 10%
    Othercompany_4 12%
    ....

    Hi,
    just an idea. I have not tested it in this way but it should work.
    idea 1)
    Create two java classes as mentioned in Joe Huang's comment here (Re: ADF Mobile and Web Services and the mentioned video from Shay.
    The thread is about ADF mobile but it does not matter.
    This means you create a java class which returns the list of x and y values and create a POJO data control of it.
    This you can use to create your chart.
    In the java class you execute your view object (or whatever actual source of data you have) which will receive data for ALL columns.
    Depending on the selection the user has made in the GUI the java class has to copy the values of the correct column to the list of x/y values of the java class.
    idea 2)
    Depending on the selection the user makes in the GUI you create or modify a view object at runtime to use the correct column for x and y values.
    It's important to user always the same attribute name for the x and y values and just replace the name of the db column by the actual column name.
    hope this helps.
    regards
    Peter

  • Légende dynamique graphe

    Bonjour,
    je voudrais savoir s'il est possible d'avoir une légende dynamique pour un graphe déroulant (c'est à dire, que le nombre de ligne visualisé dans le bloc légende correspond au nombre de courbes tracés) ainsi l'utilisateur n'aura plus à modifier la taille du bloc légende. Je vous demande çela car le nombre de cours tracés varie selon les choix de l'utilisateur ...
    Merci ...
    Pièces jointes :
    legende.JPG ‏28 KB

    Bonjour sny7,
    Bienvenu sur le forum National Instruments
    Dans la liste des propriétés du Graphe Déroulant, sous légende, vous allez pouvoir modifier le nombre de lignes associé à la légende du Graphe.
    D'ailleurs vous pouvez aussi définir à vrai le redimensionnement automatique (horizontal) pour que le nom du tracé le plus long soit toujours visible.
    Bonne après-midi,
    Flo
    Open Diagram First

  • Dynamic graph can't be displayed when it is printed

    <font size="2"><font face="Arial">I've used crystal report xi for half an year. In recent days , I got two problems.</font></font> <font size="1"><span style="font-size: 9pt; font-family: Arial"> One is  that I directly insert a image into the rpt file as OLE object,  then I find that the image can be displayed on the report   but can be printed with ie's printing function. If I set the PrintMode with ACTIVEX mode of  the crystalreportviewer and print with activex component , the image is also visible. The system environment is that crystal report xi and RAS are installed  in the local machine, and web server is on the other machine.</span></font><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial"> The report is invoked and displayed using crystalreportviewer component through jsp.  The other is that I want to use new feature of dynamic graphic locations, and show different images in the report with the paths which are stored in the database. I've seen the threads in the crystal report forum, and known how to set the paths of images under the unmanagered RAS. But  my situation is that I have to publish every rpt files to the BO CRS,  so I don&#39;t know where I should place the images and how to set the paths. I try publishing the image into the same folder with rpt file in the CRS, but it can't work.</span></font><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial"> </span></font><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial">  Thanks in advance for any help.</span></font>

    Please re-post if this is still an issue to the Java Development - Crystal Reports Forum or purchase a case and have a dedicated support engineer work with you directly

  • Can anyone help with a dynamic graph question?

    Post Author: eseidel
    CA Forum: .NET
    I have a subreport that I'm having a lot of difficulty with and I dont know if I've hit the limitations of CR or I just don't know how to do it.  I need to set the subreport graph parameters on the fly and I can't figure out how to do this.  Here is the situation:
    My report prints a vendor report card, one vendor per report page.  For each vendor, I need to access a table and pull all parts that the vendor supplies our company with.  Then, I need to create a seperate 2D bar graph for each part that is listed under the vendor.  Since this is a subreport and would run for each vendor, and each vendor can have 1 to n-number of different parts, I need to create these graphs on the fly. Is this possible?  Any suggestions.  The furthest I have gotten was I can create a OLE DB(ADO) command that retrieves the parts for each vendor. 
    But from there I am stuck.  Once I have these parts per vendor, how can I iterate through them and create a new 2d bar graph for each one?  The graph itself would display on the x axis all of our vendors that supply us with a part, ranking them.  So if a vendor supplies us with Rubber Hoses, magnesium and Aluminum then I would need three graphs, one for each, Rubber Hoses, Mag, Al that would list the vendor on the x axis and points on the y axis pertaining to that specific part.  Understand?  Is this possible?  Help please.  Thank you.
    Eric

    Post Author: quafto
    CA Forum: .NET
    The CR for .NET SDK doesn't have the ability to create graphs on the fly. I suggest that you design your report in Crystal Reports and get it working the way you want there. Work as much with parameters and formulas as you can. The .NET SDK will allow you to pass parameters and modify formulas at runtime.

  • Help with a 2d dynamic graph question

    Post Author: eseidel
    CA Forum: Other
    I have a subreport that I'm having a lot of difficulty with and I dont know if I've hit the limitations of CR or I just don't know how to do it.  I need to set the subreport graph parameters on the fly and I can't figure out how to do this.  Here is the situation:
    My report prints a vendor report card, one vendor per report page.  For each vendor, I need to access a table and pull all parts that the vendor supplies our company with.  Then, I need to create a seperate 2D bar graph for each part that is listed under the vendor.  Since this is a subreport and would run for each vendor, and each vendor can have 1 to n-number of different parts, I need to create these graphs on the fly. Is this possible?  Any suggestions.  The furthest I have gotten was I can create a OLE DB(ADO) command that retrieves the parts for each vendor. 
    But from there I am stuck.  Once I have these parts per vendor, how can I iterate through them and create a new 2d bar graph for each one?  The graph itself would display on the x axis all of our vendors that supply us with a part, ranking them.  So if a vendor supplies us with Rubber Hoses, magnesium and Aluminum then I would need three graphs, one for each, Rubber Hoses, Mag, Al that would list the vendor on the x axis and points on the y axis pertaining to that specific part.  Understand?  Is this possible?  Help please.  Thank you.
    Eric

    Faster than an if statement, if you are up to learning it, is the use of the ternary operator.
    It's syntax is like this:
    condition ? value1 : value2
    where condition is a boolean expression, value1 is the expression to be evaluated and returned if and only if condition is true, and value2 is the expression to be evaluated and returned if and only if the condition is false.
    Your line of code would be something like:
    System.out.print(maze[i][j] == 0 ? "*" : " ");Edit: I am not assuming people are newbies when they are, I realize this.
    Message was edited by:
    Aken_Bosch

  • Print Dynamic Graph

    I have created a graph with a large number of samples on the X-axis, so the FULL graph can only be viewed using a horizontal scroller. But while printing the graph I am unable to get a print of the entire graph (only the viewable area is printed). Similarly for saving, I am not able to save the entire Length of the graph. Since my data is variable, I cannot have a fixed limit on the X-axis, so a horizontal scroller is a must to view. Any help in this regards would be highly appreciated.
    thnx,
    -prak

    Before drawing the graph onto the panel, draw the graph in its entirety onto an offscreen buffer. Then, copy the viewable portion of the graph onto the panel. Print from the offscreen buffer.

  • Dynamic Line Graph

    I am interested in adding a dynamic line graph to a form I have.
    I attempted to use myChart with an array which pretty much went nowhere.
    I have read a little on the subject which entails lots of script, which is ok, however I am lost and in need of some direction.
    Can anyone point me in the right direction.

    Creating dynamic graphs in a PDF is an very complex and a very advanced scripting task. If you need such graphs in your file, then PDF might not be the right choice for you.

  • The Picture of OLE object  in the report  can't be printed, and how to sovle dynamic OLE object based on path

    <p>Hi, everybody,</p><p>  I have a problem which the picture in the report can&#39;t be printed.</p><p>I want to display some pictures  in the reports and print them.So I insert the picture as OLE object, select the graph format and set graph location fomular with the path of the picture which is stored in the local machine. I run the system and generate the report,  the picture is displayed correctly in the report, but when i print the report using ie&#39;s tool, the picture is gone and replaced with a little red mark. </p><p>I want to use the new feature of dynamic graph location about  the  crystal report xi version, but I don&#39;t know where I should put the picture into on the web server and what the path is . Because my web server is installed in the another machine.</p><p>I check the view source of html report and  find that the system searches the picture under  the crystalreportviewer11 folder on the web server.</p>

    Need to give the web server access to the folder

  • Using graph in forms 10g

    Hello,
    I am using FormsGraph in forms 10g.
    Now I need additional options - more visualized graph and dynamic graph - like in Flash.
    Is there a way to achieve that using a java bean?
    Is it possible to use flash inside a form window?
    Thank you,
    Nina

    Java Plug-in 1.6.0_14
    Using JRE version 1.6.0_14-b08 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\nina_n
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    p: reload proxy configuration
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    Reading certificates from 141303 http://pc10-060.jer.ad.malam.com:8889/forms/java/frmall.jar | C:\Documents and Settings\nina_n\Application Data\Sun\Java\Deployment\cache\6.0\25\373de359-57e5f745.idx
    load: class oracle.forms.webutil.common.RegisterWebUtil not found.
    java.lang.ClassNotFoundException: oracle.forms.webutil.common.RegisterWebUtil
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Reading certificates from 141303 http://pc10-060.jer.ad.malam.com:8889/forms/java/frmall.jar | C:\Documents and Settings\nina_n\Application Data\Sun\Java\Deployment\cache\6.0\25\373de359-57e5f745.idx
    גרסת Forms Applet היא : 10.1.2.3
    Reading certificates from 1990 http://pc10-060.jer.ad.malam.com:8889/forms/java/eHTMLBrowser.jar | C:\Documents and Settings\nina_n\Application Data\Sun\Java\Deployment\cache\6.0\9\603b1b09-2844393f.idx
    Reading certificates from 6718 http://pc10-060.jer.ad.malam.com:8889/forms/java/jdic.jar | C:\Documents and Settings\nina_n\Application Data\Sun\Java\Deployment\cache\6.0\51\2a47f033-52581ebc.idx
    org.jdesktop.jdic.init.JdicInitException: java.io.IOException: The filename, directory name, or volume label syntax is incorrect
         at org.jdesktop.jdic.init.JdicManager.initShareNative(Unknown Source)
         at org.jdesktop.jdic.browser.WebBrowser.<clinit>(Unknown Source)
         at oracle.forms.fd.EnhancedHTMLBrowser.<init>(EnhancedHTMLBrowser.java:56)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at oracle.forms.handler.UICommon.instantiate(Unknown Source)
         at oracle.forms.handler.UICommon.onCreate(Unknown Source)
         at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
         at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)
         at oracle.forms.engine.Runform.startRunform(Unknown Source)
         at oracle.forms.engine.Main.createRunform(Unknown Source)
         at oracle.forms.engine.Main.start(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: The filename, directory name, or volume label syntax is incorrect
         at java.io.WinNTFileSystem.canonicalize0(Native Method)
         at java.io.Win32FileSystem.canonicalize(Unknown Source)
         at java.io.File.getCanonicalPath(Unknown Source)
         ... 23 more
    ------> ExtendedFrame title : Enhanced Web Browser
    Set Border=false
    Reading certificates from 141303 http://pc10-060.jer.ad.malam.com:8889/forms/java/frmall.jar | C:\Documents and Settings\nina_n\Application Data\Sun\Java\Deployment\cache\6.0\25\373de359-57e5f745.idx

Maybe you are looking for