Query link in report

Hi,
perhaps a silly newbee question, but how do I create a report with clickable links.
For example with
select deptno from dept
I get the report
deptno
10
20
30
40
How / where can I add functionality to this report that "10","20", .. are clickable and a click on "10" or "20" shows the employees from this department
(like select ename from emp where deptno = '10')
I've looked in doku, help and forum and found no example. Have I missed the example?
Thanks for your answer(s)
Klaus

In the report "region" there is an "Report Attributes" tab/section. In there you will find attributes for each column from your query. Click the edit icon for the department column and go to the "Column Link" section of the page. You can set the "Target" to a page in your application or to a URL you define. You can also pass values to the target page by specifying the target variable name and the value you want to pass.
In your case you can define the link to go to page 88 and set the item named P88_DEPTNO to the value in #DEPTNO# . On page 88, your query would be<br>
select employeeName
   from employees
where deptno = :P88_DEPTNO
<br>Another method (more complicated but allows you even more control over the link) is to code the link into the actual query using HTML syntax and building the URL yourself following the APEX URL syntax formatting rules<br>
select '&lt;a href="'
|| 'f?p=&APP_ID.:88:&SESSION.:::RP:P88_DEPTNO:' || deptno || '&gt;' || deptno || '&lt;/a&gt;'<br>
from dept<br><br>
This gives back a column of clickable links that would take you to page 88 and pass the deptno you clicked on to P88_DEPTNO page item.<br><br>
Taking that one step further, if you can join the employees to the deptno query, you can add a "TITLE" attribute to the href statement to show just about anything when you hover over the link. There is not much formatting available using this method of the TITLE attribute, but I have found it extremely handy for information I would like to have at-a-glance, without making another column or having to go to another page. (e.g. you could have the TITLE attribute display the Dept Managers name and the count of people in that deparment.<br><br>
select '&lt;a href="'
|| 'f?p=&APP_ID.:88:&SESSION.:::RP:P88_DEPTNO:' || deptno || ' title=" || hoverTitle.titleTxt ||'"&gt;' || deptno || '&lt;/a&gt;'<br>
from dept d, (select (mangerText||empCount),deptno titleTxt from someTables) hoverTitle<br>
where d.deptno = hoverTitle.deptno<br>
<br><br>
So the resulting output looks like this
&lt;a href="f?p=100:88:12345678::::P88_DEPTNO:10" title="Manger:Jeff Employees:34">10&lt;/a&gt;
&lt;a href="f?p=100:88:12345678::::P88_DEPTNO:20" title="Manager: Jill Employees: 68">20&lt;/a&gt;
<br>If you hover over DeptNo below, you can see the title pop up. You can view the source of this page to see how the HREFs actually look<br>
<br>DeptNo<br>
10<br>
20<br>

Similar Messages

  • Link in report with SSP enabled

    Hey everyone, I have a question here involving programatically generated links in reports from the sql query behind them. How do I make a link to the page (from the report's sql query) that will allow me to change the value of a hidden and protected item (P16_PERSON_CONTACT_ID) without having APEX Session State Protection get angry at me and still protect me from having the user muck with the URL?

    David,
    Well bind variables are more performant and safer to use in queries. It shouldn't really be a debate on when to use them, you always use them when you can. Here's a quick break down (not a complete list, and should probably be expanded, but should get you going)...
    Use bind variable syntax when you're referencing an item:
    1. In a report query
    2. In PL/SQL code that is stored in the application (as a page level process for example)
    Use substitution variable syntax when you're referencing an item:
    1. Outside of SQL and PL/SQL but still need the value - this is not always an option (in the HTML Header region of a page or title of a region for example)
    Use V and NV functions when you're referencing an item:
    1. In PL/SQL code stored outside the application (in a package for example)
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen
    http://sourceforge.net/projects/plrecur
    Edited by: Dan McGhan on Apr 29, 2009 11:01 AM
    Replaced "database" with "application"

  • "edit" link from report to form does not show values

    I created a report and an attached form on two different pages. The report is a query combining two tables with outer joins. When I click on the "edit" button on the report, I get forwarded to the form page.
    My problem: When I get forwarded to the forms page, I get an empty form, and not the data from the column as expected. The "edit" button behaves more like the "create" button. Anybody an idea what I could change to be able to edit the column data?
    Thank you.

    I've met the similar problem with previous releases (1.5.0 and 1.5.1) without any objective reason.
    As I suggests, sometimes HTMLDB lost current session state. When this occurs, ALL links from reports to it's forms does not transit primary keys. I've just completed application development and I've met this behaviour every months.
    As a workaround I found folowwjing process:
    Come into administration tab, selet "Report with option to purge current session state". When I purge current session state and re-login to application, all report-form links will start to work.
    I don't know, what is the issue, but I met it so soon on my local HTMLDB environment.

  • RWI 00200 Error while scheduling the Bex Query based Webi report

    Dear All,
    I am facing the below error while scheduling the Bex Query based Webi report.
    Error:RWI 00200
    We are using BO XI 4.0 Sp05.
    Please advise

    Hi,
    I am on BO 4.0 SP05 Patch 6. Webi reports are just showing processing but not giving results. When I try to create new report it is throwing java security error.
    Tried applet patch upgrade(From link : https://websmp207.sap-ag.de/~sapidb/011000358700000902752013E) for webi certificate but didn't help.
    Please suggest what could be done.
    Thanks and Regards,
    Ankit Sharma

  • Select Query in Crystal Report

    Dear all,
    I have a report to be developed in which i have to fire more than 2 select quires. I am adding this quires in "Add Command" window, it doesn't give any error but gives output of first query only.
    I have tried to use multiple commands in report but the query fields are not having any common field in it so i am not able to link it.
    Is there any other way to use more than one query in crystal report?
    Thanks in advance.
    Ashish Tambe

    Dear Charles,
    I am willing to develop a report in which i need to select diff data from diff table such as OOPR,ORDR,OINV and many more.based on diff conditions and it may happen that a query can give more than 2-3 records then i need to make summation for that. On the basis of this summation and some more formulas in CR i need to make some conclusions.
    This cannot be done in single query. so i need to fire more than one select query.
    Regards,
    Ashish Tambe

  • Regarding Link Utilization Reports

    Hi All,
        I have installed Whatsup gold version no 11 to Monitor Network as well as Server devices. My query is im not able get Internet link reports even i don't know how to configure Router to get Link Utilization Reports and what need to configure on router to enable this Service. Kindly help me to achive this Challenge.
    Farook

    Hi All,  
    I have installed Whatsup gold version no 11 to Monitor Network as well
    as Server devices. My query is im not able get Internet link reports
    even i don't know how to configure Router to get Link Utilization
    Reports and what need to configure on router to enable this Service.
    Kindly help me to achive this Challenge.Farook
    Farook,
    You need to configure snmp server ip address (what's up gold ) in router with community sting which is configured in server.Check out the below link for insatllation guide on whatsup gold for help !!
    http://docs.ipswitch.com/NM/87_WhatsUp%20Gold%20v14.1/02_Guides/WhatsUp%20Gold%20v14.1%20Getting%20Started%20Guide.pdf
    Hope to Help !!
    Ganesh.H
    Remember to rate the helpful post

  • Linking a report to a report

    I'm trying to link a report to another report. I'm able to link a form to a report with no problem. After selecting the link I can enter the parameters. When I try to add the parameters to the link between two reports the parameter selection does not appear. Has anyone had this problem before?

    Hi,
    If you are using a sql query you cannot do this. In case of wizard based query you will get a pencil icon next to the link which when you click will bring up the parameters screen.
    Thanks,
    Sharmila

  • Linking BW report outputs  with VC story board output

    Hi Everyone,
    I have a scenario where I have display list of report names in VC output screen and I have to link these texts with few BW report outputs.
    This can be achieved in WAD using HTML coding by linking the report's URL, how can we do the same in VC. My customer wants in such a way that the report has to open in a different window in VC.
    I checked even in SDN where I didnt find the exact answer.
    Can any one help me out to achieve task.
    Regards,
    Chan

    Dear Pradeep,
    I have checked the document which u have suggested me, it is really helpful. But still i need some specefic inputs.
    My client has already developed these dashboards in WAD but now they want everything in VC. Here no interference of WAD.
    Let me explain you what I exactly want ...
    In VC output screen I want to display the list of report names ( Hard coded ), when I click on these reports (I mean text eg: sales analysis), it has to take me to the sales analysis report output in a different window or may be in same window.
    Now displaying this text and linking it with the Query designer report output is my confusion. Can u guide me to achieve this. (Here, No interference of WAD)
    Regards,
    Chan

  • Getting Java error while connect BEx query to WebI report (SAP BI4.0 )

    Not able to connect BEx query to WebI report (SAP BI4.0 ) . Below is the error I get while creating a new BEx connection to BOBJ WebI report .
    Please find the below error and help me ,
    "Select a BW Bex query window box "  displayed "Nothing to display " and server error as mentioned below
    Java.uti.concurrent.executionException: Com.sap.sl.sdk.repository.service.repositor******
    at Java.uti.concurrent.futuretask (Unknown source )
    at java.swing.swing.timer.fireactionperformed(Unknown source )
    at java.awt.event.invocationEvent.dispatch(Unknown Source)
    Thanks ,
    Pradeep Gorpadu

    Hi,
    I am on BO 4.0 SP05 Patch 6. Webi reports are just showing processing but not giving results. When I try to create new report it is throwing java security error.
    Tried applet patch upgrade(From link : https://websmp207.sap-ag.de/~sapidb/011000358700000902752013E) for webi certificate but didn't help.
    Please suggest what could be done.
    Thanks and Regards,
    Ankit Sharma

  • Link on report returns no value when record containts '&' or '' (space)

    I have created a report based on a sql script. I want to link this report to a form. With the standard LINK, the records that contain a space or '&' sign aren't linked to the form.
    Is there a way to resolve this? I know that there is a way to add html in the sql script and set the column to display as HTML.
    But what script do i need to manually set the link, and not using the standard Portal LINK?
    Thx.

    Hi,
    In the sql based report you can make a column a html link.
    Here is an example
    select ''||empno||'' empno,
    ename
    from scott.emp
    The above query returns a html link which points to a chart and takes empno as a parameter.
    Thanks,
    Sharmila

  • Object Package - Creation of Links to reports

    Post Author: [email protected]
    CA Forum: Administration
    Product: Business Objects CMC
    Version: XI R2
    Operating System(s): Windows XP
    Database(s): Oracle 10i
    Query :
      Hi,  I want to know is there any way ,in CMC, with which you can create a link to objects(reports) which point to actual reports and place them under multiple folders.
    I have a situation. The same set of reports are to be shared within multiple folders and they have the same update/change requirements to them. So if i alter one report(master), the same should be reflected under all folders. I dont want to duplicate reports in folders.
    Thanks

    Post Author: jsanzone
    CA Forum: Administration
    ripps:
    This is done while you are signed into Business Objects.  To "link" a report as you desire, you navigate to the original report, then click on the open box next to the report's name.  Click on the drop-down arrow next to "Navigate" and choose "Add Shortcuts to New Folder...", then navigate to the folder of the dialogue box and voila, you have your link.  To verify what you've just done, you can sign into the CMC and under Objects, search for your report.  After you've done the link activity described above your "master" report will have the familiar "report" icon with a blue and red color, and you're other report (the linked one) will have a similiar icon but will be in white with a black border (not colorful as the original). 

  • Link between reports and universes and universe name change

    I want to change a universe name.
    What is the impact on my WebI reports and DeskI reports ?
    Is it risky ? Will the link between reports and universes be saved ?
    Does someone know how the link between reports and universes works for WebI reports and DeskI reports ?
    Thanks

    Hello Umberto,
    I recommend to post this query to the [WEBI|SAP BusinessObjects Web Intelligence; and [DESKI|SAP BusinessObjects Desktop Intelligence; forums.
    These forums are monitored by qualified technicians and you will get a faster response there.
    Also, all Webi and Deski queries remain in one place and thus can be easily searched in one place.
    Best regards,
    Falk

  • Problem "The OLE DB provider for linked server reported an error. The provider reported an unexpected catastrophic failure Cannot fetch a row from OLE DB provider for linked server"

    hi
      i'd like to ask question about linked server.
      my linked server used to work but now when i try to select from linked server i was told "The OLE DB provider for linked server reported an error. The provider reported an unexpected catastrophic failure Cannot fetch a row from OLE DB provider
    for linked server"
      but in fact for test connection i was told "the test connection to the linked server succeeded".
      could  anyone help me? thank u very much
    best regards
    martin

    Hi, 
    In addition to Tracy's post we have to know those answers as well:
    * what provider are you using for the connection
    * what do you connect to
    for example, if someone try to connect to oracle using sql server provider then several simple queries are going to work probably OK, but once you are trying to use T-SQL or any complex SQL query then the errors are starting.
    please post the connection string (without the password!) + the query that you are trying to use.
    [Personal Site] [Blog] [Facebook]

  • How to improve query performance when reporting on ods object?

    Hi,
    Can anybody give me the answer, how to improve my query performance when reporting on ODS object?
    Thanks in advance,
    Ravi Alakuntla.

    Hi Ravi,
    Check these links which may cater your requirement,
    Re: performance issues of ODS
    Which criteria to follow to pick InfoObj. as secondary index of ODS?
    PDF on BW performance tuning,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cccad390-0201-0010-5093-fd9ec8157802
    Regards,
    Mani.

  • Steps to link a report to web form

    Hi friends,
    Could any one give the complete steps of Linking a report to web form so that when called / clicked the link the report can display the data.
    I have unchecked the "Report Option -> Save Data with Reports". So that the report could not take extra space.
    I have DB connection code in my .aspx file, it is as follows:
    Private Sub ConfigureCrystalReports()
            Dim fileName As String = "Reports\" & ReportID & ".rpt"
            Dim reportPath As String = Server.MapPath(fileName)
            myRepDoc = New ReportDocument()
            myRepDoc.Load(reportPath)
            myCrystalReportViewer.ReportSource = myRepDoc
            'myCrystalReportViewer.RefreshReport()
            Dim myConnectionInfo As ConnectionInfo = New ConnectionInfo()
            If Session("reportConnectionInfo") IsNot Nothing Then
                Dim ConnInforArrList As ArrayList = DirectCast(Session("reportConnectionInfo"), ArrayList)
                myConnectionInfo.ServerName = ConnInforArrList(0)
                myConnectionInfo.DatabaseName = ConnInforArrList(1)
                myConnectionInfo.UserID = ConnInforArrList(2)
                myConnectionInfo.Password = ConnInforArrList(3)
            Else
                lblMessage.ForeColor = Drawing.Color.Red
                lblMessage.Text = "Session is off. Please Relogin to See the Report."
            End If
            SetDBLogonForReport(myConnectionInfo, myRepDoc)
            SetDBLogonForSubreports(myConnectionInfo, myRepDoc)
            myCrystalReportViewer.SelectionFormula = GetFieldName(ReportID) & "='" & Session("CompCode") & "'"
            myCrystalReportViewer.Visible = True
        End Sub
        Private Sub SetDBLogonForReport(ByVal myConnectionInfo As ConnectionInfo, ByVal myReportDocument As ReportDocument)
            Dim myTables As Tables = myReportDocument.Database.Tables
            For Each myTable As CrystalDecisions.CrystalReports.Engine.Table In myTables
                Dim myTableLogonInfo As TableLogOnInfo = myTable.LogOnInfo
                myTableLogonInfo.ConnectionInfo = myConnectionInfo
                myTable.ApplyLogOnInfo(myTableLogonInfo)
            Next
        End Sub
        Private Sub SetDBLogonForSubreports(ByVal myConnectionInfo As ConnectionInfo, ByVal myReportDocument As ReportDocument)
            Dim mySections As Sections = myReportDocument.ReportDefinition.Sections
            For Each mySection As Section In mySections
                Dim myReportObjects As ReportObjects = mySection.ReportObjects
                For Each myReportObject As ReportObject In myReportObjects
                    If myReportObject.Kind = ReportObjectKind.SubreportObject Then
                        Dim mySubreportObject As SubreportObject = CType(myReportObject, SubreportObject)
                        Dim subReportDocument As ReportDocument = mySubreportObject.OpenSubreport(mySubreportObject.SubreportName)
                        SetDBLogonForReport(myConnectionInfo, subReportDocument)
                        If myReportObject.Name = "Subreport1" Then
                            Dim lvSec As Section = subReportDocument.ReportDefinition.Sections("DetailSection1")
                            If Not lvSec Is Nothing Then
                                Dim t1 As TextObject
                                t1 = lvSec.ReportObjects("txtEmpName")
                                t1.Text = Session.Contents("EmpName")
                                Dim t2 As TextObject
                                t2 = lvSec.ReportObjects("txtRepID")
                                t2.Text = Request.QueryString("REPID")
                            End If
                        End If
                    End If
                Next
            Next
        End Sub
    Please do help me out.
    Thanks and regards

    Hello Md. Mushtaque,
    Please post this query to the [.NET Development - Crystal Reports|SAP Crystal Reports, version for Visual Studio; forum.
    This forum is dedicated to topics related to custom application development or deployment with Crystal Reports in .Net. This includes full versions of Crystal Reports as well as those versions of Crystal Reports bundled with Microsoft Visual Studio .Net.
    The forum is monitored by qualified technicians and you will get a faster response there.
    Also, all Crystal Reports .NET Development queries remain in one place and thus can be easily searched in one place.
    Thanks a lot,
    Falk

Maybe you are looking for

  • DS Enhancement Question !

    Hello experts, I wanted to understand some basic concepts of DataSource  Enhancements., I am sorry to put such kind of wide and often asked thread again. But unfortunately i couldnt find clear understanding form the existing Posts and from SAP help s

  • Ipod classic not connecting (not even showing 'do not disconnect' on Ipod)

    Help! I have an ipod classic and, since I upgraded to itunes 9, I have noticed that, all of a sudden, my ipod won't connect at all. When I connect the USB cable to the ipod, the screen lights up but does not start charging nor does it show 'do not di

  • SolMan 4.0 SR2 install error - libsapu16.so not found

    I am installing Solution Manager 4.0 SR2 on Redhat Linux and Oracle for the x86_54 hardware.  The install failed on 18.  The error is on the execution of the R3load -testconnect.  The return code is 127 - libsapu16.so no such file or directory.  I ca

  • Copying from dvd to hard drive. processs freezes

    copying a MP4 from dvd to hard drive.  95% complete then frozen.  unable to stop download, or eject dvd. what now?

  • HELP: jsp cookie problem

    Hi, 1) I have a page (index.jsp) that looks for a cookie, if the cookie isn't there it redirects to a login page. 2) The login page, on submit, calls a servlet that sets the cookie (when usr and pwd are valid). Then the servlet redirects to the origi