Conditional hyperlinks in a report by row

Is it possible to have conditional hyperlinks in a report by row based on values of columns in the row?

You would replace the hyperlinks I provided with links to pages in your application.... As suggested..
SELECT X,
           Y,
           CASE X
               WHEN X = 16 THEN
                     < a href="f?p=&APP_ID.:[your target page here]:&SESSION.">Link-text</a>
                WHEN X = 21 THEN
                     < a href="f?p=&APP_ID.:[your NEXT target page here]:&SESSION.">Link-text</a>
                WHEN X > 22 THEN
                      < a href="f?p=&APP_ID.:[your NEXT target page here]:&SESSION.">Link-text</a>
                ELSE
                      < a href="f?p=&APP_ID.:[your target page here]:&SESSION.">Link-text</a>
           END CASE
FROM Blah BlahThankyou,
Tony Miller
Webster, TX

Similar Messages

  • Conditional Link on Interactive Report

    I'm trying to make the link column conditional on an interactive report. That is, I only want the pencil icon on the rows which have a field that is greater than 30. So, assume my query says:
    select DEPT_ID, USER_LEVEL
    from my_table;
    I only want the link icon to appear on rows that have USER_LEVEL > 30. I tried (unsuccessfully) to get this to work by adding a condition of "Expression1 = Expression2", and I used the #USER_LEVEL# substitution string. (Note: I know this would be exactly what I want because I want the condition to be on all values > 30, but I couldn't even get this to work when I put #USER_LEVEL# in Expression1 and "30" in Expression2 and looked at the records that had a USER_LEVEL value of exactly 30).
    In the end, I had to create a much more complex query like this...
    select
    case
    when USER_LEVEL >= 30 then
    '<a href="f?p=&APP_ID.:21:&SESSION.::&DEBUG.::P2_DEPT_ID:' || DEPT_ID || "><img src="#IMAGE_PREFIX#menu/pencil16x16.gif" alt="Edit" /></a>'
    else ' '
    end as edit_icon,
    DEPT_ID, USER_LEVEL
    from my_table;
    This doesn't seem right to me. Can someone confirm that I'm doing this the right way?

    Hi -
    It really bugs me this forum has such a problem with code examples, so for a while at least I posted quick example on Google:
    [Conditional Column|http://docs.google.com/Doc?id=dd2tkvv6_212dbzw2ftq]
    Not to complicate too much, but if you wanted to not have empty column except one row, you could of course apply this trick to the column that actually holds the user name in your table... in other words, the user could click right on their own name to go to edit screen, but every other user name but theirs would not be a hyperlink. But that is as they say an exercise for the reader :)
    Good luck.

  • Conditional display column in report

    Hi,
    If we have a single row report of 30 columns, and I want to display only the one with any values but null and hide the null ones, Is there a way to do it?
    It's the same issue discussed in this thread conditional display column in report
    thanks,
    Fadi.

    Samara - I suspect there are a few ways to do this, but none obvious or very easy as far as I can see.
    You can create dynamic SQL (as Arie and others have suggested) to only include the columns that are not null.
    You can build and output the HTML directly to the page, choosing only to include the values that are not null.
    You can create a set of conditions that you can apply to the report columns. A very crude example might be 30 hidden page items like 'SHOW_COL1' etc. (not great, I know), or perhaps you could set a hidden page item to a value like '01:02:03:'etc., with the number only being included if the value is not null (so that col3 being null gives you '01:02::04'etc.), so that the condition for each column is 'Text in expr 1 in contained in Item in expr 2', where expr 1 is '01' for column 1 etc.
    Sorry, that is a very contrived example, but it's just to illustrate that there's generally a way of doing pretty much anything in APEX. You might create your item containing the comparison expression by requerying the data in this kind of way:
    SELECT NVL2(column1, '01', '') || ':' || NVL2(column2, '02', '') || ':' etc.
    FROM table
    WHERE condition
    However, wanting to create a single-row report with nulls hidden makes we wonder what you're actually trying to achieve and whether there's a better way? Could you use a series of page items, for example?
    John.

  • Report Record Row with multiple color conditionaly

    Dear Friend,
    i am using Apex 3.2 ver.
    i want to display report record row with colour .
    i want to display reoport row color blue if INVOICE_TYPE column is 'I' and RED if INVOICE_TYPE is 'C' .
    select
    am.ID,
    am.INVOICE_NO,
    am.INVOICE_NO as invoice,
    am.SBU_CODE,
    am.INVOICE_TYPE,
    am.INVOICE_DATE,
    am.AGENT_CODE,
    am.NO_OF_PAX,
    am.ADDL_FIELD5
    from "AR_INVOICE_MAS"  amHow can i disply row record conditionaly color ful .
    Thanks
    Edited by: Vedant on Oct 10, 2012 11:05 PM
    Edited by: Vedant on Oct 10, 2012 11:14 PM

    Dear Jary,
    Thanks to reply me.
    i have follow your link and font color display but bg color not display.
    now i have change in code
    select
    am.ID,
    case       when am.INVOICE_TYPE = 'C' then 'BLUE'
               when am.USER_ENTER_AMT = sum(al.NET_AMT) then 'RED'
                end the_color,
    am.INVOICE_NO,
    am.INVOICE_NO as invoice,
    am.SBU_CODE,
    am.INVOICE_TYPE,
    am.INVOICE_DATE,
    am.AGENT_CODE,
    am.NO_OF_PAX,
    am.ADDL_FIELD5,
    NVL(sum(al.NET_AMT),0) AS SUM,
    NVL(am.USER_ENTER_AMT,0.00) AS CONTROLSUM
    from "AR_INVOICE_MAS"  am ,AR_INVOICE_DTL al WHERE am.invoice_no=al.invoice_no(+)
    group by am.ID,am.invoice_no,am.SBU_CODE,am.invoice_type,am.invoice_date,am.agent_code,
    AM.NO_OF_PAX, am.ADDL_FIELD5,am.USER_ENTER_AMT Here i want to display in red below condition but it's not working.
    when am.USER_ENTER_AMT = sum(al.NET_AMT) then 'RED'How can i display Record in RED which record does not varify below condition
    when am.USER_ENTER_AMT = sum(al.NET_AMT) then 'RED'
    How can i do this.
    Thanks

  • Hyperlink on Crystal Report: how to popup a window without menubar?

    Hyperlink on Crystal Report: how to popup a window without menubar?
    Hello Experts!
    I'm using VS2003 with Crystal Reports for VS2003.
    I need to show a popup window clicking a hyperlink text object on my crystal report.
    On the CrystalReportViewer I have set up HyperlinkTarget=_blank, and it's working fine.
    But when I click on the hyperlink and shows the popup window, how can I show the popup window without menubar, toolbar, directories, etc.
    Something like:
    window.open('../MyPage.html?id=id001" + Cad + "',null,'menubar=no,scrollbars=yes,toolbar=no,location=no,directories=no,resizable=yes,status=yes')

    Adam is correct. The closest you can get is setting the CrystalReportViewers HyperlinkTarget to _blank. It was seen as a potential security vulnerability to allow you to run scripts from a Crystal Reports. In our Enterprise product you can use a reg key called EncodeHTMLForSingleLineFieldObjects to control whether this can be turned on or off.
    Unfortunately this was never ported over to our .NET CrystalReportViewer.
    This is referenced in notes 1202803, 1219298, and 1219301.
    https://www.sdn.sap.com/irj/sdn/businessobjects-notes
    Edited by: David Hilton on Jul 16, 2008 4:17 PM

  • Crystal Report Hyperlink to Sub-report or other report

    Hi,
    I would like to create a report on which the first part will show project summary page. The second part will have all project detail pages and third part with all project financial informations.
    The report should work in such a way whenever user clicks on any project at first summary page this has to jump to corresponding detail page of projects.
    I have the following question regarding design of this report.
    1. Do I need to create a saparate report as a sub report and then merge with main report in a footer section? Or is it ok to create sub-report within main report through sub-report wizard option?
    2. How can I establish hyperlink between the pages i.e. summary to detail pages?
    3. back hyperlink to first pages.
    I am expecting more information about hyperlink options within Crystal report.
    Thanks
    -Sunil Prasad

    Hi Sunil
    - For your first question: . Do I need to create a saparate report as a sub report and then merge with main report in a footer section? Or is it ok to create sub-report within main report through sub-report wizard option?
    You can create a separate report and then insert it as a subreport in the main report or create it with sub report wizard.
    Once you click on Insert -> Subreport, you can see there are two options, one is to point to an existing report and another is to create it through wizard.
    - 2. How can I establish hyperlink between the pages i.e. summary to detail pages?
    You can use the hyperlink between report objects.  Also you can apply a customized formula for this.
    Check the below SAP Notes:
    [1. 1207011 - How to create an OpenDocument link in Crystal Reports XI/XIR2 |http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes]
    [2. 1212849 - How to pass a parameter value through a hyperlink from one report to another |http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do]
    For detailed information on Hyperlink Click on Crystal Reports Help Help -> Search for the keyword Hyperlink.
    You can also refer to the Crystal Reports User guide for the respective version that you are using.
    Hope this helps!!
    Regards
    Sourashree

  • How to print a report without row numbers or grid lines?

    Is there a way to print a Discoverer report without row numbers or grid lines?
    Thank you.
    Blake

    Hi Blake
    You're not doing anything wrong.
    The settings made when you use Tools | Options | Sheet are global settings that are only applied to new workbooks and worksheets going forwards. These have no impact on existing worksheets or even the one you currently have open. This is because Discoverer does not know whether your original worksheets were setup in a certain way deliberately as opposed to inheriting the global settings as they were at that time. What this also means, reading between the lines, is that these settings must then be stored within the worksheet itself, and this is exactly what happens.
    Thus, to edit an existing worksheet's settings you need to open the worksheet, right-click in the sheet and from the popup select either Format Table or Format Crosstab depending upon the type of worksheet you are working with. After making any necessary changes you will need to save or re-save the workbook in order for those settings to be remembered for the next time.
    Best wishes
    Michael

  • Is it possible to create a hyperlink in ERP report output

    Is it possible to create a hyperlink in ERP report output connecting it to an outside application?
    Regards
    Sridhar

    user11996389 wrote:
    Is it possible to create a hyperlink in ERP report output connecting it to an outside application?It is possible for certain types of reports (not text):
    http://docs.oracle.com/cd/B25516_18/current/acrobat/115xdoug.zip (Page 2-50, Hyperlinks)
    http://docs.oracle.com/cd/E10415_01/doc/bi.1013/e12187/T421739T481157.htm#hperlinks
    Thanks,
    Hussein

  • XL reporter error occurred while executing report! Rows: 25203 Columns: 30

    An error occurred while executing report! Rows: 25203 Columns: 30 Unspecified error
    One user gets this error when trying to run a custom XL report. It works for other users(on different PCs). The user can run other XL reports successfully.

    Hello  pls
    follow below procedure
    start->my computer>cdrive>program files >sap>sap business one> remove these two files 1).AddOnsInstall.sbo and 2).AddOnsLocalRegistration.sbo and clear all ur %temp%Files,prefetch,recent files and restart and open sap then u will get connected to xl reporter add on. and u will not get any errors
    regards
    Jenny

  • Creating a report with hyperlinks to other reports in data fields

    First sorry for my bad english.
    I've to generate a report where i can click on a field in a specific column and generate
    another report from that, where i can use the record data for another
    query.
    How can i make this?
    In few words I've a report and i've to make clickable some columns.
    There i've to insert an hyperlink to another report using these data like parameters for the new report query.
    I'm using Oracle Developer Suite 10G, Reports Builder 10.1.2.0.2, Windows XP SP2.
    I've seen that post:
    Re: Adding Hyperlink to a Field
    where seems there's a solution, but i'm quite noob in Oracle using and if someone could explain me help'll be appeciated.
    Thanks a lot in advance

    Hello,
    http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwcontxt/props/pi_lay_hyperlink.htm
    Example 4: Data-driven hyperlink
    The following example shows a value for the Hyperlink property that specifies a link that needs to have data values provided:
    HTTP://SERVER/PATH/RWSERVLET?REPORT=DEPARTMENT.JSP&P_DEPTNO=&DEPTNO
    Regards

  • Using Hyperlink in PDF Report

    Dear all,
    i have created a PDF report using report 10g. now i want to put a hyperlink on that report, and when i press the hyperlink , i want to execute one stored procedure.
    how to do this?
    Thanks & Regards

    Omer,
    In HTML you can set this with the attribute title. So in reports you can use the command
    srw.set_hyperlink_attrs('title=mytitle');
    I've not tested with pdf, but should work also.
    regards
    Rainer

  • How to freeze the report header row in the web template SAP BI 7.0?

    Hello,
    Can somebody tell me how to freeze the report header row in the web template SAP BI 7.0 (key fiigures1, 2,3)?
    key figure1   key figure2    key figure3
    20                    30                   40
    30                    80                   90
    Thanks

    Hi,
    You can refer the following threads...
    Re: Create Scrollable Table Body in WAD - Locking Table Column and Header
    Freeze Data Columns in WAD
    This will help you!
    Rgds,
    Murali

  • Printing Procurement Terms and Conditions in custom BIP report

    We are developing a custom BIP report for printing Purchase Agreements. We created new Data model and a new report template that matches the customer's requirements. However, we are not able to print the Terms and conditions in this custom report.
    The custom report is placed in the Shared Folders/Custom/Procurement/Purchasing folder and we included the following code at the beginning of the custom report template -
    <?import: xdoxsl:///Procurement/Purchasing/prc_po_terms_and_conditions_sub.xsb?loc=${_XDOLOCALE}?>
    And at the end, where we want to print the Terms and Conditions, the following code -
    <xsl:apply-templates select=".//TermsAndConditions"/>
    But the Terms and conditions are not printed. Can someone please help out and point to me where the mistake is?
    Thanks
    Lakshmi

    I am not an expert on BIP and will ask a colleague to comment. Took a look at the documentation and noticed some small differences, not sure if these have any impact, but you could try them while waiting to triage the issue:
    The documentation does not have space in the import statement i.e. "import:xdoxsl" while your example has a space "import: xdoxsl"
    To render the content the documentation states to use "<?call-template:template_name?>"
    Jani Rautiainen
    Fusion Applications Developer Relations
    https://blogs.oracle.com/fadevrel/

  • Can weuse Measure Object as hyperlink from summary report to detailreport

    Hello All,
    I have a Web-I report as shown
    Group              HrsSched          Hrs Used
    Here Hrs Used is Sum(Resultkey) for each group (grouping is done).
    Now i should make this Hrs Used as hyperlink to detail report.
    For that I created a variable with following code
    ="<a Title='SOC Sched vs Actual Report Detail'
    href=\"../../../OpenDocument/opendoc/openDocument.jsp?sWindow=New&sType=wid&sPath=[Engineering],[SOCTesterUtilization],Reports]&sDocName=SOCSchedvsActualReportDetail&lsSPeriod Begin Date="UserResponse("Period Begin Date")"&lsSPeriod End Date="UserResponse("Period End Date")"&lsMTester="[TesterVendor]"&lsMTester Category="UserResponse("Tester Category")"&lsMTime Segment="UserResponse("Time Segment")"\">"Sum([ResultKey]) + "</a>"
    and placed the same in the place of Hrs Used column
    But this is raising Multivalue Error as I am trying to show Sum(Resultkey ) (which is a measure)as link.
    Please please do suggest me a soluiton to make this Sum(Resultkey)  as link.
    Thanks to all experts.

    As said, On Measure no one will try to make Hyperlink.
    1st time, I have seen and quite impressed, frankly speaking vishnu.
    It should show because revenue has more values.
    Tey like this:
    Sum(revenue) is there, correct??
    Edit that variable and make Qualification as Dimension instead of Measure, which will help us.
    I have lots of tasks today, so not able to concentrate on SDN posts. Try above suggested.
    Good luck.
    Oh Vishnu,
    >> First you have to create Detail report
    >> Apply prompt on any Object ( The Object should be same one on Master report on which you made Hyperlink or clicking)
    >> Run query
    >> Save report
    Now Create Master report
    For the prompt Object (Detail report one), create Hyperlink on top it.
    And in OpenDoc syntax select detail report.
    Hope it helps you.
    I'm Back

  • Two different condition types in one report

    Hello,
    i have a problem with the conditional display of a report.
    I want to use two different condition types for one report.
    For example I want to show the report only when the page is not in printer friendly mode and when the value of an item is NULL.
    Is that possible?
    Has anyone a solution for this problem?
    Thank you,
    Tim

    Tim,
    you can use
    IF V('PRINTER_FRIENDLY') = 'YES' AND :P1_ITEM IS NOT NULL THEN RETURN FALSE;
    ELSE RETURN TRUE;
    END IF;
    in the Conditional Display picking PL/SQL Function Body returning a Boolean.
    Denes Kubicek

Maybe you are looking for

  • Open Item to Non Open Item

    Experts, I need to change an Open Item Managed Account to Non Open Item Managed account. Coming to balance, yes this account has a balance. Could someone let me know what steps do i need to check before changing this and also what are the steps to ch

  • What are Business Objects in the Portal Content of Content Administration?

    Hi Friends, Can anybody tell me what are the Business Objects, which are under _Content Administration-->Portal Content_ and How are they useful? Thanks in advance, Ravi

  • Informix Bind Problem in a Zone

    we are trying to install Informix 10.0 in a Solaris Zone. As we try to start the database, we get the following error message: listener-thread: err = -25572: oserr = 8: errstr = : Network driver cannot bind a name to the port.  System error = 8. It w

  • How do you install printer profiles in Lion?

    After Installing Lion , I cannot figure out how to install new printer profiles.  Any help greatly appreciated. Thanks

  • Adding a new conditon on head via function modul?

    Hi, is there a way to add a condition to an order via function module? I mean in customizing we have maintained the calc scheme (and everything else) and assign it to the order. What we want is to add the new condition type to the head of the order v