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

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

  • UIX: how to get dynamic image generation working on ias10G?

    Hi,
    Anybody got UIX Dynamic Image Generation working on ias10G, on unix? My Images do not get generated (the page only shows the plain links)
    My env:
    - ias10G
    - AIX Version 5
    - java version: unknown, do not know what version ias10G is using
    On earlier versions (OC4J 903) we had to make sure an XServer was running and pointed our DISPLAY variable to that server. When the XServer was down, we got a nice error message in the application logs. However on ias10G I cannot figure out where to set this variable and I cannot find any error messages.
    Can anybody please help me out a bit?
    Cheers,
    Martijn

    Hi Andy,
    Thanks for your reply. However, I have not yet been able to get it working.
    I have verified that the java version is indeed (this is what the oc4j logfile shows when I supply the -showversion parameter)
    java version "1.4.1"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1)
    Classic VM (build 1.4.1, J2RE 1.4.1 IBM AIX build ca1411-20030930 (JIT enabled: jitc))The relevant fragment of the opmn.xml:
              <process-type id="oc4j_cif_mh" module-id="OC4J">
                   <module-data>
                      <category id="start-parameters">
                         <data id="java-options" value="-Djava.security.policy=/oracbd/j2ee/oc4j_cif_mh/config/java2.policy -
    Djava.awt.headless=true -Xmx75m -Xms75m -showversion"/>
                         <data id="oc4j-options" value="-properties"/>
                      </category>
                      <category id="stop-parameters">
                         <data id="java-options" value="-Djava.security.policy=/oracbd/j2ee/oc4j_cif_mh/config/java2.policy -
    Djava.awt.headless=true"/>
                      </category>
                   </module-data>
                   <start timeout="900" retry="2"/>
                   <stop timeout="120"/>
                   <restart timeout="720" retry="2"/>
                   <port id="ajp" range="3301-3400"/>
                   <port id="rmi" range="3201-3300"/>
                   <port id="jms" range="3701-3800"/>
                   <process-set id="default_island" numprocs="1"/>
                </process-type>Finally, your JSP passes the test. I can access it. But still no uix image generation. Are there any logfiles I can check for error messages on the failing image generation? May it be a web cache problem?
    Thanks in advance

  • XMLParseException during dynamic theme generation

    Hi,
    I4m having problems with SQL statements in some requests to MapViewer during dynamic theme generation.
    When I put in the WHERE clause the operator "less than" the request fails. An XMLParseException is generated.
    For example:
    <jdbc_query XXXXXXX>
    select geom from table where column < 10
    </jdbc_query>
    the following exception is generated:
    oracle.xml.parser.v2.XMLParseException: Expected name instead of .
    When I change de symbol < to &lt; (like MapViewer Users Guide recommends):
    <jdbc_query XXXXXXX>
    select geom from table where column &lt; 10
    </jdbc_query>
    the following exception is generated:
    oracle.xml.parser.v2.XMLParseException: Unexpected EOF
    If the is no WHERE clause (select geom from table) the request works.
    What can be wrong ? Can I use the less than operator in the WHERE clause ?
    Thanks in advance,
    Rodrigo     

    OK. The OC4J version is 1.0.2.2.1. I4m using Oracle8i Enterprise Edition Release 8.1.7.0.0.
    Some examples of XML requests:
    1) This works fine
    <?xml version="1.0" standalone="yes"?>
    <map_request
    title=""
    basemap="MAP1"
    datasource="DS1"
    width="1098"
    height="648"
    bgcolor="#FFFFFF"
    antialiase="false"
    format="GIF_URL">
    <center size="73063.00272634998">
    <geoFeature>
    <geometricProperty typeName="center">
    <Point>
    <coordinates> 376875.541941716, 7810266.276712325</coordinates>
    </Point>
    </geometricProperty>
    </geoFeature>
    </center>
    <themes>
    <theme name ="PLANTIOS_MPD">
                   <jdbc_query
                   asis="true"
    spatial_column="GEOM"
                   render_style="C.PLANTIOS_MPD"
                   jdbc_host="MyServer"
                   jdbc_port="1521"
                   jdbc_sid="db01"
                   jdbc_user="scott"
                   jdbc_password="tiger"
                   jdbc_mode="thin">
                   select geom from table where column = 50
    </jdbc_query>
         </theme>
    </themes>
    </map_request>
    2) This doesn4t work ('<' replaces '=' in SQL WHERE clause)
    <?xml version="1.0" standalone="yes"?>
    <map_request
    title=""
    basemap="MAP1"
    datasource="DS1"
    width="1098"
    height="648"
    bgcolor="#FFFFFF"
    antialiase="false"
    format="GIF_URL">
    <center size="73063.00272634998">
    <geoFeature>
    <geometricProperty typeName="center">
    <Point>
    <coordinates> 376875.541941716, 7810266.276712325</coordinates>
    </Point>
    </geometricProperty>
    </geoFeature>
    </center>
    <themes>
    <theme name ="PLANTIOS_MPD">
                   <jdbc_query
                   asis="true"
    spatial_column="GEOM"
                   render_style="C.PLANTIOS_MPD"
                   jdbc_host="MyServer"
                   jdbc_port="1521"
                   jdbc_sid="db01"
                   jdbc_user="scott"
                   jdbc_password="tiger"
                   jdbc_mode="thin">
                   select geom from table where column < 50
    </jdbc_query>
         </theme>
    </themes>
    </map_request>
    3) This also doesn4t work ('&lt;' replaces '=' in SQL WHERE clause)
    <?xml version="1.0" standalone="yes"?>
    <map_request
    title=""
    basemap="MAP1"
    datasource="DS1"
    width="1098"
    height="648"
    bgcolor="#FFFFFF"
    antialiase="false"
    format="GIF_URL">
    <center size="73063.00272634998">
    <geoFeature>
    <geometricProperty typeName="center">
    <Point>
    <coordinates> 376875.541941716, 7810266.276712325</coordinates>
    </Point>
    </geometricProperty>
    </geoFeature>
    </center>
    <themes>
    <theme name ="PLANTIOS_MPD">
                   <jdbc_query
                   asis="true"
    spatial_column="GEOM"
                   render_style="C.PLANTIOS_MPD"
                   jdbc_host="MyServer"
                   jdbc_port="1521"
                   jdbc_sid="db01"
                   jdbc_user="scott"
                   jdbc_password="tiger"
                   jdbc_mode="thin">
                   select geom from table where column &lt; 50
    </jdbc_query>
         </theme>
    </themes>
    </map_request>
    Thanks,
    Rodrigo

  • 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.

  • UIX dynamic image generation problem under SUSE Linux

    Hi,
    we have developed an application with UIX 2.1.14 under Windows 2000, and everything works fine when we run the application on the local OC4J.
    But after deploying the .war file to our production system under SUSE Linux SLES-7 and 9iAS Rel.2, the dynamic image generation doesn't work correctly:
    One strange thing we noticed is that rendering works fine when we use ground colours like #00FF00, #FF0000 and so on. But not when we use colours like #3172ba. We have tried this with XVFB, VNC and with "headless" JDK 1.4 (with java option -Djava.awt.headless=true in opmn.xml).
    Any ideas? Or possible reasons why image generation works using colours like #FF0000 and why not with colours like #3172BA?
    Regards,
    Matthias Scherer

    Hi Brian,
    there are no messages telling us that there is a problem with our x-server. The only messages belonging to the graphics initialization we get are:
    Rendering page = Page[name=pages/login]
    oracle.cabo.image: Initializing image cache: /oracle/ias1/j2ee/OC4J_AIS/applications/aisintra/aisintra/cabo/images/cache/de/ ...
    oracle.cabo.image: Finished initializing image cache: /oracle/ias1/j2ee/OC4J_AIS/applications/aisintra/aisintra/cabo/images/cache/de/
    oracle.cabo.style: Initializing graphics environment...
    oracle.cabo.style: Waiting for graphics environment initialization...
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    oracle.cabo.style: Finished initializing graphics environment.
    oracle.cabo.style: Initializing fonts...
    oracle.cabo.style: Waiting for font initialization...
    oracle.cabo.style: Finished initializing fonts.
    oracle.cabo.image: Initializing image cache: /oracle/ias1/j2ee/OC4J_AIS/applications/aisintra/aisintra/cabo/images/cache/ ...
    oracle.cabo.image: Finished initializing image cache: /oracle/ias1/j2ee/OC4J_AIS/applications/aisintra/aisintra/cabo/images/cache/
    Regards,
    Matthias

  • Dynamic  report generation

    We are migrating our client reports from crystal reports to business object reports and I need your help on how to achieve the below functionality in Business object reports.
    Requirements
    1. We need to generate and deliver around 30,000 statements to clients (mostly ftp and email) from 300 Webi report templates.
    2. This has to be a complete automated process with no user intervention.
    For example: Using Webi / Deski Report1, we need to run the report for each client account and then generate a statement and deliver it to client (only client specific data). Web1 reports are complex and some might take 30 to 60mins for generation.
    Questions
    1) Can it be done by just using BO tools with out coding ( using any .net sdk)?
    2) Can a single BO server handle the load, If not How to load balance reports generation and delivery across multiple servers?
    3) How to dynamically pass parameters to Webi report without coding?
    Thanks for reading my post. Any help/ suggestion is appreciated.

    In our current architecture, 
    1) We use crystal report templates and pass dynamic datasets at runtime to generate multiple client statements.
    2) For load balancing, we have 6 app servers with crystal runtime installed and we distribute load across the servers using custom code.
    My question is if use BO enterprise will there be any performance enhancements?

  • Dynamic HTML generation from a Dynamic PDF/XDP

    I was wondering if LiveCycle is able to generate a dynamic HTML page from a dynamic XDP/PDF form in LiveCycle ES ?
    I have read up on the help contents regarding HTML generation from PDF forms but its not mentioned anywhere whether LiveCycle supports the creation of an HTML page that mimics the dynamic behavior of a dynamic PDF/XDP form.
    Thanks in advance

    Yes it does ....
    Paul

  • Dynamic form generation

    Dynamic NX form generation from recordset
    Quite often I've needed different forms (edit from an ADDT nextensio list)
    dependent on user level or company
    it would be very useful to be able to define the form fields from a recordset first
    rather than create individually tailored forms
    Paul

    Hi
    1. You're on the wrong forum. Please post on the LiveCycle designer forum.
    2. Use a Table or a repeating subform. Bind the table row to "persons[*]" and the column cells to person/first_name.
    Howard
    http://www.avoka.com

  • 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

  • Dynamic UIElement Generation at Runtime

    Hi everybody,
    My problem is, that I want to create a number of elements at runtime. The number depends on the records in the database. So when I got 30 records in my database. I want to create 30 elements. So far, so good.
    The connection through the WebServices works very well.
    Now I got my problems with display the elements. I want to use the tray element.
    Now my Code looks like this:
    //... much code before! :-)
    //here you get the number of affected rows
    length = req.getResponse().getResultAsArray().length;
    //dynamically create trays, after the number of selected rows
    for (int i = 0; i < length; i++)
    IWDTransparentContainer transparent = (IWDTransparentContainer) view.createElement(IWDTransparentContainer.class, "TC."+i);
    IWDTray tray = (IWDTray) view.createElement(IWDTray.class, "tray."+i);
    //I don't want any more options at the moment ;-)
    tray.setEnabled(true);
    tray.setExpanded(false);
    transparent.addChild(textView);
    transparent.addChild(tray);
    So but nothing is shown on the screen.
    Now there exists the method setVisible(), I think this is the key to solve my problem. But this method expects a WDVisibility parameter and I don't know what I must type in.
    I tried it with com.sap.ide.webdynpro.uielemtdefinitions.Visibility, it doesn't work.
    Then I created a context attribute with this type!
    doesn't work, too.
    My you can help me?
    Kind Regards,
    Andre

    Hi,
    for (int i = 0; i < length; i++)
    <b>IWDTransparentContainer container = (IWDTransparentContainer)view.getElement("RootUIElementContainer");</b>
    IWDTransparentContainer transparent = (IWDTransparentContainer) view.createElement(IWDTransparentContainer.class, "TC."+i);
    IWDTray tray = (IWDTray) view.createElement(IWDTray.class, "tray."+i);
    //I don't want any more options at the moment
    tray.setEnabled(true);
    tray.setExpanded(false);
    transparent.addChild(textView);
    transparent.addChild(tray);
    <b>container.addChild(transparent);</b>
    Hope it helps,
    Regards,
    Nagarajan.
    Message was edited by: Nagarajan Kumarappan

  • Dynamic FileName generation

    Hi,
    I have a source idoc xml file and the target structure has only 2 fields. Mapping contains only 2 fields which is used from the idoc and put to the fields in the target strucuture.
    After transformation, I need to create a file with the filename in the format <idoctype>_<idocnumber>.xml. And also the idocnumber will be of certain length like 15 digits. if the idoc number is 2343 then the file name should be <idoctype>_000000000002343.xml.
    If the value was to be picked in target payload then variable substitution would be the answer. But in this case it is from the source payload,
    Please guide me.
    Regards
    Shashi

    Hi
    refer this blogs..
    /people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i - Dynamic File Name Part 1
    /people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii - Dynamic File Name Part 2
    Might help you
    Thanks,
    vasanth.

Maybe you are looking for

  • Can't back up with error message"Iphone disconnect" (IPhone4 Itunes 11)

    Pls. help me I can't back up my Iphone 4 with ITunes 11. The error mmessage is because of Iphone disconnect but I'm connecting!

  • Replaced modem but again same problem

    Hi, I do not know what to do. When I switched to werizon DSL internet the first two months the internet was OK, but after the light for the internet on my modem- westell 7500 started to turn red, and some times just off color. Initially the switch of

  • Invalid Factory Calender error

    Hello gurus, While making a subcontracting PO, the following error is coming "Invalid factory error or error in the factory calender" I have checked the plant settings & have put Factory calender IN for the plant. Still the error is coming. How to re

  • Opening projects created in older versions

    IF I install Adobe Photoshop Elements 11 & Adobe Premier Elements 11, will I be able to open and edit projects I created in Elements 6?

  • My canon T5i raw photos won't load into PS CS4 on my Mac with Yosemite

    I Recently got a new Canon T5i. I also had to get a new hard drive for my Mac, it came with Yosemeti on it.  I am unable to open RAW photos in my PS CS4.  I downloaded the 7.4 update but it still won't work.  Any suggestions?