Help Creating A Link In An IR Report Passing The Value From A Different Col

Version 4.0.2.00.07
Hello,
I have an Interactive Report with a column that I need to create a link on but I need to pass the value of another column.
This report shows the Features of a particular Release. There is a select list for the Release that is selected and executes the report.
There is a column that indicates whether the Feature has a Commitment attached to it. If there is have that a link to another report that shows all the Commitments for that Feature by passing the FEATURE_ID which is also a column on the Feature report.
Query:
SELECT
      ,CASE WHEN ft.feature_id IN (SELECT cc.feature_id
                                   FROM customer_commitments cc
                                   WHERE ft.feature_id = cc.feature_id
                                  ) THEN 'Yes' ELSE 'No'
       END "Commitment Exists"
          ,ft.feature_id
FROM ....If "Commitment Exists" has a 'Yes', the 'Yes' is a link that will pass the FEATURE_ID to another report that will show the Commitments for that Feature. If the "Commitment Exists" has a 'No' then no link.
I was also wondering if the Commitment report could open in a seperate window and make it modal?
I hope this is clear and someone could help me.
Please let me know if it's not clear or more information is needed.
Thanks,
Joe

To accomplish this I would build the link as part of the value. So if Yes the Yes itself would be a link, if No is simply text as today.
It would look something like this:
SELECT
      ,CASE WHEN ft.feature_id IN (SELECT cc.feature_id
                                   FROM customer_commitments cc
                                   WHERE ft.feature_id = cc.feature_id
       THEN
        '<a href="f?p=&APP_ID.:NEW_PAGE:&SESSION.::::Pn_FEATURE_ID:' || ft.feature_id || '">Yes</a>'
       ELSE
        'No'
       END "Commitment Exists"
          ,ft.feature_id
FROM ....One problem with this approach is when you export the report (as a CSV for example). There are a few ways to handle this, one is to simply duplicate the column with clear text yes and no and set this column to be included on export and only visible on export. The other column, with the link, set it to no export.
The other option is to add another condition on the REQUEST value.
SELECT
      ,CASE WHEN ft.feature_id IN (SELECT cc.feature_id
                                   FROM customer_commitments cc
                                   WHERE ft.feature_id = cc.feature_id
       THEN
              decode(:REQUEST, 'CSV', 'Yes'
            , '<a href="f?p=&APP_ID.:NEW_PAGE:&SESSION.::::Pn_FEATURE_ID:' || ft.feature_id || '">Yes</a>'
       ELSE
        'No'
       END "Commitment Exists"
          ,ft.feature_id
FROM ....It seems that the link itself is getting replaced with a #. The link would look something like this:
'f?p=&APP_ID.:NEW_PAGE:&SESSION.::::Pn_FEATURE_ID:' || ft.feature_id
Hope this helps.
Oh and of course, in order for the link to display you need to change the Display Type to "Standard Report Column" otherwise the HTML will be escaped.
Thanks
-Jorge

Similar Messages

  • Passing the values from subreport to master report in JasperReports

    Hi All,
    I want to pass the values from subreport to master report, but my subreport is without any query.
    Please help me in this regard. its urgent.
    Thanks & Regards
    Kris

    Hi,
    Below link may help you
    http://jasperreports.sourceforge.net/tips.tricks.html#returnvalues
    regards
    MJ

  • How to pass the value from Sub report to main report

    I have un report(mainreport) within a subreport(subreport).
    With reporting services, how to pass the value from Sub report to main report?
    thanks

    Hi Alebet,
    With reporting services to pass values from sub report in to main report is not supported directly.
    But there are some workarounds through which you can get this .
    There are two ways to get this.
    1- Put your sub report query into some table. i mean to say through the subreport query get some temporary table.
    2- Using this temporary tables data write some Scala function in the data base.
    3- Now in your main report query return this scala function as a column.
    4- Extract the column value where ever you want in your main report which is getting calculated from the subreport query. so you will be getting the values returned from the subreport in the main report.
    This will definitely work fine as i have done some report in this way.
    Another way of doing is that
    1- prepare another data set with the same query as in sub report in the data tab.
    2- then refer this 2nd dataset in your main report .
    But better way will be the top one.
    Anyway please let me know if you get the solution.
    Thanks
    Mahasweta

  • How to create a dropdown list to list the values from two different tables?

    Hi,
    I have the following requirement:
    1. I have to create a dropdown list to display all the values from the second column of  a table.
    2. Another dropdown list to display all the values from the second column of another table.
    3. A text box should help me to add the selected values.
    How to get this done in a PDF? Please help.
    Regards,
    Latha

    Is this a LC form? Because Acrobat forms have no concept of tables, just
    individual fields...

  • Unable to pass the values from one report to another using navigation links

    Hi All,
    I am facing a strange issue where I have to pass a column value from one report to other.
    I have kept navigation link in the 1st report and 'is prompted' option in the 2nd report
    Issue was , I'm not getting the filtered result in the 2nd report (all the records are being displayed)
    Can anyone advice where I was going wrong
    Thank you,
    AO

    Hi,
    The column which you have given navigation link and 'is prompted' column should same and exist in both the reports.You have to give the guided navigation in the value interaction of the column in the report1.
    mark if helpful/correct.........
    thanks,
    prasanna

  • Passing the values from one selection screen to another report

    Hi all,
    This is my requirement...
    I need to hav a selection screen with various input parameter along with 3 radio buttons...
    If i enter the values and select say first radiobutton the corresponding called program needs to be executed .
    NOTE :
    1)The called program selection screen needs to be skipped
    2) the values entered in the calling program needs to be passed to the called program and the output of the called program needs to be displayed.
    3)the selection screen is the same for both calling and called program
    Can anyone plz help in this regard?
    Regards,
    Gowri Shankar

    Hi...
    Use the statement
    <b>SUBMIT zps_called_report WITH SELECTION-TABLE seltab.</b>
    see the following link....
    <b>http://help.sap.com/saphelp_nw04s/helpdata/en/9f/dba51a35c111d1829f0000e829fbfe/frameset.htm</b>
    Hope it helps you...
    Let me know if u have any more doubt...
    Reward points if useful......
    Suresh.......

  • How to pass the value from sub report to sub report

    how i want get one value from sub report to sub report..
    can i do this one...
    how can get the value.
    i know main report to sub report
    i tried that way but
    value is  0.00 is comming
    Any reasons.

    Hi Try this.
    Create a formula like this in subreport1 (from the report where you want to pass your value)
    Whileprintingrecrods;
    Shared Numbervar x :={subreport1Value};
    Then go to 2nd sub report and Create a formula like this
    Whileprintingrecrods;
    Shared Numbervar x ;
    Note :Your sub report1 should execute before sub report2 .That means sub report1 should be in the above section of sub report2

  • Please help..it's Urgent..How to fetch the value from table row from Page

    Hi,
    I have created a table with 2 LOV's , LOV2 is dependent on LOV2.
    Here I can not use the general Dependent LOV concept, as these values are coming from 2 different LookUps.
    I am not able to fetch the user input for LOV1 (from page) .that is why not able to set the where cluse fro 2nd LOVVO.
    I have used this code:
    if ("ViolationCat".equals(lovInputSourceId)) {
    OAMessageLovInputBean msglov =
    (OAMessageLovInputBean)webBean.findChildRecursive("ViolationCat");
    // String p_violation_category = "'"+(String)msglov.getValue(pageContext)+"'";
    String p_violation_category =
    (String)msglov.getValue(pageContext);
    // System.out.println(" p_violation_category =" +
    // p_violation_category);
    String v_violation_category = "";
    //System.out.println("vcat=" + vCat);
    OAViewObject violationVO =
    (OAViewObject)am.findViewObject("SNI_Violation_DtlsVO2");
    Number vcatViolationIdnum =
    (Number)violationVO.getCurrentRow().getAttribute("ViolationId");
    String vcatViolationId = "" + vcatViolationIdnum;
    pageContext.putTransactionValue("vcatViolationId",
    vcatViolationId);
    pageContext.putTransactionValue("p_violation_category",
    p_violation_category);
    String query =
    " SELECT LOOKUP_CODE, \n" + " MEANING, \n" +
    " LOOKUP_TYPE \n" +
    " FROM apps.fnd_lookup_values \n" +
    " WHERE LOOKUP_TYPE ='SNI_VIOLATION_CATEGORY' AND MEANING=?";
    PreparedStatement ps = txn.createPreparedStatement(query, 1);
    try {
    ps.setString(1, p_violation_category);
    ResultSet rs = ps.executeQuery();
    //System.out.println("before while,");
    // rs.next();
    // v_violation_category = rs.getString("LOOKUP_CODE");
    // System.out.println("v_violation_category="+v_violation_category);
    while (rs.next()) {
    //System.out.println("inside while");
    v_violation_category = rs.getString("LOOKUP_CODE");
    // System.out.println("v_violation_category=" +
    // v_violation_category);
    ps.close();
    } //try ends
    catch (Exception e) {
    e.getMessage();
    //System.out.println("in catch.." + e.getMessage());
    OAViewObject subCatVO =
    (OAViewObject)am.findViewObject("SNI_ViolationSubCategoryVO1");
    //System.out.println("get VO before where clause: subCatVO::"+subCatVO.getQuery());
    subCatVO.setWhereClause("LOOKUP_TYPE like '%SNI_VIOL_SUB_CAT_" +
    v_violation_category + "'");
    System.out.println("after set where clause VO: subCat VO::" +
    subCatVO.getQuery());
    subCatVO.executeQuery();
    // System.out.println("query of subCat VO::" +
    // subCatVO.getQuery());
    //End of sub category Validation
    It is working fine only for the 1st row of teh table.
    I have tried to fetch the value using :
    String violationCategory = (String)violationVO.getCurrentRow().getAttribute("ViolationCategory");
    String violationSubcategory = (String)violationVO.getCurrentRow().getAttribute("ViolationSubcategory");
    But it is fetching null value.
    Please tell me how can I able to fetch the values.

    Hi
    in your scenarion,first u have to identify the particular row of table where the changes is being made ,u have to use this code .when u select the lov ,first it will give the row refernce and then u have to catch the lov event
    OAApplicationModule am =
    (OAApplicationModule)pageContext.getApplicationModule(webBean);
    String event = pageContext.getParameter("event");
    if ("<ItemPPREventName>").equals(event))
    // Get the identifier of the PPR event source row
    String rowReference =
    262
    pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    Serializable[] parameters = { rowReference };
    // Pass the rowReference to a "handler" method in the application module.
    am.invokeMethod("<handleSomeEvent>", parameters);
    In your application module's "handler" method, add the following code to access the source row:
    OARow row = (OARow)findRowByRef(rowReference);
    if (row != null)
    thanx
    Pratap

  • How would I create a link to download an image to the harddrive from within edge?

    I'm using this code in an on-click event currently, but it just opens the image in a new page, it doesn't download the file to the user's computer.
    window.open("URL HERE", "download", "_blank");
    I also tried using this code on a text-box, but it didn't do anything. i'm sure it's missing some on-click thing, but i'm not sure how to phrase that.
    sym.$("Text4").html("<a href='URL HERE' download>");
    thanks!

    Here is the sample.
    download image.zip - Box

  • Passing the values from BI Publisher report to Bi Answers

    Hi Gurus,
    Our Customer needs a report in particular format. So i had used the Bi publisher to create and I have uploaded template and all works fine. Now he wants to get the details of particular column. So i what I had done was that in template builder for that Particular column I added an hyperlink. The link for the answers open up, which is obvious and we get the entire data. But when the User Clicks on particular CBN Number in Publisher report it fetch him the details of that CBN Number only.
    http://xxxxxxxxxxxxx:9704/analytics/saw.dll?Go&Path=/Shared/ILR/Mr1&Action=Navigate&P0=1&P1=eq&P2=ABC_Dim.CBN_NBR.
    Can I achieve the filtered Answer prompted by BI Publisher?
    Thanks in Advance.
    MCP

    Hi...
    Use the statement
    <b>SUBMIT zps_called_report WITH SELECTION-TABLE seltab.</b>
    see the following link....
    <b>http://help.sap.com/saphelp_nw04s/helpdata/en/9f/dba51a35c111d1829f0000e829fbfe/frameset.htm</b>
    Hope it helps you...
    Let me know if u have any more doubt...
    Reward points if useful......
    Suresh.......

  • How to pass all values from one node element to created node element?

    Hi
    I have model node element under which there are 7 values, and I've created value node element and trying to pass the values from the model node Element to this value node element. But instead of passing all the values its listing only one value.
    How do we rectify this problem!!!
    Thanks in Advance
    Srikant

    Hi Anil
    I've created the node named: TableNode
    and the name of the node from which i want to get the data is : Li_Required_Node
    the Node Structure is
    Context
      |_ Zs_Quantity_Input
         |_Output
           |_Node_Required_Node
              |_Schddt
      |_TableNode
        |_CmpDate
    The Schddt has some 7 values
    The code Snippet is as follows:
    IPublicPricesComp.ITableNodeElement nodeElement;
    IPublicPricesComp.ILi_Required_NodeElement scheduleElement;
    int counter3Max = wdContext.ILi_Required_Node().size();
    for( int counter3= 0 ; counter3 < counter3Max ;counter3++ )
    nodeElement = wdContext.createTableNodeElement();
                             scheduleElement = wdContext.nodeZs_Quantity_Input().nodeOutput_Contract_Qty().nodeLi_Required_Node().getLi_Required_NodeElementAt(counter3);
    nodeElement.setCmpDate(scheduleElement.getSchddt());
    wdContext.nodeTableNode().addElement(nodeElement);               
    On writing the above code and then binding the node to a table column only one value getting displayed
    Where can be the error?
    Thanks in Advance
    Srikant

  • How to Create a Linked Subreport in Crystal Report for Enterprise

    Hi All
    I am developing a monthly report grouped by cost centre, I want to create a second table for each cost centre showing year to date, underneath the monthly data for that cost centre.  My thoughts on how to achieve this is to create a linked subreport in the group footer of the cost centre grouping.  However every time I try to set this up the report crashes.  Am I doing something wrong, can this be done in crystal reports for enterprise?  Can anyone give me a pointer on how to set up a linked subreport so that it passes the particular cost centre the report is grouped upon into the subreport so it only shows data relevant to that cost centre?
    Any help will be appreciated as I am going in circles at the moment.
    Thanks
    Neil
    Edited by: SmiddyLad on Feb 6, 2012 2:49 AM

    Hi Neil,
    You are doing right. You can create linked subreport in crystal report for enterprise.  Please refer below link to see the elearning tutorial  in which a simiar scenario is explained step by step. Here its an unlinked subreport. Enable subreport filter to make it linked and try. It should work.
    [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/200c56fc-5a02-2e10-36a1-ba3d28e31fc2]
    Hope it helps you.
    Regards,
    Nikhil Joy

  • Create a Link to another (custom) Report

    Hi guys,
    I'm back again as I'm stuck with trying to create a link between two custom reports.
    I'll make it simple, this is the current result when I run the main custom report:
    This is its query (I removed all the exlusions to make it short):
    SELECT distinct ARPDisplayName0, Count(rsv.ResourceID) AS 'Count' , Publisher0
    FROM v_R_System_Valid rsv
    LEFT JOIN v_FullCollectionMembership fcm on fcm.ResourceID=rsv.ResourceID
    LEFT JOIN v_GS_INSTALLED_SOFTWARE arp on arp.ResourceID=rsv.ResourceID
    WHERE fcm.CollectionID = @CollectionID
    --- List of Software ---
    and (
    ARPDisplayName0 LIKE '%Access%'
    or ARPDisplayName0 LIKE '%office%'
    --- Run the query only on any vendor which includes the word Microsoft ---
    and Publisher0 LIKE '%Microsoft%'
    --- Exclude/Include any hostnames which contains the following ---
    and (rsv.Netbios_Name0 NOT LIKE '%STC%')
    GROUP BY ARPDisplayName0, Publisher0
    ORDER BY count desc, Publisher0
    Now, I'd like to click on the Software name and run this query against it:
    SELECT Netbios_Name0
    FROM v_R_System_Valid rsv
    LEFT JOIN v_FullCollectionMembership fcm on fcm.ResourceID=rsv.ResourceID
    LEFT JOIN v_GS_INSTALLED_SOFTWARE arp on arp.ResourceID=rsv.ResourceID
    WHERE ARPDisplayName0 LIKE 'Microsoft Visual Studio 2005'
    GROUP BY Netbios_Name0
    ORDER BY Netbios_Name0
    Where "Microsoft Visual Studio 2005" is going to be the variable passed once clicked on it. The above will return a list of hostnames where that software is installed to.
    I appreciate any help. Thanks :)

    Can you also explain me the alias part aside please? Thanks a lot.
    Using your Query above. Notice the Count(rsv.ResourceID) statement.
    rsv is an alias for v_R_System_Valid
    Each column should have an alias. so ARPDisplayName0 should be arp.ARPDisplayName0, etc. This will prevent conflicts between the various views and ensure that you get the right data returned.
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • Linking reports passing prompt values to detail report ?

    Hi,
    I am building a linked report in webintelligence on SAP universe which has prompts coming from BI variables.In the master report i have created a hyperlink column so that if user can select the hyperlink for each row.now if i select the hyperlink it should take me to the detail report by passing the prompt values.i want to pass the values to the prompts build in BI varaible.
    eg: master report
    Country  Product  Rev  City
    now here i want to select city and open the detail report by passing city values. i need the formula for the hyperlink  city. City is just a prompt in master report it is not object in my report.
    Thanks,

    Hi Try this code
    ="<a href='http://l1280:8080/businessobjects/enterprise115/desktoplaunch/opendoc/openDocument.jsp?&sDocName=Account&sType=wid&iDocID=5311&lsSAccountType="+[Account Type]+"'>"+[Account Type]+"</a>"
    Regards
    Prashant

  • Facing problem while creating a report on the value of a UDM in oem gc

    Hi,
    I have created a report in OEM grid control. I have selected a host for this. And I have selected an UDM from the metric list. The report works fine shows the correct graph in the report.
    The problem is that along with the value from the respective udm , I am also getting the values from other metrics.
    Between, I also noticed that the metric I selected is not highlighted when visited next time to the report edit page. I guess this could be the cause but dont know how to fix it. May be I am wrong, If any other issues or suggestions to my problem , Please Advise.
    Thanks in advance.

    It is 10.2.0.5. I guess it is a bug but where to check for confirmation.
    Thanks.
    Edited by: Kuldip on Jul 22, 2010 11:15 PM

Maybe you are looking for