Report Parameters behaving strangely

Hello,
I just completed my report in the designer provided with visual studio 2008, it's a relatively complex report with 6 subreports and has multiple detail sections. The parent report has one parameter which is used in a Database command. The report works nicely when previewing from the designer and only shows up one required parameters as it should. All the subreports have parameters as well but these are all linked to things on the parent report.
The problem is when I try to execute the report from code, it ignores my parameters and proceeds to ask for multiple parameters, both including the parent parameters and all sub report parameters. If I enter these manually just to test if it works, I then get a message saying there's an error in one of the subreport's record selection formula. However I'm not sure how much I believe this as the previewing works completely fine.
I just have no idea what is happening and why I am getting requests for so many parameters?
Marlon

Update ***
I have managed to work through towards getting the report to display in the .NET app now, I needed to check the IsLinked() fucntion before assigning parameters.
However, I have now been presented with an even more weird problem: If I switch database in code, I now get asked to enter a parameter I know is a linked one, if I do I get a message saying the record selection formula references an unknown field. But if I get the designer to change database, then get it to preview, it works flawlessly (both in the previewer and in the application). Until I change the database back to the original one, where I get the same error.
Our application needs to be used in many client organisations with each having different connection strings / databases (all have the same schema obviously) so I need this report to run independent of what the database it was designed / compiled on.
Here is the code I use to switch database within the application, is there anything different to the way I do it to the way the crystal report designer does it? As the designer is obviously doing something behind the scenes.
This code has worked on the 15 or so reports I've designed so far.
               ReportDocument cryRpt = new ReportDocument();
                TableLogOnInfo tLI = new TableLogOnInfo();
                ConnectionInfo cI = new ConnectionInfo();
                Tables tables;
                cryRpt.Load(reportPath);
                    cI.ServerName = (string)builder["Data Source"];
                    cI.DatabaseName = (string)builder["Initial Catalog"];
                    cI.UserID = (string)builder["User ID"];
                    cI.Password = (string)builder["Password"];
                    tables = cryRpt.Database.Tables;
                    foreach (Table t in tables)
                        tLI = t.LogOnInfo;
                        tLI.ConnectionInfo = cI;
                        t.ApplyLogOnInfo(tLI);

Similar Messages

  • Report layout behaves strangely

    hi all
    I am using reports 6i
    when i run the report for purchase order number 10869 and release number 1 the report runs fine
    but when i run the same report for purchase order 10869 and release number 2 the header appears twice on the second page and the serial numbers come in jumbled order
    i am baffled as to why this is happening and have been looking into the same for 2 days
    kindly guide me
    thanking in advance

    Wrong query?
    How would we know what your purchase order report is doing exactly?

  • Reporting Services web service complex xml type report parameters

    Hi,
    I have the following xml type parameter in my request query that I use in reporting services.
    <Parameter Name="accountDetails" Type="XML" xmlns:d4p1="thevalue" xmlns:i="thevalue">
    <DefaultValue>
    <d4p1:AccountDetailDto>
    <d4p1:AccountNumber>12345</d4p1:AccountNumber>
    <d4p1:AccountType>Sales</d4p1:AccountType>
    </d4p1:AccountDetailDto>
    </DefaultValue>
    I want to know how I can assign values to the accountDetails parameter from report parameters, I've tried to call it from the dataset parameter properties but it doesn't return any values. I created Parameters!accountDetails.Value on the dataset parameters
    properties and assigned it the following value: it only returns empty columns
    ="<AccountDetailDto><AccountNumber>"& Parameters!AccountNumber.Value &"</AccountNumber><AccountType>"& Parameters!AccountType.Value &"</AccountType></AccountDetailDto>"
    You're help will be highly appreciated as I've been trying to solve this for a while now

    Hi Alisa,
    Perhaps I should explain my problem clearly...
    This is my query request that I send to the webservice:
    <Query>
    <Method Name="GetPerAccountAssetAllocation" Namespace="http://tempuri.org/">
    <Parameters>
    <Parameter Name="accountDetails" Type="XML" xmlns:d4p1="thevalue" xmlns:i="thevalue">
    <DefaultValue>
    <d4p1:AccountDetailDto>
    <d4p1:AccountNumber>12345</d4p1:AccountNumber>
    <d4p1:AccountType>JSE</d4p1:AccountType>
    </d4p1:AccountDetailDto>
    </DefaultValue>
    </Parameter>
    </Parameters>
    </Method>
    <SoapAction>http://tempuri.org/IPortfolioManagementService/GetPerAccountAssetAllocation</SoapAction>
    <ElementPath IgnoreNamespaces="true">*</ElementPath>
    </Query>
    It works well when I run it just like this, that is without specifying any parameters in the report data dialogue window or on the dataset parameters properties, it returns the values and columns correctly.
    So my problem is, I need to find out how(xml parameter syntax, steps e.t.c)
    I can do to allow users to specify the accountDetails parameter, its quite tricky for me coz its an xml type parameter, Im not sure if I should just specify the AccountNumber and
    ReportType parameters separately:
    I've tried the following without any success:
    1. Under the dataset properties:  I tried not to specify a default value for the accountDetails parameter on the xml query, then I added a parameter called "accountDetails" under the dataset parameters properties, then under parameter
    value I added the following xml value :
    <d4p1:AccountDetailDto>
    <d4p1:AccountNumber>Parameters!AccountNumber.Value</d4p1:AccountNumber>
    <d4p1:AccountType>Parameters!AccountType.Value</d4p1:AccountType>
    </d4p1:AccountDetailDto> 
    (I also added the AccountNumber and AccountType parameters under the report data dialogue window)
    This returns empty columns, is there something I'm missing, or am I doing this incorrectly?

  • Problem with empty report parameters when passed to PL/SQL function

    Hi,
    We have come across what appears to be a bug in the JRC. When passing a report parameter to a PL/SQL function as a parameter, empty parameters are changed before being sent to the function. More specifically, an empty string "" ends up as the value "(')" in the PL/SQL function parameter. In our report we print the report parameters on the first page so we know that the parameters are OK before being passed to the database.
    The problem exists for version 12.2.203, 12.2.204 and 12.2.205 of the JRC.
    We have identified a workaround, but it is not exactly elegant: Before executing the report we modify all empty  parameters ("") to " " . In the PL/SQL function, we trim all parameters before using them.
    We call the function using a command object with a sql syntax like this example:
    select * from table (qa_batch_release.get_qa_br('{?p_report_id}','{?p_reg_set_number}','{?p_cr_number}','{?p_change_id_decode}','{?p_country_id}','{?p_mfg_item_no}','{?p_4_no}','{?p_5_no}','{?p_7_no}'))
    The PL/SQL function is a table returning function.
    Best regards, Thor

    Hi Kishore,
    using #COLUMN_VALUE# would probably not make much sense, because normally a report has multiple columns and not just the numeric column which you want to verify if it's negative. But APEX will fire the template condition for each column, because the report template is a column cell template.
    What you can do to make it more generic is to use for example
    #CHECK_AMOUNT#
    in the template and provide a not displayed column in your SQL statement which contains your value which is named CHECK_AMOUNT. For example:
    SELECT NAME
         , BALANCE
         , BALANCE AS CHECK_AMOUNT
    FROM XXX;Because this CHECK_AMOUNT column would be a generic name, you can use this template in all your reports as long as you provide this column.
    Thope that helps
    Patrick

  • Report parameters in MM/DD SSRS

    I have a requirement where there will be two report parameters like From(MM/DD) and To(MM/DD) that will be used to compare against a month and day fields. For example, I have month and day fields stored in a table like
    MM DD
    01 24
    05 29
    When the user enters the two report parameters values as say From(01/25) and To(01/29), I need to retrieve records lies between Jan 25 to Jan 29 from the above table.
    Can you kindly provide a sample way to achieve this.

    Hi Sarayu,
    I have tested on my local environment and you can add the filter as below to filter the data of the Month and Day field based on the two parameters.
    Details information below for your reference(I assumed that the datatype of the twe parameters are Text ):
    Add the filter in the dataset and in the expression input as below to combine the month and day together:
    Expression (String)
    =Fields!Month.Value &"/"& Fields!Day.Value
    Operator: Between
    Value: [@From]    [@To]
    Preview you will got the result as below:
    If the DataType of the two parameters are Date/Time type you can use the expression below to filter the data:
    =CDate(Fields!Month.Value &"/"& Fields!Day.Value)
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • "Report Parameters" - only default showing / translation

    Hi,
    I did a BI Publisher with the "Analyzer for Excel" and I have 2 issues.
    1. I'm calling the report from an ApEx application with the following URL:
    .../R_Rapport_analyse_E.xdo?_xpf=&_xpt=1&Calendrier=130001&No_demande=5
    The data showed under "Report Data" are ok, but not the ones under "Report Parameters" (Calendrier and No_demande). The default ones are displayed.
    2. Is there a way to translate "Report Parameters" and "Report Data". I've tried to change them and save the template, but it's not working.
    Thanks in advance.

    Post Author: sreenivas
    CA Forum: Publishing
    your steps ok
    but do this one
    you should be able to update the universe details (tools > universe > (universe)> refresh > import etc) and then run your report to get rid of partial results...

  • CR 2008,  Universes, and report parameters....

    All,
       I would like to use a universe(s) as a data source for our crystal reports (CR 2008 - BOE 3.0/3.1).  We have an application that collects the report parameters from users and then schedules the CR report using the JAVA API.  My question is this:
      what construct do I use in the universe to represent this statement in a where clause of the report query (I assume it's one of the @ functions):
    where...
          and loc_name in '(?locNameList)'
    ?locNameList is a multi-value parameter defined in the report. 
    Any comments, pointers to onlince documentation or examples, and book references would be appreciated.
    thanks,pf

    Paul,
    Did you get any feedback on this, I am looking to do the same thing.
    Thanks,
    Ian S

  • Value sets and Report Parameters

    Hi
    these are my requirements
    i have developed report using scott where the
    parametes are
    dname
    empinfo
    (1)If i select Department 1o then
    in parameter empinfo should display the value only from department 10
    (2) i have created a value set for report parameters empinfo
    it only shows two columns like EMPNO AND eNAME AND THERE only two column space to be shows
    how could i make columns to be displayed in addition to ename and empno
    Regard

    Hi KittyCat101,
    If I understand correctly, you want to use a parameter to filter Status field that starts with “Is” or “Can” or “Fi”. If in this scenario, we can refer to the following steps to achieve your goal:
    Modify the available values for @Status parameter to “Is”, “Can” and “Fi”.
    Right-click the tablix or dataset to open the properties dialog box.
    Select Filter in the left pane, then add a filter like below to filter Status field:
    Expression: =Fields!Status.Value like (Parameters!Status.Value & "*")  Type: Boolean
    Operator: =
    Value: true
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Report parameters for pdf instance

    Hi,
    is there a way to read the parameters from a pdf report instance? I already successfully retrieved the report parameters from a CrystalReport using the IReport.getReportParamters. Is there a similar way to do this for pdf instances or Excel instances?
    Thanks in advance.

    Hello Sebastian,
    The InfoObject representing the scheduled instance to PDF should implement the IReportProcessingInfo interface, that defines the method to retrieve the params.  You should cast to IReportProcessingInfo.
    It's undocumented, but works.
    Sincerely,
    Ted Ueda

  • Report Parameters with logical database

    Hello
    I have to read some HR infotypes that are provided with the logical database PNPCE.
    Fort his i have written a report that will use my logical database and get some information.
    What i need,are some new input parameters on the screen that are added by my report:
    parameters: p_persnr type person-pernr,
                        p_name type p0002-nachn,
                        p_sname type p0002-vorna.
    The problem is that i do not know how to link these parameters to my logical database reading.
    When i try to call "get <node>" ,my report is not returning anything.
    Is there a way to send  my parameters as selection parameters to the logical database?
    thank you

    The selection screen 1000 is created dynamically during runtime. I doubt change done by SE51 will solve the issue. In fact there is some code which can help on this.
    INITIALIZATION.
    To restrict the range of PERNRs
      PERFORM z_seloption_restrict USING 'PNPPERNR'.
    *&      Form  Z_Seloption_Restrict
    * Restrict range in select option
    *      -->VALUE(SOP_NAME)  Name of select option as string
    FORM z_seloption_restrict USING value(pv_sop_name).
      IF st_restrict-opt_list_tab[] IS INITIAL.
        CLEAR st_opt_list.
        MOVE: 'EQ' TO st_opt_list-name,
              'X'  TO st_opt_list-options-eq.
        APPEND st_opt_list TO st_restrict-opt_list_tab.
      ENDIF.
      REFRESH : st_restrict-***_tab.
    *  READ TABLE st_restrict-***_tab INTO st_asst
    *                        WITH KEY name = pv_sop_name.
    *  IF sy-subrc NE 0.
      CLEAR st_asst.
      MOVE: 'S'         TO st_asst-kind,
            pv_sop_name TO st_asst-name,
            'I'         TO st_asst-sg_main,
            ' '         TO st_asst-sg_addy,
            'EQ'        TO st_asst-op_main.
      APPEND st_asst TO st_restrict-***_tab.
    *  ENDIF.
      CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
        EXPORTING
          restriction = st_restrict.
    ENDFORM.                    "Z_Seloption_Restrict

  • SSRS 2008 R2 Report parameters have default values and report not to auto run

    Hi, I am using SSRS 2008 R2 one of my requirements for a Report is all the parameters have default value and I do not want this report to auto run when users open this report. I can create a dummy hidden parameter to break the auto run for this
    report. But I am looking for solutions other than that.
    Thanks in advance..........
    Ione

    Hi lone,
    According to your description, you have a report with parameters. Now you want you report not to run automatically with your parameters default values. Right?
    In Reporting Service, if you have parameters with default values in your report, your report will always auto run with these default values. We can say these default values are used for report running initially. So for your requirement, if you really need
    to see your default value before the report running, the best workaround is set one more parameter to break the auto run like you have done. If you just want your report not to auto run, your can achieve it by removing those default values.
    Reference:
    Report Parameters (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou (Pactera)

  • Just done a fresh install of Snow Leopard with all updates,iMac 5.1 behaves strange, sometimes I start Google Chrome and look at youtube videos the computer freezes and shuts down immediately, I believe its  related to overheating ?

    Just done a replacement of the pata DVD drive (its new and is working ok),  and a fresh clean  install of Snow Leopard with all updates, iMac 5.1 behaves strange, sometimes I start Google Chrome and look at youtube videos the computer freezes and shuts down immediately,
    I believe its  related to overheating ?
    iStat Pro shows GPU diode temp at 66 C, CPU at 48 C,  Fan rpms is around 1000
    Any ideas somebody ?
    The hard disk has been previously checked with state of the art techniques that have confirmed that the hard disk drive is in perfect condition.

    1.5-3 minute boot up as opposed to 15-20 seconds
    And
    why it takes a long time to load a lot of things.
    I have restored this
    from a time machine partition.
    TimeMachine is only a backup and restore, it won't fix issues in software and according to your information, doesn't even optimize the restore for best performance on boot hard drives.
    What you need to do to regain your speed is to understand how your machine works
    Why is my computer slow?
    Fix any and all issues in software following this list of fixes
    ..Step by Step to fix your Mac
    Then follow this defrag method I've outlined
    How to safely defrag a Mac's hard drive
    Most commonly used backup methods
    There shouldn't be need to reinstall OS X fresh unless your having file structure issues which if they are should appear when in the Steps, which then a zero erase and install will cure as well as any bad sector issues, the defrag step wouldn't be necessarry on a freshly installed system obviously as the files are written all together, not in portions all over the drive.
    Hope this assists.

  • Web service report parameters

    Hi,
    just wondering is it possible to retrieve more info regarding report parameters using web service, I can only get following:
    multiValuesAllowed
    name
    values
    basically could a call register some other classes than call.setReturnClass(ReportDefinition.class) or call.setReturnClass(ParamNameValue [].class) which gives me the same info.
    The reason why I'm asking is because I'd like to be able to get:
    id / name
    data type
    label
    default value
    value set
    and so on... so I can create my own prompt page in which user could set/select desired values and then run report with those values. Is this making any sense?
    Looking at this document http://oraclebizint.wordpress.com/2007/10/25/oracle-bi-publisher-101331-web-services-first-impressions/ it looks like it is not possible, are there any workarounds.
    At the moment I'm doing this by parsing xdo and that way I can get parameters, value sets and so on, then using api I'm generating reports, but I don't like this approach...
    Any advices and help regarding this are welcome.
    Thanks in advance,
    Tomislav.

    Hi
    I hope you have already found an answer for your question, if not, please check the post Re: Getting null bytes using PublicReportService_v11.wsdl
    I've found and described an issue similar to the one you are facing.
    IHTH
    Please, let me know.
    Marco

  • Has anyone ever encountered layer blend modes behaving strangely?

    I use photoshop quite a bit for retouching and photo compositing. Tonight I encountered a strange problem. I was trying to create a vintage look on a photo and had a number of adjustment layers including a curves, levels, color fill and there were also a few texture/noise layers all set to varying opacities. Near the top of all this I had a vignette layer that was black around the edges and white in the center set to blend mode of multiply. Well, when I was clicking on and off I realize that that vignette layer was definitely lightening the center part of the overall image quite a bit (the part that is white on the vignette layer), almost like a screen. So I flipped the vignette layer through different opacity modes and saw that there was no change in its behavior, every mode was screening the white, even darker color and multiply. I thought maybe it was interacting in a weird way with one of the other layers so I turned all the others off except the back ground-- still no change. Then I dropped the layer down one at time until it was below the background. When I started to move it up again, it was behaving normally for a moment until I moved it up a couple levels in the stacking order and then it went back to the screen behavior. Anyway I shuffled it around a bit but there was no consitency to when it would display the correct opacity and when it wouldn't, so it did not seem to be an interaction with any specific layer. I don't know, but I can't really think of any case where white set to multiply should produce a lighter result even if it were interacting with another opacity. In any case it does seem to me that there is something going on with the overall computation of opacities. I tried creating a new black and white layer and it was also doing the same thing, behaving strange and not displaying the correct opacity.
    I'm tired, so I'm going to bed. I'm going to shut off the computer and hope this goes away when I reboot, but if it does not, does this sound familiar to anyone? I'm not a regular visitor to this forum, but I thought I'd put it out there in case anyone else has experienced anything like this. I've only got 5 gigs of ram on this computer and I've been working away for a while... maybe photoshop just couldn't keep up(?) I'm using Photoshop CS5, RGB Adobe 1998 colorspace.  I've never had anything like this happen in the last 11 years I've been using photoshop. Hmmm.... hope I don't have to reinstall or call support or worse. fingers crossed.

    Nevermind. It is still having the problem. I have to think that this file is just corrupt somehow because I just opened another file and can't seem to cause the same problem. Basically, I can fill a layer with white, put it to a blend mode of multiply or darker color and it will block out everything of the image below, ie totally opaque. The opaqueness varies depending on the if there are other layers also on blend modes, but it does not seem to correspond to normal blend mode interaction. If I put it right on top of a regular layer with an image on it, it totally blocks it out on a blend mode of multiply... weird. I am going to scrap this file and see if the problem recurs in other files. My 2006 Mac Pro is getting some years on it and has been running pretty slow. I'm not a hardware expert but I've done everything I know how to do to maintain it. Was thinking of upping the ram to see if I can hold out a bit longer before I upgrade the computer. Wouldn't surprise me if this problem is related to the computer.

  • How to pass the report parameters through java not by using URL

    Hello...
    I have an oracle App. Server 10g with report service
    I can the report using the URL :
    http://host:Port/rwservlet/report=....
    and passing the report parameters ...
    But is there any way to call the report by pdf format and passing the parameters from java without using the url ???

    thank you shahcsanjay for your reply
    but I think that web.showDocument can not be used by ordinary java web application ..
    I think it can be used only with with "oracle forms" Am I right ?
    If no can you please tell me where can I find a useful document about how to use web.showDocument ...
    thanks again
    Saleem

Maybe you are looking for