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

Similar Messages

  • 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

  • How to create graph based on sql query

    Hi all,
    I am using jdev 10.1.3.3
    My requirement is need to ctreate graph(pie chart) based on sql query ex: select count(empno) from emp group by deptno;
    and also i need to give link on graph. If i click 10 deptno part in pie chart only 10 deptno employee list need to display.
    Please help meeeeeee
    Thanks
    NR

    Hi,
    just non click able graph in ADF 10g using BI Graph: http://www.freewebalbum.com/blogs/faces/bjanko/blogs.jsp?blog=bjanko20070629162305
    regards,
    Branislav

  • How to create a column based on a condition ?

    Hi all,
    I am trying to create a stored procedure that will return ID,Name and a column of type bit called  called checked based on a condition 
    please review my code and tell me what is wrong with it 
    ALTER PROCEDURE [dbo].[SelectStoresNames]
    AS
    BEGIN
    WITH locations_CTE ( ID,  Name, Checked)
    AS
    select loc.ID,loc.Name,
    (case when loc. ID in (select distinct a.StoreId
    from mPromoteStores a
    inner join mPromote b
    on a.PromoteId=b.PromoteId
    where b.promoId=144120) then 1 else 0 end as [Checked])
    FROM [dbo].[mLocations] loc where SchedulePullEnabled=1 order by  Name
    Select *
    from locations_CTE
    END

    Please post DDL, so that people do not have to guess what the keys, constraints, Declarative Referential Integrity, data types, etc. in your schema are. Learn how to follow ISO-11179 data element naming conventions and formatting rules. You have no idea!
    Temporal data should use ISO-8601 formats. Code should be in Standard SQL as much as possible and not local dialect. 
    This is minimal polite behavior on SQL forums. 
    >> I am trying to create a stored procedure that will return store_id, store_name and a column of type bit called “checked” based on a condition <<
    I fixed the vague, useless, generic data elements, made wild guesses on the DDL you did not post and got rid of the assembly language bit flags (https://www.simple-talk.com/sql/t-sql-programming/bit-of-a-problem/)
    1. IN (SELECT DISTINCT ..) is redundant
    2. aliases in alphabetic order are no help for maintaining code
    3. What is that “m” prefix? Better not be metadata...
    4. We also do not use “-cte” postfixes; tell us what the table is and not how you got it. This is another version of the “vw-” or “Volkswagen” design flaw for views.
    5. “promote” is a verb, so how can it have an identifier? Entities have identifiers. A set of  “Promotions” could have a “promo_id”, but this might be a typo ..
    6. Is “schedule_pull_enabled” another assembly language flag? I have the horrible feeling your unseen schema is not in 1NF ...
    Since you did not post DDL here is as far as I can get ..
    CREATE PROCEDURE Select_Stores_Names
    AS
    SELECT PS.store_id, PS.store_name
      FROM Promote_Stores AS PS,
                 Promotes AS P
    WHERE PS.promote_id = P.promote_id 
      AND P.promo_id = 144120  -- promo vs promote? 
      AND ???; 
    Want to follow the forum rules and try again? 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • Creating a graph based on a quadratic equation.

    Hello, I just got my first Mac and iWork 09.
    I'm trying to create a graph in Numbers 09 based on a quadratic equation however I cannot find any way of doing this.
    I just need to some simple graphs based on equations such as y = x^2 + 3x + 5
    How do I make this into a graph in Numbers 09?
    Oh and another question... If I have a graph with points based on X and Y data, can I turn the trend line into an equation?
    Thanks
    Message was edited by: conielo

    To create a scatter chart, you need two columns (or rows) of data, one being X and the other being Y. So, in Column B put the X values you would like plotted. In Column C put your equation to calculate Y for each of those points.
    B2 =1
    B3 =2
    etc
    C2 =B2^23*B25
    then fill down to fill in the rest of the rows in the column.
    I'd recommend a look at the Numbers user's manual if the above doesn't make sense.
    If you have plotted some X-Y data and want the trendline equation, you can turn on a trendline and have it display the equation. You can't use the coefficients from the equation unless you read them off the chart and type them into your table manually. However, you can calculate the trendline yourself in your table. That was covered in some depth in a thread from a little while back. Here's the link to that thread:
    http://discussions.apple.com/thread.jspa?messageID=9015541&#9015541

  • Creating a simple ALV report based on join condition

    Dear All
    SAP Version: ECC6 EHP7
    I wan to create simple ALV report based on join condition. can anyone provide me the complete steps to create this report.
    Regards,

    Hi Syed,
    Please check the link,
    ALV report - Joining 2 tables
    Regards,
    Prakash.

  • Create ADF Table at runtime

    Hi,
    I am trying to create ADF table at run time. Initially I tried to include all the tables at design time. Then I turned the setVisible property to false. Then , based on the condition, I turned it to true at runTime, so that to give the effect of the table getting created at run time.
    But now, I would like to know , is there any option to extract the table component from the ViewObject or from the iterator, at run time.
    say,
    I have my ViewObject like this.
    DCIteratorBinding dcIter=(DCIteratorBinding)bindings.getControlBinding("Table1View1Iterator");
    ViewObject vo=dcIter.getViewObject();
    Now, I have a panel, 'pb1'. I am able to add input boxes at run time. Now I want to add the table that corresponds to the above View also at run time.
    Could someone pls give me the suggestion..
    Thanks,
    Sabarisri. N

    well, in that case you can create table dynamically from managed bean. I am giving you a sample code which add row dynamically to a table on click of "Add" button.
    jspx code:
    <af:document id="d1" title="XXXX">
          <af:form id="f1">
            <af:commandButton text="Add" id="cb1" action="#{MyBean.add}"/>
            <af:table varStatus="rowStat" summary="table"
                      value="#{MyBean.collectionModel}"
                      rows="#{MyBean.collectionModel.rowCount}"
                      rowSelection="none" contentDelivery="immediate" var="row"
                      rendered="true" id="t1">
              <af:forEach items="#{MyBean.columnNames}"
                          var="name">
                <af:column sortable="true" sortProperty="#{name}"
                           rowHeader="unstyled" headerText="#{name}"
                           inlineStyle="width:100px;" id="c1">
                  <af:activeOutputText value="#{row[name]}" id="aot1"/>
                </af:column>
              </af:forEach>
            </af:table>
          </af:form>
        </af:document>managed bean:
    import java.util.ArrayList;
    import java.util.HashMap;
    import java.util.List;
    import java.util.Map;
    import org.apache.myfaces.trinidad.model.CollectionModel;
    import org.apache.myfaces.trinidad.model.SortableModel;
    public class MyBean {
        private SortableModel model;
        private List<String> columnNames;
        public MyBean() {
            System.out.println("Cntl in MyBean constructor :::");
            columnNames = new ArrayList<String>();
            columnNames.add("Col-1");
            columnNames.add("Col-2");
    //        generateColumnModel();
        public void generateColumnModel() {
            this.model = new SortableModel(createRows(columnNames));
        private static List<Map> createRows(List<String> columnNames) {
            int i = 0;
            List<Map> mapListforRows = new ArrayList<Map>();
            //for (String name : columnNames) {
                Map newRow = new HashMap();
                mapListforRows.add(newRow);
                for (String col : columnNames) {
                    newRow.put(col, "data");
            return mapListforRows;
        public String add() {
            System.out.println("Cntl in add method :::");
    //        columnNames = new ArrayList<String>();
    //        columnNames.add("Col-1");
    //        columnNames.add("Col-2");
            generateColumnModel();
            return null;
        public CollectionModel getCollectionModel() {
            return model;
        public void setColumnNames(List<String> columnNames) {
            this.columnNames = columnNames;
        public List<String> getColumnNames() {
            return columnNames;
    }I hope this will help you to solve your use case
    ~Abhijit

  • Displaying record based on the condition in Crystal report

    Hi All,
    I want to display certain records in crystal based on some condition.
    For example,
    If I am having 5 student records like,
    Name  Mark1 Mark2 Mark3 Total
    aaa      40       50       60      150
    abc      30       60       40       130
    tcr        25      25        25       75
    Now in table i have only 4 fields (STUNAME, MARK1, MARK2, MARK3).
    I have to calculate the total at runtime and if total is greater than 150, then actual record should display in report.
    For example, I can use formula to calculate total but I can calculate total only after each record prints. But i want to calculate total internally only it should display in report if condition satisfies. I dont want to keep one more field for total in crystal report.
    Please help me on this.

    If the filter is not "pushed" down to the database, then Crystal will pull all of the data into memory and then filter it there.  This is not a big deal if you only have a couple of records, but it can significantly slow down a report that is pulling in more than a few records.
    An alternative, if your report is just linking tables in the Database Expert, would be to create a SQL Expression that adds the three fields together.  Using this in the Select Expert WILL push the condition down to the database.
    If you're using a command instead of linking table, they you would add this to the Where clause of the comment.  If you're using a stored proc instead of tables or a command, you would want to do this filter in the code for the stored proc.
    -Dell
    Message was edited by: Dell Stinnett-Christy

  • How to dynamically add/remove a button from the ribbon based on some condition? (Ribbon XML)

    Hi,
    I have a ribbon (done using ribbon XML) with menu options. I need to remove few buttons from the menu dynamically based on some condition. Also, I want to change the label of another button. How to achieve this programmatically? (C#)
    Thanks in advance.
    Thanks Prasad

    Hello Prasad,
    Use callbacks for populating Ribbon controls such as menu, dropDown, gallery and etc. Then you can use the
    Invalidate or
    InvalidateControl methods of the
    IRibbonUI interface to get your callbacks invoked when required. Thus, you will be able to delete the required item(s).
    You will find the following articles in MSDN helpful:
    Chapter 11: Creating Dynamic Ribbon Customizations (1 of 2)
    Chapter 11: Creating Dynamic Ribbon Customizations (2 of 2)
    To change the label of your controls at runtime you need to use the getLabel callback and call the Invalidate or InvalidateControl methods of the IRibbonUI interface. The following series of articles describe the Fluent UI in depth:
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)

  • VT02N - do PGI and Invoice for certain deliveries either based on certain conditions

    Hi Friends ,
    We are using VT04 for creating shipments . While shipment completion stage in VT02N   an activity profile has been maintained  which does both the Goods issue and Invoice.
    We have a business requirement , PGI and Invoice should be created only for specific set of deliveries based on certain conditions.
    Is there any standard way to do this or by using user exits.
    Please guide.
    Thanks,
    Nileshsa.

    what about adding a check in userexit RV60AFZZ, when the condition is not met during invoice creation, error out and disable the creation of the invoice document?

  • Dropdown editable in a table based on a condition

    Hi,
    I would like to know how to solve these problems.
    1. I have a cell (of the type dropdown by key) in a table, which is editable or not, depending on a condition ? Is this is possible? Please let me know if there is a sample code
    2. So basically I have a  table that has 2 entries in it, user details and one of the fields in FLAG showing the values Yand N for the user. I want the table in the webdynpro application to show the 2 user entries and then in the Flag column have a DROPDOWNBYKEY that DEFAULTS to showing what flag the user has, but also allows the user to CHANGE the entry.
    Thanks in advance
    I appreciate for the help.

    is possible
    In your Context node which is binded to the table as DataSource, add an attribute WDY_BOOLEAN type
    In layout bind the newly created attribute to the dropdown UI element Enable property
    while filling your context node, fill the attribute with abap_true and abap_false based on your condition
    Abhi

  • How to change the label of a link based on a condition in a report.

    Hi all,
    I have a report, in which i created a link.
    i want the the label of the link to change based on a column value.
    for eg. i created report based on emp table which has a link on empno .
    if the deptno of the employee is 10 i want the link to be displayed as "employee of deptno 10".
    if the deptno of employee is 20 or 30 i want the link to be displayed as "others"
    Thanks in advance.

    One way I've found to do this is to put the condition part into the select statement. Use a decode to determine which link text you want to display, e.g.,
    select '&lt;a href="yourlinkhere?employee=' || empno || '"&gt;' || decode(deptno,10,'employee of deptno 10','others') || '&lt;/a&gt;' emplink from emp;

  • Order Graph Based on a different field

    I'm creating a bar graph to track our design work for a specific season.   I want the bar grapsh to have a sort order based on the taskID but display the Ttask Description on the chart.   Here is an example of the data.  RIght now the chart is based on the Task Description so the tasks are sorted in alphabetical order.   The result is the graph shows the tasks in the wrong sequence.
    I appreciate your help solving this issue.
    TaskID  Task Description
    10 Turn over item from Design
    20 Quote product item cost
    30 Order Design Sample
    40 Season Management Review

    Sorry for the delay in responding to your reply.  Let me give a little more background.  We design gift items for specific seasons.  A season may have 50 - 100 designs.  All designs have 7 tasks that management wants to track.  They want a bar chart that shows the description of the tasks on the x axis.   The bar chart shows how many jobs per task are not started, in progress or completed.  This is working as designed.  The only problem is the descriptions of the tasks are in alphabetical order, not the actual sequence in which they occur.    To get the proper sequence there is another field called TaskID.  When I use this field, then the number of the task is dsplayed on the graph, not the description.  
    So, the question is how can I show the bars of the graph based on the TaskID but display the desctription?  THanks for your help.

  • 1:N mapping without using BPM , based on segment conditions

    Hi All,
    I have to send 3 different files from source based on some conditions
    1) for the first file to be sent is okay
    2) But for second file and third file i need to check some conditions
    the conditions are
    If E1EDL44 case detail fields exists   i should generate second file and i should not create any third file  (it's one or the other, not both).
    If E1EDL44 case details doesnot exist i should generate third file and not second file...
    So My confusion is how to send either second or third file (any one only)
    If i do mapping  is it sufficient or also should i use condition editor in Receiver Determination...
    Please suggest u r valuable help..
    Thanks and Regards,
    sridhar

    Hi Sridhar,
    Make ur second interface Occurence as Optional 0:1 in ur Interfaec Mapping.
    In ur Multi-mapping (Message Mapping) also make ur  message type corresponding to ur second file as Optional.
    In ur mapping check the condition and if doesnot satisfy dont populate the second message type. Check this option.
    Regards,
    Sudharshan

  • I need your expert opinion on how to create a map with multiple conditions.

    Hello.
    I need your expert opinion on how to create a map with multiple conditions.
    I have a procedure (which i cannot import or re-create in OWB due to the bug), so i am trying to create a map instead :-(
    How can i create a cursors within the map?
    My function creates table and cursor.
    Then it will have to check for duplicates in the tables (the one created and another table) - the criteria for finding duplicates is a number of fields.I then need to place few different conditions (if some attributes are not available) and it has to load cursor based on this conditions. The next step is to fetch the data into the cursor based on what attributes are missing.
    The next thing it will do is insert the data into table (if record doesn't exist), output the error in separate table is record is corrupted, or update the record with changed information.
    In short i need to re-create match / merge but with conditions, iterations etc 'built into' it.
    I can read up on available functions - it's just what would be the best options? and what would be the best approach to do so?
    In my function i use %rowtype - but cannot use it in owb - so what would be the alternative? i don't really want to create a lot of variables and then have a nightmare of maintaing it. are there any tips regarding this?
    having looked through Oracle dedupe - it's not really what i need because it is just DISTINCT.
    I would appreciate any help / advise on this.
    Thank you very much

    thanks a lot for your reply - i will look into this option :-)
    it is a bit more complicated now as i have to re-create the match / merge and then somehow 'tweak' it to achieve the result i need.
    At the moment i am looking to breakdown the package into smaller chunks 'functions' and try creating the map that way.
    Anyway, thank you very much for your suggestion.

Maybe you are looking for

  • IPhoto 6 and Spotlight Integration Issues

    I have just upgraded from 10.3.9 to 10.4.8 and upgraded from iLife 05 to 06. I was playing around with Spotlight and clicked on an image it found that is located in iPhoto. iPhoto opened but instead of going to the photo it displays the first photo i

  • Imp error - ORA-14400: inserted partition key does not map to any partition

    Hi, We have a table (table t) with partitions (p1, p2, ... p12) and two of the partitions (p11 and p12) need to be imported into another database with different schema. Both the partitions to be imported are in two different export dumps. So, I start

  • Comand line: EUL upgrade error

    Hi All, I am running the following from command line... dis51usr.exe/connect user1/pswd@prod1 /opendb test_ap /sheet test_ap_sheet /batch /export xls c:\carlson\1.xls But It doesn't create the export file output at the given path. If i try to run the

  • Brasero refuses to burn

    It's a blank dvd and it doesn't want to write an .iso to it. I am in the optical group, and I ran it normally; didn't work then. Then I ran it with sudo and it still didnt work. I have no clue what's wrong here's the log it gave: Checking session con

  • Retina MacBook Pro 15" up to 210 degrees

    I got a app to see hpw hot my Mac is getting. Usin the internet it stays around 109 degrees but when gaming it got up to 210 degrees but majority of the time it stayed around 190/192 degrees. Is this a problem?