Stacked column linking question

APEX 4.0
Anychart 5


Setting SQL shaped for a stacked column or a bar chart is pretty simple.

SELECT
link,
label,
Value1,
[value2],
[value3,]...
Of...


This will allow your entire column/bar become a link.

Is there a way to allow each value in a column/bar to post a link to another location?

For example -.
In view of the data set:

Label: balls football: baseballs: Tennisballs
East: 100:30:20
West: 40:50:60
North: 50:50:50

A stacked bar will create three bars, each with three regions. If a link was specified according to the format described above, each region in the East bar link to the same place. Ditto for the bars of the West and the North. However, I have a 9 different links for this data set. Is this possible?

Austin

Hi Austin,.

Yes, it is possible to define a different link to each item in your series on the chart. It goes down just in the way you write the query in the chart series. You can use a CASE statement to define a different link according to the value of the LABEL of your query, or you could make a UNION of several statements, with a different link defined in each select statement. Using your example data set, I've implemented the following example on my sample application - http://apex.oracle.com/pls/apex/f?p=36648:59 - and I have stressed the three queries used to generate the graph. The query of the 1 series uses a CASE statement, and other queries of two series are a UNION of several select statements. Is looking to achieve?

I hope this helps.

Kind regards
Hilary

Tags: Database

Similar Questions

  • Request for 3D stacked column chart

    Hello

    I had two 3D histograms. Each table has separated the SQL statement, which are very similar only difference is in the WHERE clause. Now I would like to combine the bottom two codes into one and create only a single 3-d stacked column chart.

    CODE 1:

    Select

    link null, label RECEIVED_DATE, COUNT (TICKET_ID) as "received".

    Of

    QTMT_TICKETS

    where

    RECEIVED_DATE BETWEEN sysdate-7 AND sysdate AND

    BATCH = 1

    Group

    RECEIVED_DATE

    order by

    RECEIVED_DATE / / desc

    CODE 2:

    Select

    link null, RECEIVED_DATE, COUNT (TICKET_ID) label as "rejected."

    Of

    QTMT_TICKETS

    where

    RECEIVED_DATE BETWEEN sysdate-7 AND sysdate AND

    BATCH = 11

    Group

    RECEIVED_DATE

    order by

    RECEIVED_DATE / / desc

    Would you please so kind and help me with this? I tried to do it, but failed.

    Thank you very much and best regards,

    Vladimir

    Refer to this link to add an additional series: How to create a stacked bar chart

    Thank you

    Tony Miller
    Software LuvMuffin
    Ruckersville, WILL

  • report column link to different pages

    Hi all

    I have a problem now.

    I have a ratio r:

    LEVEL NAME ID

    1 STUDENT

    2B TEACHER

    3 C STUDENT

    4 D ADMIN

    5 E TEACHER

    ...

    I want to 'LEVEL' column link to different pages. Once I click on "STUDENT"-> page 1, "PROFESSOR"-> page 2, "ADMIN"-> page 3.

    For example, when I click on the first line of "STUDENT", then I jump to page 1. And when I click on the second row 'TEACHER', jump to page 2.

    I don't know if I clearly expresses, but I need your help!

    lila820 wrote:

    I don't know if I clearly expresses

    Lol see Re: how to get the answers from the forum for how to do it. In particular, always specify if a 'report' is a standard report, interactive report or a tabular presentation.

    I have a problem now.

    I have a ratio r:

    LEVEL NAME ID

    1 STUDENT

    2B TEACHER

    3 C STUDENT

    4 D ADMIN

    5 E TEACHER

    ...

    I want to 'LEVEL' column link to different pages. Once I click on "STUDENT"--> page1, page2--> 'TEACHER', 'ADMIN'--> page3.

    For example, when I click on the first line of "STUDENT", then I jump to page 1. And when I click on the second row 'TEACHER', jump to page 2.

    A less obvious but simple way to do this is to specify the alias page for pages 1, 2 and 3 as a STUDENT, TEACHER and ADMINISTRATOR respectively. Then set the link Page column property to the #LEVEL # column string substitution to pick up the LEVEL of report column page alias. This approach has a better separation of concerns because it eliminates the generation of HTML code of the application and in this case even does not require the addition of any column in the report. (And I strongly recommend that you do not level use as is an Oracle reserved word as an identifier.)

  • SQL report column link

    Can get us sql report conditional link column, I want to say that I want the link only for rows with null values. If there are data in the column, I want to show the data but not the link.

    Published by: Sivaramaraju on May 31, 2012 04:13

    VC says:
    Yes, this is how you do it

    select case
    when column1 is null then 'test link'
    else column1
    end
    from table
    

    Try this, if work mark it as answered

    It won't work.

    You Please stop being so eager to answer every question and for taking the time to respond to those you'd correctly.

    (I see a lot of < a href = "javascript:..." > in your messages.) What is your opinion on the use of code based on the standards and unobtrusive JavaScript?)

  • The Q10 BB blackBerry link question

    I always get this error message when you try to synchronize via cable and the BB link:

    "CPreferencesManager: the value of Configuration/Preferences/Account_22_1441794/DevicePin not defined in TransConfig.xml for translator RimBB.

    What is it?

    Hello zr1100c3,

    Welcome to the BlackBerry support community.

    Thank you for your question about the issue you are experiencing during synchronization using the BlackBerry Link software.

    The following article can help you about this: http://www.blackberry.com/btsc/KB34453

    Let us know if that helps.

  • Column link to the page on the right calendar

    Dear all,

    I would like to create a link from a date column in a report page (e.g. page 10) to a calendar page (e.g. page 2).

    Let's say you have 15-dec-2015 in the data column, so I would like to open with this link to the page of the month of December in 2015.

    If the date value January 14, 2016 and then the page for the month of January in 2016.

    I did research on the internet, but this was not successful so far. I need some help here.

    I tried the following:

    In the section target the date column:

    Page: 2

    Set items:

    Value name

    ---------------------------------    -----------

    P2_CALENDAR_TYPE M

    P2_CALENDAR_DATE #EVENT_START_DATE #.

    Clear Max: Clear Cache

    This gives error because of the P2_CALENDAR_TYPE existing does not in page 2.

    I use APEX 5.0.1.00.06 on the 11g database.

    Kind regards

    Cafer

    Hi Thibault,

    I suggest to have two pages from the point P2_STARTYEAR, P2_STARTMONTH in your calendar page and use the function gotoDate after setting the month and year in these elements of the page. Set the static id of your MyCalendar calendar and try this code in page loading section:

    $(document).ready(function() {
       // Get Year and Month
        var year = $("#P2_STARTEAR").val();
        var month = $("#P2_STARTMONTH").val()-1;
       // Goto the date
        var d = new Date();
        d.setFullYear(year);
        d.setMonth(month);
        $('#MyCalendar').fullCalendar('gotoDate', d);
    });
    

    I hope that helps you.

    Concerning

    Mahmoud

  • Chains of substitution in the column link attributes

    I use this attribute a lot recently to activate the link columns in reports to the pleasant appearance buttons, using the same set of classes used by the button model options, for example:

    class="t-Button  t-Button--warning t-Button--simple t-Button--stretch"
    

    Instead of use the chain, I would like to set it either by using a chain of substitution of application to create consistency, or the columns of the region to provide classes based on a condition of level line.

    link_attribs.png

    I spotted some differences in behavior between classic and IR and 5.0.1 and 5.0.2. I am not too concerned by version differences because the progress is there, but I want to ensure further progress.

    I have an example here, ws (swesley/otn/forum) connection details

    https://Apex.Oracle.com/pls/Apex/f?p=88776:3

    For both types of reports, the EMPNO uses & BTN_CSS. to supply the value of a string substitution of application. It works for the IR, but not for the classic. Instead, I see

    <a href="javascript:void(0);" &btn_css.="">7369</a>
    

    The ENAME field uses #LINK_ATTRIBS # the source of the value of the SQL. The caveat here is that the LINK_ATTRIBS column must escape special characters the value no. It works in 5.0.2 but not 5.0.1. The latter treats the string as if it has not been dropped?

    pasted_image_at_2015_11_03_09_22_pm.png

    My solution is to provide

    class="#LINK_ATTRIBS#"
    

    where the sql returns just the set of classes, not the full html tag.

    This problem has recently been described in the mou channel # _Suit.

    Hi Scott - thank you for viewing this issue, I am agree that traditional reports that should support the do of reports interactively. So, I advanced and implemented this change for APEX 5.1.

    Marc

  • Refresh the page column link onclick

    Hello

    I'm using version 5.0 of apex...

    Set up a report page in the apex with two columns of the link to validate and download... I have a single process Page on load before header, which validates the records in a table...

    When I click on the link to validate documents are validated, a log file will download automatically... After that the page should refresh... Is it possible to send the page through javascript in the PLSQL page or in javascript...

    I need to refresh the page after that validation is complete...

    Thank you

    Toddler

    Infantraj wrote:

    Hello

    I'm using version 5.0 of apex...

    Set up a report page in the apex with two columns of the link to validate and download... I have a process on Page load before header that validates records in a table...

    When I click on the link to validate documents are validated, a log file will download automatically... After that the page should refresh... Is it possible to send the page through javascript in the PLSQL page or in javascript...

    I need to refresh the page after that validation is complete...

    Thank you

    Toddler

    1. call the link java script function validate and transmit the application using APEX. Send

    function test() {}

    Apex. Submit ({request: "SUBMIT"});

    }

    2 assign this request to your process.

    modify your process-> status-> request = Expression1

    Expression1 = SUBMIT

    Better to create example on apex.oracle.com.

    Hope this helps you,

    Kind regards

    Jitendra

  • How to make the column link open in a new tab

    Hello

    I have an interactive report, and I write this in the resource of the region:

    Select 'ASSP '. "" ID "as the"ID"

    "ASSP". "' SERVICE ' as 'SERVICE."

                  '<a href=" http:// '||" ASSP. ' LINK ' |. ' » » > "|| » ASSP. "' LINK ' | "< /a > ' 'Link', "

    of 'ASSP' 'ASSP '.

    I want to open a new tab when I click the link, what do I do with my code?

    Thank you!

    Lila

    Hi Lila,

    To open the link in a new tab column, add target ="_blank" attribute in your anchor tag.

    for example

    Select 'ASSP '. "" ID "as the"ID"

    "ASSP". "' SERVICE ' as 'SERVICE."

    'http://'||" ASSP. "' LINK ' | "" target = "_blank" ' > ' | "" ASSP. "LINK": "like"LINK. "

    of 'ASSP' 'ASSP '.

    Hope this helps ypu

    Kind regards

    Jitendra

  • 11.1.1.7 WebCenter Portal spaces - external link question

    We have a space of organization created by another part of the team that has a model of navigation with links to tasks workflows and other internal resources.  Our part of the team change the navigation menu to incorporate links external https applications Oracle Forms/Reports. We are unable to open these links in a new window.  We can get the link to open the WebCenter space, but whatever option we choose in the field ' Open link in ", we always get the same result.

    " We are concerned, there is a limitation as when we add the" https:// ' URL in the field path on the target tab, the Options tab has more 'New window' as an option in the drop down for the field ' Open link in "."  We work around this problem, by updating add directly the XML:

    < attribute attributeId = 'Target' isKey = "false" value = "_blank" / >

    Here's the question: is Webcenter allow you to have a link to the external secure page open in a new window?  If so, what configuration change is required for us to accomplish this?

    Thank you

    Hello.

    It's easy:

    • AF:goLink . with the property targetFrame to open links as _blank, _self... (She translates to normal ( )
    • AF:commandLink does not have the targetFrame property, and you can use pprnav.

    You just have to check with af:switcher based on the attributes of node/settings that use a single.

    My reference to the pageTemplate_global is just a sample on how logic can be applied, must be followed rigorously. In this case, the commandLink's tests only whether or not she should open a popup to display more navigation.

    I hope this information helps.

    Kind regards.

  • link questions

    www.Tools-and-Machinery-Sales.com

    1.) can anyone tell me why my links sparkle please?

    2.) according to DW Tablet I try to click on the navigation system to shrink down to the width of column 4, three links are on a single line with spaces... like this one, I made earlier... www.rte-pyrpgraphy.com, but can not get the handle to come.

    Thank you

    1. boilerplate. CSS remove line 66 display: none;
    2. stylesht. CSS line 186 Add! important to read width: 32.3076%! important;


    Other problems exist in markup and must get back to you.

  • column of question: query customerID sqlplus appear twice

    I tried several ways to view a query where indicates the client who made more than 3 rentals from 01 Nov to 31 Dec. However, for some reason any the customerID column appear twice.

    * I use 3 tables to get this result:

    Select RentalAgreement.membershipcardid as "MCardID."
    Customer.CustomerID, Customer.CNAME, Customer.Address,
    membershipcard. CustomerID, Invoice.rentc, RentalAgreement.DateAndTimeOfIssue,
    Count (RentalAgreement.membershipcardid) as 'NOfRents' RentalAgreement, customer, membershipcard, Bill
    where rentalAgreement.membershipcardid = MembershipCard.membershipcardid
    and customer.customerid = membershipcard.customerid
    "and RentalAgreement.DateAndTimeOfIssue between November 1, 2012' and 31 December 2012"
    RentalAgreement.membershipcardid group, MembershipCard.
    CustomerID, Customer.CNAME, Customer.Address, Invoice.rentc, Customer.CustomerID, RentalAgreement.DateAndTimeOfIssue;


    MCardID CUSTOMERID CNAME ADDRESS CUSTOMERID RENTC DATEANDTI
    ---------- ---------- ---------- ------ ---------- ---------- ---------
    NOfRents
    ----------
    107 N151AS of EDuois 27 27 60 11 November 12
    5

    108 28 WDuois N151AS 28 60 19 November 12
    5

    101 N193AS of ALuois 22 22 60 22 November 12
    5


    MCardID CUSTOMERID CNAME ADDRESS CUSTOMERID RENTC DATEANDTI
    ---------- ---------- ---------- ------ ---------- ---------- ---------
    NOfRents
    ----------
    101 N193AS ALuois 22 22 60 21 of November 12
    5

    101 N193AS of ALuois 22 22 60 20 November 12
    5

    101 N193AS of ALuois 22 22 60 24 November 12
    5


    MCardID CUSTOMERID CNAME ADDRESS CUSTOMERID RENTC DATEANDTI
    ---------- ---------- ---------- ------ ---------- ---------- ---------
    NOfRents
    ----------
    109 N151AS of ADDuis 30 30 60 3 December 12
    5
    Thanks for your time.
    I'm not sure if this request seems to be logical, I would be grateful to any online guide to pl/sql

    Hello

    978308 wrote:
    Hi to you for your help, I have another question about pl/sql.

    When you have a new, separate question, then you should start a new and separate thread. This thread has 4 replies and is marked as 'response '. most of the people who have not participated in this thread (and in this case, it's just you and me) are not going to start watching now. You will get much better response if you start a new thread.

    I use oracle 11.2.0. I'm trying to get a report of repairs, so I put a condition if:
    3. WHERE RETURNED > 1; - then it will only show the repair costs

    I got an error after exec report_cursor

    SQL > exec report_cursor;

    ERROR on line 1:
    ORA-06550: line 1, column 7:
    PLS-00201: identifier 'REPORT_CURSOR' must be declared.
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored

    ---------PL/PSQL-----------------------------

    The line above shows what is simply boredom!
    What follows is not just the PL/SQL code. Like many scripts, it's a mixture of SQL * more and PL/SQL (and, unwittingly, pure SQL, too).
    'SET SERVEROUTPUT ON' is a SQL * Plus command. Like all SQL * most orders, be completed before the end of the line. In this case, it means "DECLARE CURSOR report_cursor IS" is taken as part of the SET command. When I run it, I get a SQL * Plus error message "SP2-0158: unknown SET"declare"option

    SQL >
    1 set serveroutput on DECLARE CURSOR report_cursor IS

    If the first line is ignored. Since you have not started a block PL/SQL, lines 2 and 3 are considered as being a pure SQL query.

    2. SELECT INVID REFERRED, INVOICEDA, REPAIRDETAIL OF THE INVOICE
    3. WHERE RETURNED > 1;
    4 I_INVID INVOICE. INVID % TYPE;
    5 I_REPAIRFEE INVOICE. SENT % TYPE;
    6 I_DATE INVOICE. TYPE % INVOICEDA;
    7 I_DETAIL INVOICE. TYPE % REPAIRDETAIL;

    I know not why the lines 4-7 do not cause any errors, because the DECLARE has been ignored.
    From line 8, the script is interpreted as PL/SQL: it looks like an anonymous block that does not have the optional DECLARE section.

    BEGIN 8
    9 DBMS_OUTPUT. Put_line ('ID, cost and Scooter fixed Details'); ...

    Please formatting your code. It will help you as well as others.

    All you have to do is to start the DECLARE statement on a charge line:

    set serveroutput on 
    
    DECLARE
        CURSOR report_cursor IS
                SELECT  INVID
            ,         REPAIRFEE
            ,        INVOICEDA
    ...
    
  • Missing column link layer

    I am trying to improve my skills of PS and work through a book PS CS. I'm working on a session layer. The books shows a column called link layer mode. I is just to the right of the visibility column. I don't know I've seen this, but it is absent today.

    I did a restart cold, which didn't help. I probably did something to cause this but I can't find what I did.

    Any advice greatly appreciated!

    Now, it is just to the right of the layer name. You can select the layers as in an Explorer of files, shift-click to select contiguous layers, LCR-click here for non-. Right click on any layer in blue highlight will get the menu below. Or layer > link layer.

    See more here:

    http://help.Adobe.com/en_US/Photoshop/11.0/WSfd1234e1c4b69f30ea53e41001031ab64-78e4a.html

  • PL/SQL Query return function, adding the column links

    Hi all

    I'm working on a SQL report with the area type = function from PL/SQL Query to return
    All columns are generated dynamically based on my mapping table and a column of ID.
    So whenever the page is loaded, according to the ID mapping table returns a set of columns in a particular order.
    So not only the columns are dynamic, but the order of the columns varies also.
    But the first 1 column is standard (it doesn't come from the mapping table) and is coded in my pl/sql block hard.

    I'm fighting with the addition of a link to this column. The link must be a Javascript function which takes the parameters in the form of 2 columns in the mapping table.
    My pl/sql block is something like that...
    v_select := 'SELECT <g href=javascript:f_report1(#map_id#,#comments#)><img src=""></a> as report1, ';  // g=a
    v_cols := 'contains all columns from the mapping table based on a ID(hidden item)';
    v_from := 'FROM table';
    v_where := 'where condition is put in here';
    v_query := v_select||v_from||v_where;
    return v_query;
    Now, I'm not able to transmit the values of this #map_id # and #comments # correctly. I tried so many different combinations of channels, but could not make it work.

    I'm not sure that the order of this map_id and commentscolumn and therefore cannot connect through the report attributes.
    How can I go to a column value to the function?



    Thank you
    Dippy

    This should work if all goes well:

    v_select := q'[ SELECT '' as chart, ]';
    

    Published by: Dimitri Gielis on May 20, 2010 20:10

  • How to pass more than 3 Articles in the column link

    Hello
    I need to spend 4 elements as values of link from page 1 to page 2. Under report-> column attributes
    Attributes-> link I can't put more than 3 Articles. Can some please advice the best way to transmit more than 3 values from page 1 to page 2.

    Thanks in advance
    Aali

    More than 1 point/value can be entered in each text box: just, separate them by commas (",") and to ensure that the order of elements and values matches.

Maybe you are looking for