Programmatically create a bar graph (ADF DVT) at run time...

Can someone show me how to programmatically create a bar graph (ADF DVT) at run time..
Thanks in advance.
Minh

Hi Briston,
You can make the column selected by setting "selected" property of column to true
Sireesha

Similar Messages

  • How to create drilldown bar graph using clicklistener

    Hi,
    I have a view object that sums some data and tags each sum accordingly - eg sum salary grouped by department name.
    I display this using a horizontal bar graph.
    I want to now be able to click on a bar and then have the details displayed in a table. I am led to believe from chapter 24 of the manual it is possible to do using no java coding (ie not having to create a bean etc).
    You can use the row selection listener of a graph (which serves as a master view) to enable clicks on a bar, slice, or other graph data element to update the data in another ADF component (which serves as a detail view). For example, a click on a bar that represents sales for a given product in a graph might cause the display of the detailed sales data related to the product in a pivot table.
    The following requirements must be met to achieve this master-detail processing declaratively:
    1. You must use the same tree data control to provide data for both views as follows:
    1. Bind the graph as a row set to one level in the data control.
    HOW ?
    2. Bind the other ADF view (such as a table or pivot table) to a lower level in the tree data control.
    I don't have a nested iterator - is it saying to use a master-detail scenario like dept/emp ?
    2.
    Set a value for the clickListener attribute of the graph tag in the Behavior page of the Property Inspector and use the processClick method that is already part of the graph binding.
    For example, if the value attribute of the graph tag is value="#{bindings.myGraph.graphModel}", then the clickListener attribute should be clickListener="#{bindings.myGraph.graphModel.processClick}".
    3. Ensure that the partialTriggers attribute on the parent tag for the detail component is set correctly. It should be set to the ID of the graph component.
    You do not have to write Java code for handling clicks on data elements in the graph. The processClick event on the graph binding recognizes click events on data component in a graph and performs the necessary processing.
    Are they suggesting all you need to do is ensure you have proper master-detail tables set up and it will automatically work ?
    cheers
    Edited by: Dom Klein on May 27, 2009 8:06 PM

    Hi Frank,
    thanks for replying. I opened a TAR about this as I cannot produce a drilldown table. I created a VO with my summary - eg
    select decode(manager_id, 100, 'fred',
    123, 'bill', 120, 'kate', 121, 'julia', 147, 'ken', 108, 'james', 148, 'liz',
    149, 'phil', 205, 'jack', 102, 'eric', 'dominic') manager_name, sum(salary) as salaries
    from employees
    GROUP BY
    decode(manager_id, 100, 'fred',
    123, 'bill', 120, 'kate', 121, 'julia', 147, 'ken', 108, 'james', 148, 'liz',
    149, 'phil', 205, 'jack', 102, 'eric', 'dominic')
    Then I created a detail view object (from HR.employees) and added a calculated column :
    SELECT Employees.EMPLOYEE_ID,
    Employees.FIRST_NAME,
    Employees.LAST_NAME,
    Employees.EMAIL,
    Employees.PHONE_NUMBER,
    Employees.HIRE_DATE,
    Employees.JOB_ID,
    Employees.SALARY,
    Employees.COMMISSION_PCT,
    Employees.MANAGER_ID,
    Employees.DEPARTMENT_ID,
    decode(manager_id, 100, 'fred',
    123, 'bill', 120, 'kate', 121, 'julia', 147, 'ken', 108, 'james', 148, 'liz',
    149, 'phil', 205, 'jack', 102, 'eric', 'dominic') AS manager_name
    FROM EMPLOYEES Employees
    I create a new viewlink which links on manager_name. When I run the bc4j appmodule I can see the correct master-detail relationship. IF I drag a master-detail table onto the page it works fine.
    Now if I create a graph using the master and then create a table using the detail I can't get it to use this relationship even after setting the processClick() and the id for the graph set on the partial trigger of the table. Any ideas ?
    cheers

  • Is there any way I can create a bar graph in TextEdit?

    I need help completing a science lab due tomorrow. I have to make a bar graph, and I can't figure out how to make one. Any suggestions??

    No, however Numbers easily can.

  • How to focus a specified column in ADF Table at run time?

    I drag and drop an ADF table.It contains *10 column*..I bind the column using ArrayList..First 3 column is set frozen =True..At the time of runtime,a Horizontal scroll is appeared..*May be for certain conditions , only 8th column contains values at run time.So i want to focus that column Only*.Because it is very easy for an user to see the value..If not,user has to scroll the bar to check. How can  i focus a specified column?

    Hi Briston,
    You can make the column selected by setting "selected" property of column to true
    Sireesha

  • Copy picture of graph to clipboard through run-time shortcut menu

    Hi,
    I have following problem. I would like to copy picture of graph to clipboard through graph “run-time shortcut menu”. It’s easy when I want copy exactly what I see. There is an Item Tag: APP_SC_COPY_DATA. That works nice. Try an example1.vi. (Run then right click on the graph...)
    But problem is when I want to change the graph appearance before copying (only change the colour of the graph to be more printer-friendly). I have created a subVi with copy of the graph with changed colour. But how to simulate for the graph inside the subVi same runtime shortcut event? How to call APP_SC_COPY_DATA of subVi graph from outside Vi?
    I hope I’ve explain it clear.
    If you have better method for clipboard copying tell me.
    ThanksMessage Edited by jochynator on 08-03-2006 11:48 AM
    jochynator
    LV 8.0.1, WinXP Pro
    Attachments:
    examples.zip ‏37 KB

    You should use GetImage Not ExportImage.
    I modified you VI.
    George Zou
    http://gtoolbox.yeah.net
    George Zou
    http://webspace.webring.com/people/og/gtoolbox
    Attachments:
    export.vi ‏14 KB

  • While creating a student through piqstc getting abap run time error

    Hi Experts,
    I am new to SLCM,
    By following Micheal Fan's Basic configuration document,
    I have done the basic configuration required  for creating a student & maintaining  the student file,
    But while trying to create a student through PIQST00/PIQSTC getting abap run time error,
    Attaching the txt file for complete view of abap error.
    Please guide how to resolve this error.
    Regards,
    Prashanti Swain

    Hi Rob,
    Thanks a ton, for your quick reply,
    But I have not understood the reason of the issue.
    As i said I followed Micheal Fan's Document for configuration,
    in that document there is no configuration  step is defined for Vendor master data.
    Could you please explain it in a more detail way.
    Regards,
    Prashanti Swain

  • When creating an application installer in LV, what run-time engine or driver must be installed to install the VISA interactive control?

    I've created an application installer using LabVIEW's application builder and use it to install NI MAX.  However, after running the installer, the VISA interactive control is disabled in NI MAX.
    The installer installs the following NI components:  NI LabVIEW Run-Time 2014 SP-1(64-bit), NI LabWindows/CVI Shared Run-Time Engine 2013 SP2, NI Measurement & Automation Explorer 14.5, NI-488.2 Application Development Support (includes run-time), NI-VISA Configuration Support 14.0.1, NI-VISA Runtime 14.0.1, NI-VISA Server 14.0, NI Systems Configuration Runtime 14.5.0, vision run-time, dc-power run-time.
    If I download and run the 488.2 installer, the VISA interactive control is enabled in NI MAX.  But, the installer created with the application builder does not seem to install the necessary components.
    What needs to be added to the installer to enable  the VISA interactive control (VISAIC)?
    Thanks.
    Solved!
    Go to Solution.

    From Pedro Munoz, Applications Engineer, National Instruments
    Sorry for the confusion with the forum post that Jon sent you. I did some research on our internal database and I found out the component will not be installed by any of the components added from the additional installers section on the configuration of the installer. As you have already found out you need to install the full installer in order to enable this feature.
    I know that this might be an inconvenient for you because you wanted to have one installer to run. On this case may I suggest using the NI Batch Installer Builder.
    The NI Batch Installer Builder allows building installers that contain National Instruments software from several products. That way you can create an installer for you application in LabVIEW (and not include the drivers in the additional installer section), then use NI Batch Installer Builder to include the installer for your application and the full version of the drivers that you mentioned.
    Here is the download link:
    http://www.ni.com/download/ni-batch-installer-builder-14.5/5193/en/
    And in here you can find instructions on how to get started with it:
    http://zone.ni.com/reference/en-XX/help/374206A-01/
    Let me know if you have any question.
    Regards
    Pedro Munoz
    Applications Engineer
    National Instruments
    http://www.ni.com/support

  • How to create sub-directory by PL/SQL in run-time?

    Hello,
    I have directory defined in Oracle DB and I need to create a sub-directory by run-time PL/SQL code and move my file into the sub-directory.
    The DB version is 10.2.0.3.0.
    How can i do it without creating a new directory in DB each time i need to create a sub-directory?
    Thanks!

    Or, as directory objects are replacable you can just change them using dynamic SQL...
    e.g.
    execute immediate 'create or replace directory my_home as ''/home''';
    execute immediate 'create or replace directory my_home as ''/home/newfiles''';
    of course this isn't going to work if the directly object is going to be used by multiple users at the same time, but if it's for a dedicated process then it would.
    (it also relies on the operating system directories having appropriate read/write permissions, but that's outside the ability of Oracle to control)
    Personally though, I'd avoid having things moving about dynamically.
    The design of my process would specify where files are going to be located and the correct number of directory objects defined and created up-front.
    Any 'incoming' files would have to be located in one of those known locations, whether that's under the control of the 'users' supplying the files, or some other process (o/s script maybe?) that receives the files and moves them to the known location.

  • Creating a bar graph...

    ...two questions, one presumably simple, and the other a bit tricky:
    1. The graph is to show 64 points on the X axis. How do I specify the "fatness" of my bars?
    2. The boss says he wants every other value colored differently: red-blue-red-blue-red-blue...is there a way to do this?
    What I'm actually plotting is 32 complex numbers. He wants the real component in one color, and the imaginary in another. So, 32 points of 2 values each is my 64 points total. 
    Thanks for any assistance.
    Solved!
    Go to Solution.

    With reference to the bar thickness, it appears that the graph is a "smart control"  : it adapts bar width to actual data plotted.
    Specifically, it appears that thickness is related to number-of-bars / axis-width ratio.
    See this picture: the same CVI example with 100 and 10 data points plotted.
    (Note: with thick bars you may have to struggle a bit to have the correct X scale shown. In the 10-samples example above, I enabled label strings for the graph X axis, used a scale of -0.5 to 9.5 and created the appropriate labels for integer values)
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • How to create menu bar in ADF

    Hi,
    I'm trying to get a drop down menu in my web app using ADF Faces.
    Currently I'm using an af:menuBar tab with a menu model like this:
    - File
    - New ...
    - Open...
    -View
    - Toolbars ...
    On clicking file new open options should come .
    It only displays the top level nodes (i.e. the File and View)
    Is it possible to make a drop down menu using ADF Faces?
    Using adf 11.1.1.5.0
    Thanks.

    You mena something like this
                <af:menuBar id="mb1">
                  <af:menu text="menu 1" id="m2">
                    <af:commandMenuItem text="commandMenuItem 1" id="cmi1"/>
                    <af:commandMenuItem text="commandMenuItem 2" id="cmi2"/>
                    <af:menu text="menu 3" id="m4">
                      <af:commandMenuItem text="commandMenuItem 3" id="cmi3"/>
                      <af:commandMenuItem text="commandMenuItem 4" id="cmi4"/>
                    </af:menu>
                  </af:menu>
                  <af:menu text="menu 2" id="m3">
                    <af:commandMenuItem text="commandMenuItem 5" id="cmi5"/>
                  </af:menu>
                </af:menuBar>Copy this code to your page and run it to see the menu...
    Timo

  • Bind a new view object to same adf table at run time

    Hello,
    I have an adf table, that changes based on the type of data the user selects. For example, lets say we have a page that consists of type drop down box at the top and an ADF table at the bottom, which lists data based on the type that is selected from the drop down box. For example, lets say, I have the types (Cars, Planes, and Trains).
    Let's further say we have a view object for cars, one for Planes and one for Trains. Each VO has its own specific set of attributes associated with them, which in should be reflected in the adf table that's on the screen.
    So for example, I select Train..
    My table should contain the columns, num cabs, train type, year built
    For plane, the columns might be Num engines, plane manufacturer, size(ie. 747, 727, etc), year built
    Some type of thing with Cars , cylinders, color, model, year, etc.
    Is there a way to tell my adf table to use a specific view object(ie. Plane, train, or car) at runtime?

    You can try implementing this with dynamic components, e.g. dynamic table
    >
    ADF Dynamic and ADF Read-Only Dynamic Table: Allows you to create a
    table when the attributes returned and displayed are determined dynamically
    at runtime. This component is helpful when the attributes for the
    corresponding object are not known until runtime, or you do not wish to
    hardcode the column names in the JSF page. For more information about
    working with dynamic components, see Section 26.7, "Using a Dynamic Form
    to Determine Data to Display at Runtime."
    >
    Or you use dynamic regions and swithc the region containing the table depending on the selectOneChice. Check http://docs.oracle.com/cd/E24382_01/web.1112/e16182/taskflows_regions.htm and https://blogs.oracle.com/shay/entry/adf_dynamic_regions_switching_just
    Timo

  • How to create a single large bitmap data at run time?

    Hi All,
    Please help me in overcoming the issue that is mentioned below.
    Requirement:   Create single very large bitmap data which contain some 30 PNG images loaded and for each image it should have some text.  Images and text are loaded dynamically (AS2 code. Images are stored in a remote server). The bitmap data display should show 8 images at a time and corresponding text. We can see rest content by scrolling (kinetic scroll is implemented). How can I go for it?
    Some questions:
    · Is there any limit for size of bitmap data ( As per link there is restriction on the height of the bitmap we can create in AS2 (max value is 2880 which is not enough for some 30 element list http://help.adobe.com/en_US/FlashLite/2.0_FlashLiteAPIReference2/WS84235ED5-9394-4a52-A098 -EED216C18A66.html ) How to overcome this limitation?
    · If we create individual bitmap data for 30 individual PNG files, we find some jerks in scroll. How can we have smooth scrolling?
    Thanks and Regards,
    Manjunath

    Thank you very much for the reply.
    The number of bitmaps are not 30 always. It can vary in real time and since all PNG files are stored in a remote server which are also vary during runtime; so we can not predefine the number of child movieclips. It could be 10 at some duration and may be 20 at some other time.
    Any help?

  • How to create Dynamic prompts for a field at run time

    HI all
    I have a table which has 2 columns name attribute1 and attribute1_meaning.
    Attribute1_meaning is the the meaning of attribute 1.
    ex if attribuite1 is 500.. attribute1_meaning tells us if its MHz. RAM or whatever.
    So IN my form I want to display the prompt of attribute1 as the value attribute1_meaning
    Is there a way to do this ?
    thanks

    It also depends on your form layout. Francois' solution works if you only display one record. If you display multiple records this won't work, since an item can only have one prompt at a time. There is no set_item_instance_property for the prompt.
    In that case you can create two fields attribute1 and attribute1_meaning. You can set the visual attribute of field attribute1_meaning to look like a normal prompt.

  • I want to Create an Single Installer (My Application + DSC Run Time License )

    Hi,
       I want to create an single installer by including my Application and DSC RTL, So by using this i will give an single installer to my clients where they dont have any Lab VIEW components. Even though i seen some similar post, but its doesnt give me a proper solution for this. Please do the needfull.
     With Regards,
    Vijayakumar.V

    Hi Vijay,
    I think, there is no seperate RTL for DSC (for that matter, for any of other NI addons/toolkits) to be included in the installer.
    You need to select the appropriate installer from the Additional Installers category while creating the installer.
    Please see the attached pic.
    - Partha
    LabVIEW - Wires that catch bugs!
    Attachments:
    NI DSC 8.6 Deployment.PNG ‏43 KB

  • How to create and Pass DBLINK name at the run time

    Hi,
    Please help me out ....
    ACCEPT DB_USER PROMPT 'Enter the DB user name :'
    like this i will get the DB_USER name and i want to create one dblink with that userbame at the runtime
    and in all my .sql file i have to append that user name and dblink .. how to do this ....
    for example ,
    1.sql file contains a query like this
    select *
    from <user>.emp@<dblink>
    where ename= 'KING'
    ACCEPT DB_USER PROMPT 'Enter the DB user name :'
    user enter : SCOTT
    and the dblink should create a name like SCOTT_DBLINK
    and it should make the select clause in the .sql file as
    SELECT *
    FROM SCOTT.EMP@SCOTT_DBLINK
    WHERE ename = 'KING';

    Hi,
    Do you want to actually CREATE DATABASE LINK on the fly? - Don't there are all sorts of implications there.
    If not, go ahead and read about [SQL*Plus Substitution Variables|http://www.oracle.com/technology/support/tech/sql_plus/htdocs/sub_var.html]
    Regards
    Peter

Maybe you are looking for

  • How to send two request in the same connection with HttpURLConnection?

    As the title, I want to send two or more requests in the same connection with HttpsURLConnection..I wish all requests are in the same session. My code is as following: package test1; //import javax.net.ssl.*; import java.net.*; import java.io.*; publ

  • Linux RD8 + Oracle9iR2 Can not startup

    OS: RedHat Linux 8 (Kernel 2.4.27) App: Oracle 9.2.0.1.0 Hardware: 512RAM, Intel P4 1.5G HardDisk: /boot = 1G, /=10G, SWAP=2G Oracle_Home: /u01/app/oracle/product/9.2.0.1.0 Oracle_SID=ORTD Default Database = "ORTD" Kernel Tune Up: sysctrl.conf kernel

  • Problem with the Pulse With Measurement with FP-CTR-502

    I use a sensor that outputs a PWM-signal (10 Hz; "normal": Duty Cycle 20% (20 ms high, 80 ms low); high = 6 V, low = 0.5 V). The sensor is connected to the Gate Input Channel of the FP-CTR-502 with an external supply voltage (Vsup)  of 5 V. I tried t

  • Brochure in adobe forms

    Hi all, I am in the need of creating a brochure with a 11 x 17 page, so when I fold it will give me fourth 8 x 11 pages. My question is if is possible to do this in adobe forms. Thanks in advance, Gregorio.

  • Will there be an update from 9-10?

    I had to buy the app version of Logic 9 a few weeks ago because I couldn't get my boxed bersion of 9 to load on my new Macbook for some reason and had project deadlines. Will there be any upgrade offered??  I'm sure I'm not alone when I say had there