In Drill through report pass hyperlink value as parameter to another report using ssrs 2008 R2

Hi All,
I have one drill through SSRS report in which if I click one hyperlink in the summmary report it should be passed as parameter for detail report, like this....
Summary:
AccountType
A1
A2
If I click A1 then that should be passed as parameter to detail report and display A1 data in detail report
If I click A2 then that should be passed as parameter to detail report and display A2 data in detail report.
Please give me some ideas or expression code to achieve this in using SSRS 2008R2. Its very urgent.
Thanks,
RH
sql

Thanks the folowing is my source data for the parameter I am including to the drill through
SELECT DISTINCT
case
when EA_STATUS in ('E4', 'U4', 'P5', '02', '03', '04','B2','B3','B4','12')
then CAST('Project' AS VARCHAR(15))
else CAST('Non-Project' AS VARCHAR(15))
end as EA_PROJECT_GROUP_DESC
FROM TEAMS.FMPROD_V_EA
As you can see it has only 2 values.So how do you suggest I wirte the expression to include in the report.
The name of the parameter I will be using is EAProjectGroup.but below is the error I am getting trying to run the report
rsMissingFieldInDataSet] The dataset Trends contains a definition for the Field EA_PROJECT_GROUP_DESC. This field is missing from the returned result set from the data source.
[rsErrorReadingDataSetField] The dataset Trends contains a definition for the Field EA_PROJECT_GROUP_DESC. The data extension returned an error during reading the field. There is no data for the field at position 45.
Preview complete -- 0 errors, 72 warnings
what does the position 45 mean?

Similar Messages

  • About passing multiple values in parameter for oracle report

    https://docs.google.com/file/d/0B0dx7wf68mD0QzdpbWU4UGNURTQ/edit
    Hi all,
    i want to pass multiple value using , to separate them 1,2,3....
    here is my query
    SELECT DISTINCT
    oh.header_id
    ,oh.org_id
    ,to_char(oh.ordered_date,'DD-MON-YYYY') d_date
    ,to_char(oh.ordered_date+31,'DD-MON-YYYY') d_validity
    ,oh.ship_to_org_id
    ,oh.invoice_to_org_id
    ,oh.cust_po_number d_po_num
    ,rcust.customer_id AS customer_id
    ,oh.order_number d_salesorder_no
    ,oh.cust_po_number d_project
    ,oh.attribute1 second_addr
    ,oh.attribute2 remark1
    ,oh.attribute3 remark2
    ,substr(oh.transactional_curr_code,1,3) as currency
    ,tyl.name ordertype
    ,oh.salesrep_id
    ,rat.name as d_payment_term
    ,rat.description d_payment_desc
    ,rsa.name
    ,rsa.email_address as sales_phone
    ,rcust.customer_name||' - #'||rcust.customer_number d_to_custname
    ,rcust.customer_name d_cust_sign
    ,rcust.attribute1
    ,rcust.customer_number
    -- ,raddr.ship_to_flag
    ,oh.sold_to_contact_id AS attn_id
    ,rcust.party_id
    ,tyl.name AS SO_type
    -- ,net_org.ORG_LOGO
    FROM
    oe_order_headers_all oh
    ,ra_customers rcust
    ,ra_addresses_all raddr
    ,ra_site_uses_all rsite --double_line
    ,ra_terms rat
    ,hz_party_sites hps
    ,hz_contact_points hcp
    ,ra_salesreps_all rsa
    ,oe_transaction_types_tl tyl
    -- ,apps.ar_contacts_v acv
    -- ,net_org
    WHERE oh.sold_to_org_id = rcust.customer_id
    AND oh.payment_term_id = rat.term_id(+)
    --AND        rcust.customer_id = acv.customer_id(+)
    AND oh.salesrep_id = rsa.salesrep_id
    AND oh.order_type_id = tyl.transaction_type_id
    AND rcust.party_id = raddr.party_id
    AND raddr.address_id = rsite.address_id
    AND rcust.party_id = hps.party_id
    AND hps.party_site_id = hcp.owner_table_id(+)
    AND hcp.owner_table_name(+) = 'HZ_PARTY'
    --AND        hcp.contact_point_type (+)='PHONE'
    AND tyl.LANGUAGE = userenv('LANG')
    --AND          raddr.ship_to_flag IS NULL
    AND upper(tyl.name) in ('SW SALES CONTRACT','SW-NSC SALES CONTRACT','TILES SALES CONTRACT','VBP SAMPLE ORDER', 'VBP INTERNAL ORDER')
    AND oh.order_number =:P_CONTRACT_NO
    and oh.org_id = :P_ORG_ID
    --and            net_org.org_id = :P_ORG_ID
    &CP_Param
    and after para form
    function AfterPForm return boolean is
    begin
    :CP_Param := 'where oh.order_number in ('||:P_CONTRACT_NO||')';
    return (TRUE);
    end;
    it said ora-00933 but my query can run i dont need the multiple values para, can anyone help me how to modify the report so it can pass multipel values thanks

    HI I tried changing the parameter width to a larger value, it can output , and the field where I show the order_number i used source P_CONTRACT_NO,
    it will display as 102005000,102005001 and I also tried using the column from the query directly, it will be separated , it has some other problem
    I have the header part and main part,
    and also there are page numbering, with the order number field set as order_number it will output single number , but the page order is wrong
    102005000,102005001 will be like header page: 102005000 1/4 102005001 2/4, main page 102005000 3/4, 102005001 3/4
    DO you have any idea how I can set the page numbering setting so it will output as header page:102005000 1/2 102005000 2/2
    header page:102005001 1/2 102005001 2/2
    ?? thanks

  • 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 can i pass the value one from to another form?

    hi all
    how can i pass the value one from to another form  with out use it when ever i want to needed this value that ican useit?
    like i have two fields U_test1 and U_test2  table name @AUSR
    that i have  four form  A! , A2,A3,A4    please tell me in details....?

    Hi,
    U can assign the values to some variables and access then in ur required forms.
    Vasu Natari.

  • Issues passing drillthrough parameters from a multi-level tablix in SSRS 2008 R2

    Hello,
    I am really struggling with trying creating a drillthrough report that starts with a matrix (tablix)  and passing those  parameters. I am using SSRS 2008 R2.
    Here's my scenario:
    I have a matrix that has mulitple levels where you can drill down. Here an example with all the levels open:  
    Active
    Term
    Leave
    Total
    128
    88
    121
    United States
    110
    80
    85
    New York
    65
    30
    57
    Manhattan
    10
    6
    9
    Buffalo
    20
    23
    4
    Albany
    35
    1
    44
    Texas
    45
    50
    28
    Dallas
    40
    30
    22
    Houston
    5
    20
    6
    France
    18
    8
    36
    Centre
    18
    8
    36
    Blois
    7
    2
    8
    Druex
    6
    1
    15
    Tours
    5
    5
    13
    I want to drillthrough to another report - Detail Report. As I understand it, I would click the 65 for New York and I would see the detail for the 65 Active people. If I click the 2 under Blois, I would see the 2 terminated people in Blois. My understanding
    for this to work, the Detail Report would need a a parameter for each of the level possibilities in the matrix that I could click: Country, State, City as well as the Status (Active, Term, Leave).
    While I understand about passing parameters, what I don't understand is how to pass the parameters if they are blank. Let's say I clicked 65 for New York, I would need to pass State = New York  Status = Active. But the remaining parameters (Country
    and City  would be null). I know Country doesn't need to be Null in this case.
    My Detail Report has the parameters defaulted to Null, but whether I put the parameters in a Filter for the dataset or in the query itself, I cannot get it to ignore the Nulls.
    As a crazy work-around (I think) I can put in the Where of the query  something along the lines of: this:
            and (a.Country in (@paramCountryCode) or NULL  in (@paramCountryCode) )
    and I would need to do that for each parameter. Usually I have to use 'ALL' instead of NULL, I'm note sure why.
    Additionally, in the Report Action of the Main Report, I need to pass those parameters for each level and their Status. I am also not clear whether or not I need to put in all the parameters on each of the levels (Country, State, City) of the matrix. And if
    I do, do I need to make the expressions an IIF statement stating whether or not they are In Scope?
    All the examples I was able to find, only showed one or maybe two parameters being passed. Doing the way I am trying, seems convoluted, error-prone and tedious. I really hope that I am wrong.
    Is there a better way to approach drilltrough reports from a matrix when there are multiple levels?
    Thank you for the help.
    ~J

    Hi Jenna_Fire,
    According to your description, you have a matrix contains total for each group on each level. Now your requirement is, when you click on any number (data field or total), it will go to the detail report which returns all the detail information of the people
    within the group scope. For example, if you click on the total of Active users in United States, it will return the detail information of Active users in New York and Texas. Right?
    In this scenario, we should set the parameter (@Country, @State, @City) allow multiple values in both main and detail report. And in Default Value (@Country, @State, @City), query out all distinct values. In the textbox which contains
    those total values, when set use these parameters to run the report, we only need to pass the parameters of parent groups. For example, if we click on the total of Active users in New York, we only need to pass Country, State, Status to detail report, and
    in the detail report, the City parameter will use all distinct values (Default Values) because we don't pass the City parameter. We have tested this case with sample data in our local environment. Here are steps and screenshots for your reference:
    1. Create parameter Country, State, City and Status in both main report and detail report. Set both Available Value and Default Value get values from query (Create a dataset for each parameter, use "select distinct [column] from [table]" as query). Set allow
    multiple values for parameter Country, State and City in both reports.
    2. In corresponding textbox, pass appropriate parameters in go to report Action.
    4. Filter data in detail report (in where clause or using filters).
    5. Save and preview. It looks like below:
    Reference:
    Using Parameters to Connect to Other Reports
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • How to Update the oracle toad column value in table by using SSRS 2008

    Hi Team,
    How to update the oracle DB table column value by using SSRS 2008.
    Can any one help me on this.
    Thanks,
    Manasa.
    Thank You, Manasa.V

    Hi veerapaneni,
    According to your description, you want to use SSRS to update data in database table. Right?
    Though Reporting Services is mostly used for rendering data, your requirement is still can be achieved technically. You need to create a really complicated stored procedure. Pass insert/delete/update and the columns we need to insert/delete/update as
    parameters into the stored procedure. When we click "View Report", the stored procedure will execute so that we can execute insert/delete/update inside of the stored procedure. Please take a reference to two related articles below:
    Update Tables with Reporting Services – T-SQL Tuesday #005
    SQL Server: Using SQL Server Reporting Services to Manage Data
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • 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

  • How to pass multiple values from master to child report

    Hello,
    How would I pass multiple prompts from the master to child report? So for example, say I want to pass a 'Country' value along with a 'City' value
    Would it be?
    ="<a href=\"../../opendoc/openDocument.jsp?iDocID=ASQlgCemIOlEid1HHUlzyPs&sDocName=DocTest&sIDType=CUID&sType=wid&sWindow=Same&lsSCountry="+[Country]+"&lsSCity="+[City]+"\</a>"
    Thanks,
    Carter

    Carter,
    what is the syntax for this?
    It is exactly how you have posted in your original note.
    "&lsSCountry="+[Country]+"&lsSCity="[City]
    This will work providing the target report has a prompt called "Country" and another prompt called "City".  Note that your prompt and what you pass between the &lsS and the equal (=) must match exactly, otherwise OpenDocument will not communicate the prompt title to InfoView properly and InfoView will stop and execute the prompt to get the info it needs before running the report.  Have you tried what you've posted originally to see if it executes without a problem?
    Thanks,
    John

  • 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

  • Reports - Passing checkbox values and conditional column visibility

    Although I've been using Oracle databases for many years, I've to admit I'm rather new to APEX. I'm building a first prototype project to convince our project leaders and managers of the usefulness of the product for future projects (as for visual Database interfaces where the accent is on forms and reporting, it will often be faster and less expensive to build an APEX application instead of a full blown Java or C# webapp).
    I'm however encountering some problems.
    Let me start with a quick description. I've the following parent/child structures:
    Provinces > Cities > Intersections > Loops > Loop Detections.
    I basically want to make a report on the loop detections. Now, considering we'll have many thousands of detections a day, I made kind of a drilldown structure. You first choose your province, then the city, then the intersection and finally the loop. I didn't use lists to make the selection. Instead I made a (classic) report for each part as this allows me to give detailed information for each part. In each report, I made a link on the identifier. For example, when I select a province (by clicking on the link), I pass the province identifier to the cities report and use it in the query to limit my report to those cities for the given province. I repeat these step for the different parts, which in the end, gives me the loop detections for the selected loop. The good news is all this works fine. The person who'll be using this application however made a suggestion and asked if it would not be possible to select different loops and as such get the detections for several loops (the rest of the application stays the same). This however means I cannot use the column link anymore. Now, I was thinking in the direction of a checkbox. The column link is still there, but the user would also have the possibility to select several items in the report. I managad to add a checkbox to the report, linked to the loop identifier column. That's not exactly difficult. I cannot figure out however, how I can pass the selected identifiers to the next report (detections for the selected loops) and use it in the underlaying query of this report. The problem is, I don't know how to pass the checked values to the next page and how to use these values in the report query of that page. I suppose this must be possible, but I couldn't figure out how. I tried playing around with APEX_APPLICATION.G_Fxx and such. Remember I'm a newbie and this seems to fall under more advanced features.
    I've uploaded images of the 2 concerning report pages for illustration:
    http://img96.imageshack.us/img96/1497/apex01.jpg
    http://img140.imageshack.us/img140/9868/apex02.jpg
    A second point that's bothering me is the following. In the loop detection report I show a colum link (I picked an icon instead of the column value) for each row. I also have a column that shows the number of detections for the given loop (and day). Now, for some loops, there are no detections for that given day. As such, there's no point in selecting this loop, as the result will be an empty report. However, I still want to show the loop in the loop selection report, as it's still present (it's not as if it suddenly disappeared). Sure, no big problem and most users probably have sufficient intelligence to figure this out. However, it would be nice if I could make the icon (colum link) visible only for those loops that have detections, or in other words, for those records where number_of_detections (underlaying column COUNT) is greater than 0. I couldn't figure out a way to do this either. The Conditional Display option for a column didn't really offer me a solution here.
    Before I forget, I'm using APEX 4.0.1 on an Oracle XE database.
    Any tips or suggestions would be welcome! :)
    Thanks.
    Erwin

    Hi,
    You mean something like in this sample
    https://apex.oracle.com/pls/otn/f?p=40323:55
    You can store checked values to collection and use it then in another report where clause
    See e.g. this post for how you can store checked rows to collection
    Re: Need help with APEX_Collection
    In sample DEPT report query is
    SELECT
      CASE WHEN EXISTS(SELECT 1 FROM emp e WHERE e.deptno = d.deptno) THEN
        APEX_ITEM.CHECKBOX(1,c.c002,'onclick="saveDeptChk(this,'||c.seq_id||')"','true')
      END AS row_selector,
      c.c002 AS checked,
      d.DEPTNO,
      d.DNAME,
      d.LOC
    FROM dept d,
      apex_collections c
    WHERE c.collection_name = 'DEPT_CHK_COLLECTION'
      AND d.deptno = c.c001And EMP report
    SELECT e.EMPNO,
      e.ENAME,
      e.JOB,
      e.MGR,
      e.HIREDATE,
      e.SAL,
      e.COMM,
      e.DEPTNO
    FROM emp e,
      apex_collections c
    WHERE c.collection_name = 'DEPT_CHK_COLLECTION'
      AND c.c002 = 'true'
      AND e.deptno = c.c001Regards,
    Jari

  • Pass al values of field - go to report

    Hello, I need to pass all values of a field inestead of First or Last in Action.
    I have the parent report with no paramenters. I have enbled a text box to go to other report that acepts parameters. However I can only pass the First or Last value. How I can pass all values?
    For example, I have got this table. The names of computers of server. If we click on blue number (CountDisntinct) we go to other report.
    If I execute the report we have got this:
    If I click on number 3 I need to pass the three names to other report which show more details about these Computers. If I click on128
    I need to pass 128 names of computers. How I can pass these names?
    Thanks!

    Ok, thanks! And is it possible to pass all values of a field? I have this problem in this report.
    If I click ontotal of server(For example
    6) I only pass Server but If I click on Name (for example
    1 or
    5) I need to pass Server and Item. If I do this it fails because can not pass diferents elemts to other report.
    How I can pass these names of computers? Is there solution?
    Thanks!

  • Passing the values from the graph when we use Navigate to the BI Content

    Hi,
    The following are the problems which we are facing when navigating to the other BI report.
    1)When using the “Navigate to BI content” action the values are not getting passed to the detail report from the graph. Is there any limitation or any alternative to make it work?
    When I click on the Bar graph I need to pass the corresponding period and the dimension (EX: Operating Unit – Vision Services R+D) to the detail report.
    2)I have tried using the “Navigate to Web page” action. I am able to pass the values but the page is getting opened in another window. I want that page to be opened in the same window so that my presentation variable values are not lost.
    3)When I click on the bar graph, I am able to pass the values period and operating unit. But my presentation variable values are lost. I want to retain them.
    Please help me out in achieving this scenario.
    Thanks,
    Chaithanya

    Hi,
    In the column properties give the navigation to other reports from the interaction tab and make a chart with the column and in the dashboard -->edit dashboard-->in the section where the report is placed--->give 'drill in place'.
    Regards
    MuRam
    NOTE: Please mention if this resolved your problem/still facing and close the thread.

  • SSRS How to pass subtotal value in matrix into another table just for display?

    Hi all,
    I have two matrix with subtotal for two grouping. I need to pass the value of this two group subtotal into another matrix table to display and perform simple calculation to get the differences.
    How can I pass the subtotal amount into the other matrix?
    In Crystal report I can define two variable where i can set the total to the value and call the two variable anywhere in the same report. But how can I do it in SSRS?
    Appreciate can help
    Thank you

    Yes, basically both are same grouping, i just want to capture the subtotal for comparision with scenario 2.
    I can do it in SQL, but if possible, I hope to do it in report. Thank you
    Simulation as below
    Matrix for scenario 1
    Group 1
    Detail 
    Detail 
    Subtotal Group 1
    9999
    group  2
    Detail 
    Detail 
    SubTotal Group 2
    8888
    Matrix for scenario 2
    Group 1
     Scenario2 
    Scenario 1
    Differences
    Detail 
    Detail 
    Subtotal Group 1
    2000
    9999
    2000-9999
    group  2
    Detail 
    Detail 
    SubTotal Group 2
    3000
    8888
    3000-8888

  • How to pass multi-value input parameter to SQL command

    I'm having trouble following the threads related to passing multi-value parameters to a SQL command.
    I need more details on the work-around that exists for using a dummy main report to GET the input parameters and pass them to a subreport parameter that uses the input parameters in its sql command WHERE clause.
    So far the main report prompts user to enter badge numbers into a multi-value string type parameter field called badgeNumber.
    The main report getRequesters command executes the following SQL:
    SELECT requester FROM lawprod.requester WHERE lawprod.requester.requester IN  '{?badgeNumber}'
    order by requester
    The main report also contains a formula called requesterList that concatenates the input parameters and separates the values with commas:  (Join ({?badgeNumber}, ", ")  
    So if user enters badge numbers 1 and 2 and 3 the value of requesterList is 1, 2, 3
    From the main report I've used the Insert Subreport command to choose an existing report, and used the link tab to link @requesterList to ?requester; where ?requester is a multi-value parameter that is used in the subreport's SQL query as shown below:
    WHERE (lawprod.ictrans.update_date <=  {?endDate} AND
           lawprod.ictrans.update_date >= {?startDate} AND
           lawprod.ictrans.doc_type = 'IS' AND
           lawprod.ictrans.system_cd = 'RQ' AND
           lawprod.mmdist.posting_type = 'O1')
          AND
          (lawprod.ictrans.company = lawprod.mmdist.company AND 
           lawprod.ictrans.system_cd = lawprod.mmdist.system_cd AND
           lawprod.ictrans.location = lawprod.mmdist.location AND
           lawprod.ictrans.doc_type = lawprod.mmdist.doc_type AND
           lawprod.ictrans.document = lawprod.mmdist.doc_number AND
           lawprod.ictrans.shipment_nbr = lawprod.mmdist.doc_nbr_num AND
           lawprod.ictrans.line_nbr = lawprod.mmdist.line_nbr AND
           lawprod.ictrans.component_seq = lawprod.mmdist.component_seq)
          AND
          (lawprod.ictrans.company = lawprod.reqline.company AND 
           lawprod.ictrans.document = lawprod.reqline.req_number_a AND
           lawprod.ictrans.line_nbr = lawprod.reqline.line_nbr AND
           lawprod.reqline.company = lawprod.reqheader.company AND
           lawprod.reqline.req_number = lawprod.reqheader.req_number)
           AND
           (lawprod.reqheader.requester in '{?requester}')
    Following execution of the main report, Crystal appears to prompt for three values as expected: badge numbers for the main report, and start and end dates needed by the subreport.   I can't figure out why Crystal XI returns no data. Can anyone explain what I'm missing?
    Edited by: Patricia Sims on Sep 21, 2009 9:30 PM

    The reason no data is returned is that the multiple values are not (properly?) passed to the main report's SQL.  The main report's SQL should be (MS SQL):
    select 1 as dummy
    This causes exactly one record to be returned, which will basically be ignored (except the fact that it will drive the subreport; any query that returns only 1 record will suffice...).
    Change the concatenation of the selected values to be (basic syntax):
    formula = "|" + join({?badgeNumber}, "|") + "|"
    The leading and trailing vertical bars are important (otherwise a database value of 1 might match a selection of 123).
    Pass the concatenated string as the parameter value to the subreport.  In your subreport, select records on (basic syntax):
    formula = (instr({?sr-badgeParam}, "|"+cstr({requester},"0") + "|") > 0)
    (assumes is numeric in the database, and is integer; modify or eliminate cstr() if otherwise...)
    Put your subreport on the detail format of the main report, and you're all set...
    HTH,
    Carl

  • Pass a value to a form to be used as a label/readonly

    I have a link between a report and an update form. I want to pass the value of a report column to the form to be used as a label. The report column does not exist in the table that the form is based on. How can I do this? I added an item to the form, but that item does not show up in the link details for assignment of a value. Is this a refresh problem?

    How do I get the value (VAC_ID) to the form from the link? When you edit the link you can assign column values to the parameters. How can I get the parameter (VAC_ID) to show up as a parameter when it is not in the record?

Maybe you are looking for