Create graph scale programatically

Another day, another problem.
I'm currently writing a holy grail tool for our UI development and have run into a problem.  How do I add an X-Scale or an Y-Scale to an existing graph programatically?
I can iterate through the existing scales and store all relevant information from them but when I want to apply these infos to a target graph (regardless of type) I have hit a brick wall with regard to adding scales.
With sliders this was mush easier because we have the "Add slider" and "delete slider" methods.
Anyone have any ideas?
Scripting allowed.
Shane.
Say hello to my little friend.
RFC 2323 FHE-Compliant

Seems like the only way.  It's a bit of an ugly workaround, but whatever.  Even if I was able to delete the scales I could start with a silly number (16 or so) and delete the ones not needed.  I must try actually deleting scales to see if that works.  I don't like the idea of graphs in production code (sold software) with zillions of scales when it only needs a few.......
Shane
Ps Nope, deleting doesn't seem to work.... Bugger.
This is a big hole in my design.
Say hello to my little friend.
RFC 2323 FHE-Compliant

Similar Messages

  • Programatically edit graph scale

    Hi,
    I kow that I can edit graph scale values simply mouse clicking on them, and typing new values.
    Now I want to reproduce this behaviour programatically, but the problem is that I can't use the mouse in my application (only keyboard is available  )
    So, is there a way to programatically get focus to scale boundaries (x_min, x_max, y_min, y_max)?
    I hope so...
     I need to programatically setting them.
    Using LV 6.1 on Linux Fedora Core 3
    Vix
    In claris non fit interpretatio
    Using LV 2013 SP1 on Win 7 64bit
    Using LV 8.2.1 on WinXP SP3
    Using CVI 2012 SP1 on Win 7 64bit, WinXP and WinXP Embedded
    Using CVI 6.0 on Win2k, WinXP and WinXP Embedded

    I'd have suggested this too - but you may be limited. Imagine you have set your control to increment by 0.01 (for precision reasons) - how long may it take if you want to set a value of 50?
    By the way - building a num pad is not that complicated. Of course it takes time to accomplish, but I think you are most flexible.
    Using LV8.0
    Don't be afraid to rate a good answer...

  • Reciprocal Graph Scales

    I'm trying to plot an XY Graph with one of the scales (x-axis) set to the reciprocal of a variable.  I can plot this by calculating the values within an array, however the scales (as would be expected) now show the reciprocated value (ie. 1/value).  I would like to plot the reciprocal values whilst still displaying the actual values, similarly to how mapping in log mode would show the value before taking it's logarithm.  Essentially I'm wondering if a reciprocal mapping mode can be generated, since the scale varies non-linearly.  I'm using LAbview V8.0.  Thanks.

    Wiebe@CARYA wrote:
    Create a property node of the graph, select the Y Scale, and select the property Marker Values[]. With this property, you can set the markers any way you like it (the values are sorted automatically). Use the Flipped property to reverse the scale.
    I am pretty sure if this will not work because "stel" wants labels that don't correspond to the underlying plotted data. For example, he wants to show a 10 where the value is actually 0.1, etc.
    The proper solution would be to make your own graph in a picture indicator. Have a look at the example "XY Multi Plot.vi" as a starting point.
    Unlike the scales of sliders, graph scales unfortunately don't support text labels (Now here's something that could be useful! ). Of course you could cheat, hide the graph axis and substitute a slider with only the axis shown. Now assign label/value pairs of e.g. "10"/0.1, "2"/0.5, etc.. as desired.
    Align everything perfectly and make sure to disable "autoadjust scales" on the graph so things don't move around. See how far you get.
    LabVIEW Champion . Do more with less code and in less time .

  • How create graphs(pie and bar graphs) in j2me

    hi friends,
    how to create graphs in j2me?
    plz help me.
    regards,
    Shruthi R S

    Hi Shruti,
    I have developed the same application in j2me. I worked on graphs related to stocks. So i think my code can work for u too.
    Here is the code for displaying bars:
    package project;
    import javax.microedition.lcdui.Canvas;
    import javax.microedition.lcdui.Command;
    import javax.microedition.lcdui.Displayable;
    import javax.microedition.lcdui.Font;
    import javax.microedition.lcdui.Graphics;
    class BarCanvas extends Canvas {
         public static boolean indicator=true;
         public static int lenght=120;
         int pad=2;
         Font font;
         private int fh;
         String xName = "";
         String yName = "VALUE";
         private int xmargen=15;
         private int ymargen=15;
         private int initialx=0;
         private int initialy=0;
         int scale = 15;
         private int bw=0;
         int index=0;
         int scaleincr;
         int padincr;
         int pady=0;
         String s1;
         //int bars[]={20,30,40,40,50,20,70,80,90};
         int bars[]={20,30,40,50,300};
         int k=bars.length;
         int barinc=scale+bw+pad;
              BarCanvas(String s1){
                   this.s1=s1;
                   font = Font.getFont(Font.FACE_SYSTEM,
                   Font.STYLE_PLAIN, Font.SIZE_SMALL);
                   fh = font.getHeight();
                   if(s1.equals("Tic"))
                        padincr=2;
                        bw=3;
                        scaleincr=3;
                   if(s1.equals("1 minute"))
                        padincr=2;
                        bw=3;
                        scaleincr=3;
                   if(s1.equals("5 minutes"))
                        padincr=2;
                        bw=3;
                        scaleincr=15;
                   if(s1.equals("15 minutes"))
                        padincr=10;
                        bw=5;
                        scaleincr=15;
                   if(s1.equals("Hourly"))
                        padincr=10;
                        bw=5;
                        scaleincr=1;
                   if(s1.equals("Daily"))
                        padincr=10;
                        bw=5;
                        scaleincr=1;
                   if(s1.equals("Weekly"))
                        padincr=10;
                        bw=5;
                        scaleincr=1;
                   }//linecanvas
    public void paint(Graphics g) {
                        int width = getWidth();
                   int height = getHeight();
                   int titleHeight;
                   g.setFont(font);
                   int titlex1 = font.stringWidth("TIME");
                   int titlex = (width-titlex1)/2;
                   g.setColor(0,0,0);
                   g.fillRect(0, 0, width, height);
                   //set text on scales
                        setScaleName( xName, yName, titlex, height, width, g);
                   // x axis
                        drawXasxis( g, width, height,xmargen,ymargen);
                             //y axis
                             drawYasxis( g, xmargen, height,ymargen);
                        //horizontal scale
                             drawXhorizontalScales( g, width, height, scale,xmargen,ymargen);
                             //vertical scale
                             drawYVerticalScales(g, width,height,scale,xmargen,ymargen);
                             //draw x scale no.
                             setXScallNo( g, width, height, scale);
    //                         draw y scale no.
                             setYScallNo( g, width, height, scale);
                             //draw line.
                             drawBar(g,height);
    public void setXScallNo(Graphics g,int width,int height,int scale){
         String s=initialx+"";
         int increment =scaleincr;
         for(int i= xmargen;i<width;i+=scale){
              //G.drawLine(i, height-10, i, height-10);
              g.drawString(s,i,height-2,Graphics.BOTTOM|Graphics.HCENTER);
              s=(initialx+increment)+"";
              increment+=scaleincr;
         return;
    public void setYScallNo(Graphics g,int width,int height,int scale){
         String s=initialy+"";
         int increment =scale;
         for(int i= height-ymargen;i>0;i-=scale){
              //G.drawLine(i, height-10, i, height-10);
              g.drawString(s,0,i,Graphics.TOP|Graphics.LEFT);
              s=(initialy+increment)+"";
              increment+=scale;
         return;
    public void setScaleName(String xName,String yName,int titlex,int height,int width,Graphics g){
         g.setColor(250,250,250);
         g.drawString("X-scale=10",width-70,3,Graphics.TOP|Graphics.RIGHT);
         g.drawString("Y-scale=10",width-10,3,Graphics.TOP|Graphics.RIGHT);
         g.drawString(xName,width/2,(height-fh),Graphics.TOP|Graphics.LEFT);
         int i=0;
         for(int j=0;j<yName.length();j++){
              String s=yName.charAt(j)+"";
         g.drawString(s,1,(height/2)+i,Graphics.TOP|Graphics.LEFT);
         i=i+10;
         return;
    public void drawXasxis(Graphics g,int width,int height,int xmargen,int ymargen){
         g.setColor(0x6FFFFF);
    g.drawLine(xmargen, height-ymargen, width , height-ymargen);
    return;
    public void drawYasxis(Graphics g,int xmargen,int height,int ymargen){
         g.setColor(0x6FFFFF);
         g.drawLine(xmargen,height-ymargen,xmargen,0);
         return;
    public void drawXhorizontalScales(Graphics g,int width,int height,int scale,int xmargen,int ymargen){
         g.setColor(0x6FFFFF);
         int j=0;
         while(j<5){
         for(int i= xmargen;i<width;i+=scale)
              g.drawLine(i, height-(ymargen+j), i, height-ymargen);
         j++;
         return;
    public void drawYVerticalScales(Graphics g,int width,int height,int scale,int xmargen,int ymargen){
         g.setColor(0x6FFFFF);
         int j=0;
         while(j<5){
         for(int i=height-ymargen;i>0;i-=scale){
              g.drawLine(xmargen+j,i,xmargen+j,i);
         j++;
         return;
    public void drawBar(Graphics g,int height){
         int j=1;
         for(int i=index;i<bars.length;i++,j++)
              //g.drawRect(scale+bw*j+pad*j,(height-15)-bars,bw,bars[i]);
              g.drawRect(scale+bw*j+padincr*j,(height-ymargen)-bars[i]-pady,bw,bars[i]);
    g.fillRect(scale+bw*j+padincr*j,(height-ymargen)-bars[i]-pady,bw,bars[i]);
    public void setData(int length)
    public int getData(){
         return 0;
    public void keyPressed(int keyCode) {
    if ((keyCode==KEY_NUM4))
         initialx=initialx+scaleincr;
              if(s1.equals("5 minutes"))
                   if(index==0)
                   index=index+3;
                   else
                   index=index+4;     
              else if(s1.equals("15 minutes"))
                   if(index==0)
                   index=index+1;
                   else
                   index=index+1;
              else
                   index=index+scaleincr;
              repaint();
              System.out.println(scaleincr);
    if ((keyCode==KEY_NUM6))
         if(initialx>0)
              initialx=initialx-scaleincr;
              if(s1.equals("5 minutes"))
                   if(index==3)
                   index=index-3;
                   else
                   index=index-4;     
              else if(s1.equals("15 minutes"))
                   if(index==1)
                   index=index-1;
                   else
                   index=index-1;
              else
                   index=index-scaleincr;
         //index=index-scaleincr;
         repaint();
    if ((keyCode==KEY_NUM2))
         if(initialy>0)
         pady=pady+15;
         initialy=initialy-scale;
         repaint();
    if ((keyCode==KEY_NUM8))
         pady=pady-15;
         initialy=initialy+scale;
         repaint();
    protected void keyReleased(int keyCode)
    protected void keyRepeated(int keyCode)
    Similarly u can do for lines and candle sticks too.
    If u need any help give any mail id to post jad or jar files.
    Regards ,
    Deepika

  • Getting graph scales and grids to only show integers

    How do I get a mixed signal graph as shown in the attachment to only show the whole integers on the y axis and reduce the grid to doing the same?
    Solved!
    Go to Solution.
    Attachments:
    Graph Scale Issue.JPG ‏38 KB

    Hello,
    programatically, you have a property node for the graph scale that should do the job :"increment"
    => property node, Y scale, range, increment.
    The grid will follow.
    The minimum increment depend on the graph vertical size (and marker font size I guess, wich also has its property node)
    example attached, hope it helps.
    antoine
    Attachments:
    increment sample.vi ‏11 KB

  • How can I add custom captions to a waveform graph scale?

    I have an application that displays one or more signals in a WvfmGraph.  The X Axis is set by a hardware encoder giving signals vs. distance (measured length).  I would like to change the caption of the XScale according to the values of one of the signals.  Its similar to an XY graph, but differs in that I want to see the data unrolled.
    The problem is that the X Axis scale markers are fixed.  I would like to ask the graph what is range property of the X Axis scale.  Then use that information and a derived position signal to replace the marker values with values from a derived signal that includes relative motion. 
    For example, measuring a unit 100 feet long results in measurements of 200 feet worth of data (out and back).  The customer would like to see this data unwrapped 0, 50, 100, 50, 0. 
    One alternative is to use an XY Graph, but the data on top of itself.  Not necessarily a bad thing, but not the same as what they have always had.
    I found a similar post to display the scale at a rotation (CW or CCW) and was able to get it to work for my specific case.  The problem is that my picture marker values are not aligning nicely with the corresponding gridlines. 
    Attachments:
    Position vs MeasuredDistance.PNG ‏43 KB
    Position vs. PseudoPosition.PNG ‏37 KB

    Stephen,
    Thanks for replying to my post.  XScale.Range does not handle this situation.  In "rigorous" terms, LV does the right thing with X axis scale markers and put them where you want.  I tried to set custom Marker values as: {0, 50, 100, 50, 0} and only saw the first three values.  My guess is that under the hood, the spacing is set to 'Arbitrary' and my custom values are overwritten.  Not what I intended, but I admit my task is not the normal use case.
    Today I am prototyping the entire application with each WvfmGraph replaced with XYGraph's.  Good thing I used a modular design and passed Refnums around to all my subVI's.  Depending on a review of this prototype, I might skip this graph scale formatting.
    FYI, the original graph issue wanted to rotate the marker labels CCW.  They hid the graphs XScale and used a custom picture to display the new scale.  There is a VI that formats an axis with custom labels, where the font, text, etc. can be customized.  I have a working example of that custom scale on a Wvfm graph.  I stopped refinement when I tried to consider use cases for how the user would zoom on the data, how the graph's label's would appear if the DAQ signal indicated that the part reversed on itself.  All the data is better visualized on an XY Graph.
    p.s. are you one of the Waterloo Labs engineers?  Great stuff!

  • Issue while creating ADF Table programatically

    Hi,
    I am trying to create a table programatically...And i implemented like below:
                RichTable phoneTable = new RichTable();
                phoneTable.setEmptyText("No Phone Details yet");
                getContactPhone(contactObj.getPhone());
                phoneTable.setValue(contactObj.getPhone());
    // contactObj.getPhone() is a ArrayList<TelephoneBOD> in pojo Object...
    // Which is taken from a Object returned from DataControl Method (Captured in pageFlowScope)
                phoneTable.setVar("row");
                // Add Columns
                RichColumn column = new RichColumn();
                column.setHeaderText("Type");
                column.setId("phoneType");
                column.setAlign("right");
                column.setWidth("100");
                // Set output.
                RichOutputText output = new RichOutputText();
                output.setValue("#{row.phoneType}");
                // Add output into column.
                column.getChildren().add(output);
                // Add column into table.
                phoneTable.getChildren().add(column);When i try to implement like this i am getting fllowing error:
    popup:
    ZIP_STATE_FAILED
    ADF_FACES-60097:For more information, please see the server's error log for an entry beginning with: ADF_FACES-60096:Server Exception during PPR, #2log:
    Caused By: java.io.NotSerializableException: org.ieee.internal.ws.proxy.conf.types.TelephoneBOD
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
         at java.util.ArrayList.writeObject(ArrayList.java:570)
         at sun.reflect.GeneratedMethodAccessor252.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
         at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
         at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
         at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
         at org.apache.myfaces.trinidad.component.TreeState.writeExternal(TreeState.java:239)
         at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1421)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1390)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
         at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
         at org.apache.myfaces.trinidad.component.TreeState.writeExternal(TreeState.java:241)
         at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1421)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1390)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
         at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)I think this is happening because i am not serializing the object passing to Table. If this is the Reason.. How to serialize the object?
    Or i am missing something in the code?
    Thanks
    Thoom
    Edited by: User007 on Aug 31, 2011 1:47 PM
    Edited by: User007 on Aug 31, 2011 1:47 PM

    Thanks Timo.. for simple solution.
    Actually.. TelephoneBOD is auto-generated on creation of web service proxy from web service.
    I don't think.. updating those Java files directly is a best practice. Because they will be changing if there is any change in web service schema..
    You think there is any other way to do so?
    Thanks
    Thoom

  • Creating Graph based on runtime conditions

    Hi,
    Right now i am able to create Graphs based on Views. But my requirement is that, if i click on certain component, i should be able to crate another graph at runtime which will display information based on the Clicked Component of original graph.
    Any help will be appreciated.
    Thanks

    Hi,
    I think the options are
    - create a second graph and hide it at runtime
    - create the graph on the fly in a managed bean, wich is quite a bit of code to write, that is justified if the "generated" graph is different (e.g. different model data) for each master selection.
    The first approach should be doable by detecting the selected information on the master graph and the query the detail iterator accordingly + displaying it.
    The second approach is a deep dive into the graph model APIs because you will have to code this all manually. Note that we don't have documentation for this approach yet
    Frank

  • Is it possible to create graph with in the table / Pivote table.

    Is it possible to create graph with in the table / Pivote table.
    Emp# Emp Name % Bonus Pay Amt
    111 AAA $28276
    222 BBB $78878
    In the place of Bonus I have to display Bar (Chart) instead of number.
    Is it possible in OBIEE? I know we can display chart and table next by next but my user want display just like above.
    Please help me on this issue
    Thank you very much for your time

    hi,
    it is better for 2 different questions,make 2 differents threads...
    You used the 2ond solution(google???),put in the dashboard...html enabled...and check your pdf again.
    Moreover,printing pdf with answer is discouraged...always prefer Xml Publisher.
    Last,there are 2 fst files which configure the *.pdf files , check them,
    http://obiee101.blogspot.com/2008/09/obiee-pdf-controls-fst-files.html
    hope i helped....
    http://greekoraclebi.blogspot.com/
    ///////////////////////////////////////

  • Excel & ActiveX: Insert arbitrary columns from 2D array and create graph problems

    Hi there,
    I want to insert data from either a 1D or 2D array from LabView into Excel and create graphs.
    I used the information from the following example:
    http://www.ni.com/example/28934/en/
    and was able to create a new Excel file (I'm using Excel 2010), writing data from an 1D array to a column in excel by creating a while loop and using the first element of the array to write it to a specific cell. I use the counter of the loop to write to the next cell when the loop starts over and always delete the first value, which I write to the cell, from the array until it is empty.
    Now I also would like to write a 2D array - so the first column in Excel should be the first column from the array and so. Here I cannot use the loop counter directly as Excel only counts 1,2,... for the rows, but uses A,B,... to count columns. Also I do not know in advance how many columns my 2D array will contain, so creating a lookup table like (A means 1, B means 2,...) is not really an option (except there really is no other way). Is there a possibilty to convert numbers into letters or some way to 'explain' to the program that column 2 in the array means column B in Excel for example, or is there a way to insert new columns?
    I figured out how to add new Worksheets and as I also need to create a certain number of Worksheets and I know that on standard 3 sheets are present when creating the file, I use the 'add' methode to create every new worksheets before worksheet 3 - I could use the same methode to create new columns in Excel, but so far I didn't find a methode to do so. Or is there a way to enter the whole 2D array at once?
    Then I'd like to create a graph (in case of the 1D arrays a bar plot, when using 2D arrays a 3D plot) to view the data. I found this example:
    http://www.ni.com/newsletter/51339/en/
    -> as I do not have the toolkit I'd like to do it using ActiveX directly, so I tried to do things like shown under the headline 'DIY ActiveX/.NET'
    I tried to load the snippet to a new Excel file but got the error message 'microsoft.office.interop.excel.dll not found' and hence the code is not working. That confuses me a little as I would guess when this dll is not present I cannot access Excel from LabView at all, though my understanding of what I'm really doing so far is quiet limited. ;-)
    Also - as far as I understand from the snippet - when creating a new chart object I should be able the create methodes for it, however when I do a right click on the chart object of an ActiveX Worksheet symbol there are none listed.
    To explain my problems better I added a snippet showing my two problems: The inner of the two while loops shows how I import a 1D array. In the outer loop I seperate the columns. I know that currently this is not working as all data end up in column A of the Excel sheet - so I would need to convert the number of the outer counter to A, B,... or find a different solution.
    Moreover on the snippet I placed an ActiveX Worksheet Property with the Chart Object - as I can see the difference to the Chart Object in the example code from the last link above is the color. However I'm not sure what that means and how to change/ solve this.
    And just to make sure - I know this way the VI does not run as the Chart Object is placed completely wrong - I just did it, so it is included in the snippet.
    I'd be thankful for any suggestions,
    Thanks!
    Solved!
    Go to Solution.
    Attachments:
    ExcelAreaScan.png ‏60 KB

    Hello everyone and thanks for the answers.
    I only have the LabView Student Edition available here - is the toolkit included in it too. How can I check if it is installed/ available and in case it is installed - where can I find it?
    Today I had time to take a look at the example
    Create via ActiveX Labview a XY Scatter plot graph on an excel sheet
    It almost does what I want in terms of creating a graph. The only problem I could not fix, is that in this example a sheet is created where only the graph is present. i'd like to add the graph to a previously created worksheet. Today I tried get this working but it seems I stilll don't really understand what I'm doing, I'll post a snippet of my code as soon as I can access the PC with LabView on it again.
    I also took a look at the other example for inserting 2D attays - it seems to be what I need, I just had no time so far to test it, I'll post an update when I could test it.
    Thanks for the help so far!

  • How to create graphs on JSP page in JDeveloper 10.1.3

    Hi all,
    Is there an easy way to create graph objects with JDeveloper 10.1.3? I have taken a look to some tutorials, but it looks like they all use the "drag/drop graph from the data control palette" method.
    E.g. I got example 88 to work from http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html, but I have no idea how to get the BIGraphDef1.xml object and how to link it to a set of data.
    Are there some tutorials to show how graphs can be used in JDev 10.1.3?

    Frank,
    This is what I did to implement the graphic manual, but I think, I forgot something...
    1. create a new application with projects DataModel and UserInterface
    2. in the DataModel I created a similar master/detail view as the one of Steve, this is named:
    TestModuleDataControl
    \--DepView
    __\--Deptno
    __\--Dname
    __\--Loc
    __\--EmpView1
    ____\--Sal
    3. I created a new jspx page and added a graph tag:
    <f:verbatim>
    <graph:Graph data="${bindings.DepartmentsEmployeesInDepartmentGraph}"
    imageHeight="200" imageWidth="400"/>
    </f:verbatim>
    4. in the page definitions I added
    <graph id="DepartmentsEmployeesInDepartmentGraph"
    IterBinding="EmployeesInDepartmentIterator"
    ControlClass="oracle.dss.graph.Graph"
    SeriesLabel="Ename"
    GraphPropertiesFileName="userinterface.BIGrap1hDef1"
    SeriesType="SINGLE_SERIES">
    <AttrNames>
    <Item Value="Sal"/>
    </AttrNames>
    </graph>
    5. I added also the iterator:
    <iterator id="EmployeesInDepartmentIterator" Binds="EmpView1" RangeSize="10"
    DataControl="TestModuleDataControl"/>
    6. I copy/pasted the BIGraphDef1.xml from Steve's project into 'Application Sources'\userinterface.
    7. in the web.xml file in WEB-INF I added:
    <servlet>
    <servlet-name>GraphGeneratorServlet</servlet-name>
    <servlet-class>oracle.jbo.html.jsp.graph.GraphGeneratorServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>GraphGeneratorServlet</servlet-name>
    <url-pattern>/GraphGeneratorServlet</url-pattern>
    </servlet-mapping>
    8. when I run the page, I can't see the graph and there are also no errors. I think I mis a global setting somewhere...
    Is there anything I forgot to do?
    note: if I add a new jsp page into steve's application, I do can see the graph if I perform the steps mentioned above...
    I just found out that, If I create the graph on a page which is in the root directory, then it works. If I put it in a subdirectory, it doesn't:
    - create graph as mentioned above on a page: web content/myGraph.jspx --> works
    - create graph as mentioned above on a page: web content/app/myGraph.jspx --> doesn't work...
    Does somebody know where to put a setting/parameter to get the Graph visible in the subdirectory app?

  • Create Organization Data programatically

    I am using ALBPM 5.7 Studio and trying to create Organization data programatically - OU, Participant, Role etc.
    I am able to fetch data but not able to create OU.
    For the following code
    DirOrganizationalUnit dirOrgUnit;
    dirOrganizationalUnit = dirOrgUnit.create(session : Fuego.Fdi.DirectorySession.currentEngineSession, name : "MT", description : "Michigan Transport");
    I get the following exception
    A component failed while executing activity '/CreateOrgData#Default-1.0/CreateOU' (BP-method CreateOU) over instance '/CreateOrgData#Default-1.0/5/0'.
    Details:
    The method 'CIL_createOU' from class 'OrgData.CreateOrgData.Default_1_0.Instance' could not be successfully executed.
    Caused by: java.lang.NullPointerException
    fuego.lang.ComponentExecutionException: The method 'CIL_createOU' from class 'OrgData.CreateOrgData.Default_1_0.Instance' could not be successfully executed.
         at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:498)
         at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:251)
         at fuego.fengine.FEEngineExecutionContext.invokeMethodAsCil(FEEngineExecutionContext.java:214)
         at fuego.server.execution.EngineExecutionContext.runCil(EngineExecutionContext.java:1063)
         at fuego.server.execution.TaskExecution.invoke(TaskExecution.java:391)
         at fuego.server.execution.TaskExecution.executeCIL(TaskExecution.java:483)
         at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:657)
         at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:618)
         at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:152)
         at fuego.server.execution.activities.XAutomatic.execute(XAutomatic.java:54)
         at fuego.metadata.Activity.execute(Activity.java:1022)
         at fuego.server.execution.ToDoItemAutomatic.execute(ToDoItemAutomatic.java:35)
         at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:291)
         at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:462)
         at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:540)
         at fuego.transaction.TransactionAction.start(TransactionAction.java:213)
         at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:117)
         at fuego.server.execution.DefaultEngineExecution.executeAutomaticWork(DefaultEngineExecution.java:57)
         at fuego.server.execution.EngineExecution.executeAutomaticWork(EngineExecution.java:42)
         at fuego.server.execution.ToDoItem.executeAutomaticWork(ToDoItem.java:264)
         at fuego.server.execution.ToDoItem.run(ToDoItem.java:530)
         at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:754)
         at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:734)
         at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:140)
         at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:132)
         at fuego.fengine.ToDoQueueThread$PrincipalWrapper.processBatch(ToDoQueueThread.java:432)
         at fuego.component.ExecutionThread.work(ExecutionThread.java:818)
         at fuego.component.ExecutionThread.run(ExecutionThread.java:397)
    Caused by: java.lang.NullPointerException
         at OrgData.CreateOrgData.Default_1_0.Instance.CIL_createOU(Instance.java:229)
         at OrgData.CreateOrgData.Default_1_0.Instance.CIL_createOU(Instance.java:243)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:491)
         ... 27 more

    Dont insert values directly in dB as you have to update multiple dependent tables in case you start doing that way. Check this thread for available api to create an organization
    Creating Organizations using API, OIM 11G
    Edited by: Durgaprasad on Jan 28, 2013 1:20 AM

  • Create a Stack programatically

    I'd like to be able to create a stack programatically, but I'm having some problems with that.  I have found these 2 possibilities, but both have problems I have not been able to work around:
    1) Use catalog:addPhoto to create the stack
          - Problem: The photos i want to use in the stack are both already loaded in the catalog.  Running addPhoto on a photo that is already in the catalog throws an error, and I can't find anyway to remove the photo from the catalog without deleting it.
    2) Modify all stack related RawMetadata
         - Problem: stack related metadata keys are not valid in the SetRawMetadata function
    If anyone has any other ideas, or solutions to either of the problems about it would be much appreciated.
    Thanks
    Brian

    Matt,
    I'm the type of guy that voids the warrenty on everything i buy .  I'm also completely an amature so even if I lost my catalog, it would just be some frustration and swearing on my end.  That being said, I do go backup crazy with daily backups through Acronis True Image, and weekly backups through lightroom.  Oh and did I mention these backups are copied across 3 different computers?
    Rob,
    I did write another plugin that used sql to query the catalog so I did know that you can't use it while Lightroom has the catalog open.  In my previous plugin i got around the issue by having it use the latest backup catalog to do the query on (it's only SELECT statements). In this case I think I'll turn it into a launcher so it runs before every time you start lightroom.  I'm really working on this just for me, if I end up with something that at least half works and others are interested I would certainly share with the community
    Thanks!

  • Reports9i Builder does not create Graph for Web Source

    Hi
    I installed the new 9iDS and I'm trying to create a jsp page with a graph. If I create a graph in the paper layout it will run in paper layout only. After checking the web source code there is no <rw:graph ... > tag. If I try to insert the graph in the web source view I get REP-0069: Internal error REP-0: oracle/reports/RWExxception: 1.0. Is there a way to create graph for the web layout?.

    Hi Nestor,
    This should work fine. I assume you created the report using the wizard. Did you by any chance choose to create a paper layout only?
    Try the wizard option 'Create Web Layout only' or 'Create both Web and Paper Layout'.
    Regards, Christian.

  • Create graph based on dynamic table data

    Hi experts ;
    i have JDeve Version 11.1.2.2.0 , i'm create dynamic table based on dynamic SQL query this query return by function in database by based on passing parameter .
    My question :-
    1- How create graph based on dynamic table and contral it at run time ?
    Thanks & Best Regards

    Hi Mostafa,
    You can retrieve the data from your sql query in a backing bean and pass it on to Graph using the setTabularData method.
    Here is the javadoc for the setTabulardata method:
    http://docs.oracle.com/cd/E16162_01/apirefs.1112/e17492/oracle/dss/dataView/CommonDataview.html#setTabularData%28java.util.List%29
    Hope this helps
    Katia

Maybe you are looking for

  • Connecting to a wlc across subnets

    I have recently purchased a 4402 wireless controller to manage our access points. When I put the APs on the same subnet as the ap-manager subnet I get the ap to connect. When I put the ap on the wireless subnet, it will not connect. Does not even reg

  • Specifying multiple JSP's in Execute Queue

    Hi Bea's documentation says that you can specify the execute queue for a perticular JSP as follows: <servlet> <servlet-name>MainServlet</servlet-name> <jsp-file>/myapplication/critical.jsp</jsp-file> <init-param> <param-name>wl-dispatch-policy</param

  • Custom Support Program metadata kb numbers differs

    Hello, I am using SCCM 2007 R2. We are in the middle of migrating XP to W7 so our company stepped into the Customer Support Program to receive XP updates.From the MS connect site I can download cab files and the executables. I downloaded the wsusimpo

  • First Role in TLN

    I have a role in TLN and an iView that gets initialised on click of the role. In the iView, i have a navigation to an external website on load of iview. This means when i click on the role, i get directed to the external website. If i make this as th

  • Ultiboard file takes up to 5 minutes to open or save a file. how can I solve that?

    Hi, recently I modified a previous design created using ultiboard 10.0. Since that day, every time I save or load the file it takes 5 minutes or more to finish the required action. It's really annoying to wait that long in the middle of work for the