Need to supress main report based on shared value comes from subreport

Hi,
I have a database that is used in both main report and subreport. On main report I have column a,b ,c, d,e,f to display in detail section, the subreport (column c, g,h etc) is also displayed on detail section, the link between main report and subreport is column a,b and a formula based on the value of c. So the link is within one database, some records link with other records  and display both matching records on one line(especially column c shows one value in main report and another value in subreport). That's why I need subreport and I can display the report correctly.
Here is my question: if one record in main report couldn't find a match in subreport (subreport is blank), then I would like to show this record; if one record in main report does find a match in subreport, I don't want it to show(need to be supressed). I can define a shared variable to flag whether the subreport is blank or not, but this shared variable has to be placed under the section of subreport in main report and I don't know how to supress the upper detail section with subreport in it.
Any help would be appreciated!
Helen

Hi
In this case you need to insert the same sub report twise.
Example :
Detail a--Insert the sub report and go in sub report suppress all sections and using shared variables bring the value to main report.
Detail b -- based on detail a sub report suppress the main report records
Detail c-- Your actual sub report will display the values.
Note : use the same links for your detail 'a' sub report which you are using for detail 'c' sub report.
Thanks,
Sastry

Similar Messages

  • Select in (select ...) (select main report based on child records)

    I have a Crystal Report XI rel 2 report but I need to narrow the search of the main report based on records in the child table.<br /><br />I have 3-tables and one report w/ a subreport.<br />The tables are locations, crashes, and vehicles.  The main report has the tables locations and crashes and the subreport has vehicles (one crash has 1 to n vehicles)<br /><br />How do I select records in the main report based on the child (see below SQL stmt.)<br />SELECT locations.county, locations.state, crashes.numpeople, crashes.time FROM locations,crashes<br />WHERE crashes.cid IN (SELECT cid FROM vehicles WHERE vehicles.vehicletype = &#39;Trailer&#39;);<br />

    Hi,
    Â You can use common shared variables to share data between a sub report and the main report.
    What Kathryn has suggested is correct but you must make sure that the sub report is run first and then the main report is executed.
    Â Hope this helps
    Â Cheers
    Â Sam

  • Is it possible to suppress the Page Header of the Main Report based on the Section Name?

    Hi,
    I am fairly new to Crystal Reports XI.  Is it possible to suppress the Page Header of the Main Report based on the Section Name?  Thanks.

    In the section expert you can enter a formula on the suppress function.
    You just need something to check against if it is section name you say
    {section name} ="Suppressme"
    I have used it more in drill level to display headers based on how far you have drilled into a report.
    Hope this helps
    Eric
    Via Christi Health System

  • Calling multiple sub-reports based on the values in a column in the main report

    All,
    Say, I have a main report with 4 parameters and 8 columns in it's tablix, there is 1 column in this main report that can have 3 values, say A,B,C. If the user clicks on "A", he will be directed to Subreport A, clicks on "B", he will be
    directed to Subreport B and if he clicks on "C", then he'll be taken to Subreport C. All works fine when I call subreport A and B from that column, because both of them have the 4 parameters that we can map back to the parameters of the main report
    in the "Go To Report" section.
    Now, for Subreport C, I'll need to map all those 4 parameters + I will also need to map the parameters in my Subreport C to the FIELDS in the main report. Subreport C has 8 parameters, so 4 of them get mapped to the parameters of the main report and
    the other 4 get mapped to the fields in the main report.
    Now, when I call the Subreport C from my main report, that runs fine, but, I get an error when I try to call my other subreports A and B. The error says "Parameters in the subreport are not defined", probably because it tries to map the fields
    in the main report to the non-existing parameters in mu Subreport A and B.
    Any ideas/suggestions/workarounds would help a lot. Also, if someone can point me to a link where multiple subreports are being called from the column of a main report would be a great help too.

    One simple solution would be to add the additional 4 parameters to subreports A and B. Just don't use them.
    I assume you are calling the subrebort using Go to report action property of the tablix cell control. Try switching to Go to URL. Then use expression builder to dynamically create your url:
    ="http://YourReportServer/Reports/Pages/Reports.aspx?ItemPath=%2fYour%2fReport%2fPath%2fReport"+Fields!Column1.Value+"&Parameter1Name="+Parameters!Param1.Value+"&Parameter2Name="+Parameters!Param2.Value+"&Parameter3Name="+Parameters!Param3.Value+"&Parameter4Name="+Parameters!Param4.Value+IIf(Fields!Column1.Value="C","&Param5="+Fields!F1.Value+""&Param6="+Fields!F2.Value+""&Param7="+Fields!F3.Value+""&Param8="+Fields!F41.Value,"")
    Now this is a rather long formula which is why I prefer just adding the other 4 parameters to all of the subreports but this expression opens the report from the url and only when Column1 field is "C" does it also pass the additional 4 parameters.
    "You will find a fortune, though it will not be the one you seek." -
    Blind Seer, O Brother Where Art Thou
    Please Mark posts as answers or helpful so that others may find the fortune they seek.

  • Display pass or fail in Report based on return value

    Hi,
    I'm trying to integrate TestStand with TestComplete using the ActiveX/COM server adapter.  I have the COM setup so that TestStand can call a test in TestComplete and have TestComplete return a string value (true|false) to TestStand.
    Now I need to get the TestStand report to display "pass" or "fail" text for this sequence call,  based on the return string from TestComplete.
    Is there someplace in Expressions or Post Actions that I can state and how:
    return value "True" = pass
    return value "false" = fail
    Thanks.
    Solved!
    Go to Solution.

    Hi,
    Option 1.) Use a String Value Test.   The Limits.String would be 'True'.  This would be the easiest because you already returning strings from your ActiveX call.   You could make your ActiveX calls a String Value Test.
    Option 2.) Use a Pass/Fail Step.   You could set the returned string to a local variable and then create another Pass/Fail step that would have the Pass/Fail criteria as Locals.StringReturned == 'True'
    These are two options that hopefully can get you started....
    Thanks,
    PH

  • How to Generate a Report Based on User's Parameters from Web Site

    Hi, all,
    I am trying to use Oracle Developer 6.0 Report Builder to generate report based on what user types in from the web site. Since I am a novice, I am wondering if anybody would help me with the following questions:
    1. How can I create a report based on user's parameters?
    Assuming that I have 2 text fields EMPNO and DEPT on the web site, after user types in some value, how can I pass these parameters into my query, can I do something like:
    select ENAME, JOB, EADDRESS from EMP
    where EMPNO =
    some_reference_of_parameters_from_user
    or is there any other way to achieve this functionality?
    2. How can I pass a PDF format report back to user after the report is generated?
    Any help is greately appreciated!!
    Best regards.
    Judy

    Hello,
    In the Report Builder, create two user parameters, and set the parameter name, datatype, width, and default values to what you want. Modify the query and put in a where clause (e.g., where deptno = :p_deptno). When you request the report with PARAMFORM=YES on the URL, it'll generate a default parameter form in HTML and allow the user to enter in the selected parameter values. Also set DESTYPE=CACHE&DESFORMAT=PDF on the URL to get the output back as PDF.
    If you upgrade to Reports 6i, you can customize the default HTML parameter form.
    Regards,
    The Oracle Reports Team --skw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Can i filter a report based on a value of a navigational attribute?

    Hi all,
    i need to filter a report and the characteristic i need it's a navigational attribute that is already present in the infocube, can i use it as a filter or i need to add a new characteristic to the ic?
    thank you

    Hi
    You can use navigational attributes to filter your report. When you switch on the navigational attributes at the cube level, the X table or Y table will be connected to the star schema of cube.
    Navgational attributes behave like a characteristic in the report. You can create variables, filter etc on navgational attributes.
    Hope it helps.
    Regards
    Sadeesh

  • Change an Object property based on a value coming from the Excel sheet

    hi all
    i've been able to bind a value from the excel sheet to my my component
    but i want to change a property of an object in my component based on this value at the run time.
    during the design time, it works fine
    for example, if my value called "_xvisible"
    and i use to it to hide some object.
    if i set _xvisible during the design time in excel, it works fine in the run mode.
    but during the run mode, if the value got changed, there is no affect.
    thank you
    Amr

    Hi
    See the xcelsius samples present inside xcelsius SDK. there are examples describing how to bind data which will work at runtime also.
    Hope this helps
    Rush-me

  • I need to filter my report based in group totals

    Hello
    I'm creating a report for the invoices tables, I need to have the sum of all invoices of the clients by month (only the past three months based in the date of the report). The sum of the invoices is also based in the Item Code.
    I retrive the vouchers to be sumarized with thw following formula:
    IF {INV1.ItemCode} Like "???DS*" AND
    {OINV.DocDate} >= DateValue(Year ({?Fecha}),(Month ({?Fecha}))-3,1) AND
    {OINV.DocDate} < DateValue(Year ({?Fecha}),(Month ({?Fecha}))-2,1)
    Then {INV1.TotalSumSy} Else 0
    Then I group the information By CardCode and sum the vouchers by total fields in crystal.
    But (here comes the problem)
    I want only view in my report only the clients with the sum of the invoices for each month is equal to 0
    Someone could help me telling me some way to do this type of filter
    Thanks in advance for your help

    Hi,
    Do you also have a group for Month?
    Try filtering the groups with a Group Selection Formula (Report > Selection Formulas > Group). Something like this:
    Sum(, {Card Code}) = 0
    Hope this helps!
    -Abhilash

  • How to filter reports based on Prompt values

    Hi All,
    I have requirement in dash board.
    in my dash board it contains two reports which is having same column with different values.i.e.,
    one report contains Input method column with CSS value,
    another report contains Input method column with SFF value
    and i have dashboard prompt for INPUT METHOD column.
    when i need to select CSS value in prompt the first report should enable(display).second report should disable.
    when i need to select SFF value in prompt the second report should enable(display).first report should disable.
    But problem is when iam prompting values the 2 reports displaying same report only.Can any give solution for this one. how to solve this prob?
    Thanks in Advance response .
    Naveen

    Hi,
    Follow the steps from this link. I hope it will be helpfull
    http://oraclebizint.wordpress.com/2008/01/17/oracle-bi-101332-selecting-reports-from-dashboard-prompts-and-guided-navigation-sections/
    Phani.

  • Report based on parameter values

    Morning all,
    I have to create a report which includes Account Number, Account Name, Sales prices. There has to be two optional parameters, Account number (Static) and Product Description (Dynamic).
    I have setup the report with Account Number (Grouped), Account Name. The report works fine, when a user selects a particular account number, the report produces fine.
    Things I would like to do and know about:
    1: when it comes to sales price, it should reflect to what user has selected under Product Description parameter.
    for example if the user has selected Supra, Supra KNT, Rimless, Metal etc from the description parameter, the report should only show those selected prices according to the account number (showing descriptive field value).
    2: Additionally, if user chooses all of the options from the drop down menu (multiple selection dexcription parameter) then the report should show all the prices according to the description (showing the description field value).
    The problem in this case which I think would be is because the description values are quite alot, I mean more than 25 values and if a user selects multiple values, lets say all, how would Crystal adjust that into a report?
    Example of a report
    Parameters
    =============
    Account Number:
    Description: Supra, Supra KNT, Metal, Plastic, Rimless, Rimless KNT (multiple selection)
    Report Layout
    ============
    Account Number --- Account Name --- Supra - Supra KNT - Metal - Plastic - Rimless - Rimless KNT
    (Where Supra to Rimless KNT options are chosen by Descriptive parameter value - if not chosen then report will only show account number and account name).
    If however only Supra is selected then the report would look like this
    Report Layout
    ============
    Account Number --- Account Name --- Supra
    Any ideas how to achieve this kind of report? I have setup the report in a landscape so that we can fit as many description values as possible but I only managed to show 9, rest goes over the page.
    The report in the end has to be exported to excel so I don't mind if it goes over a page.
    Regards
    Jehanzeb

    Jehanzeb,
    You do want to use cross tabs...
    Have your database query produce a table with the following columns:
    Account Info (Number & Name)
    Product Description
    Sales
    e.g.,
    Select AcctNo + " - " + AcctName as AcctInfo,
       ProdDesc,
       sum(Sales) as Sales
    from SalesTable
    group by AcctNo, AcctName, ProdDesc
    Then use record selection to limit the data to the selected products.
    Yes, the layout of a cross tab is a bit strange, in that the design of the cross tab only shows one column for the data, but the table will expand with the underlying data.  If 4 products are selected, there will be 4 columns of sales numbers.  When setting up the cross tab, make the AcctInfo field the row header, and the ProdDesc field the column header, and the Sales field the table cell value.
    HTH,
    Carl

  • Need to generate XML report  (when user clicks the button)from Application Express 4.0.0.00.46

    I am new to Apex so I invoke all the APEX GURUS to help me !!!
    Here are details.
    When the user hits a button from APEX page he can download an XML report
    here is the parameterized SQL query:

    Duplicate thread: https://community.oracle.com/message/11325665

  • Change source (sql) of interactive report based on column value?

    I've got an Interactive report displaying 10 columns. What I'd like to do is show different columns depending on the value of the first column. All the rows in the result will have the same value in the first column.
    If value in column 1 (on any row) = 'aaaa' then
    display columns 1,2,3,4, 9, 10
    If value in column 1 (on any row) = 'bbbb' then
    display columns 1,2,3,4, 7, 8
    If value in column 1 (on any row) = 'cccc' then
    display columns 1,2,3,4, 5, 6
    Should i somehow make the sql query dynamically change or can I use apex to dynamically hide the columns I don't want in the interactive report?
    Appreciate if you could point me in the right direction...
    /A

    Hello Andy,
    You can solve that in your SQL query:
    select col1, col2, col3, col4
    ,   case col1
        when 'aaaa' then col9
        when 'bbbb' then col7
        when 'cccc' then col5
    end newcol5
    from tableYou may have to use to_char or to_number conversions when the datatypes of the col5,7 and 9 are different.
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • Need SQL to update Column based on latest value

    EFF_DTE     EXCH_FROM_CTRY_CD     EXCH_TO_CTRY_CD     SECTY_LST_PRCE     SECTY_MTH_AVG_PRCE      New Col In View
    1/1/2013     USD     MXN     12.988     12.988     12.88672
    1/2/2013     USD     MXN     12.988     12.988     12.88672
    1/3/2013     USD     MXN     12.9658     12.9806     12.88672
    1/4/2013     USD     MXN     12.7488     12.92265     12.88672
    1/5/2013     USD     MXN     12.743     12.88672     12.88672
    I have above table and I need to populate New Col using view. New Column value should be Latest date SECTY_MTH_AVG_PRCE . For example If today date is 1/5/2013 date New Col should populate value 12.88672 for all the records for that month only. So every day when new MTH AVG Rate come then it should populate latest value of Secty_MTH_AVG_PRCE to New Col.
    The New Col should populate with latest Avg_Prc only for that month. If New Month Start then new col should now update all records value but It should update only for June month Only.
    Please help me to make a view query. and let me know if any query?
    Thanks in advance.

    Hi,
    This sounds like a job for the analytic FIRST_VALUE function:
    MERGE INTO  table_x     dst
    USING  (
               SELECT  eff_dte
            ,        FIRST_VALUE (secty_mth_avg_price)
                        OVER (
                                  PARTITION BY  exch_from_ctry_cd, exch_to_ctry_cd  -- Maybe
                        ORDER BY      eff_dte  DESC
                              )     AS new_col
            FROM    table_x
            WHERE   eff_dte     >=           TRUNC (SYSDATE, 'MONTH')
            AND        eff_dte     < ADD_MONTHS (TRUNC (SYSDATE, 'MONTH'), 1)
           )          src
    ON     (    dst.eff_dte               = src.eff_dte
           AND  dst.exch_from_ctry_cd     = src.exch_from_ctry_cd     -- Maybe
           AND  dst.exch_to_ctry_cd          = src.exch_to_ctry_cd     -- Maybe
    WHEN MATCHED THEN UPDATE
    SET    dst.new_col     = src.new_col
    ;I'm just guessing at lots of things, because the question is so unclear.
    Is there a view involved in this problem, as well as the table? What role, if any, do exch_from_ctry_cd and exch_to_ctry_cd play in this problem. When you say "June", do you mean "February"?
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data. Make sure that no column is the same for all rows in the sample data. (E.g., have a least 2 distinct values for exch_to_ctry_cd.)
    If you're asking about a DML statement, such as UPDATE, the sample data will be the contents of the table(s) before the DML, and the results will be state of the changed table(s) when everything is finished.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ {message:id=9360002}

  • Display hperlink in report based on column values

    Hi,
    I have a requirement to make report column as hyperlink column with the condition that
    1 . If report column values is 0 then on '0' hyperlink should not display.
    2 . In other values hyperlink should display.
    Please help me to achive this.
    Thanks & Regards,
    Priya

    select decode ( col1, 0, null, '{a href="f?p=&APP_ID.:XX:'||'&SESSION.'||'::::ID:'||col1||':YES" }Go{a}' as Link, col2, col3 from table
    XX is your linked page number.
    Replace { to <
    and
    } to >

Maybe you are looking for

  • Problem creating webservice in Oracle 9i OSE

    I have been trying to configure a webservice for the OSE in a JSP development plan, but I keep getting this error: java.sql.SQLException: ORA-29540: class oracle/aurora/namespace/shell/sql/ShellStoredProc does not exist ORA-06512: at "SYSTEM.DBMS_NAM

  • Finder doesn't start after admin login

    Hello together, I have a Lion Server which is manage mainly via ssh on console. At the moment I have some Kerberos / OpenDirectory issuses und I wanted to login at the Server directly with the local admin account. When I try to do so, I geht a grey s

  • Mac Pro 4k 60Hz suppot

    Does the new Mac Pro support 60Hz 4K output via thunderbolt2 to the Sharp monitor sold with it from Apple? If not is this an issue with the OS or the hardware?

  • Check input  values are available in Hex

    how to check input values are available between 0x0000000000000001 to 0xFFFFFFFFFFFFFFFE i am using following code. but error will come public boolean hexCheck16(String hex) String hex_min = "0x0000000000000001"; String hex_max = "0xFFFFFFFFFFFFFFFE"

  • Why can I only find Bob Seger tribute or cover bands?

    Why can I only find Bob Seger tribute or cover bands, and not even be able to locate any of his original music on movie sountracks??