Running Queries for Dynamic Prompts

I have a crystal report in which in the paramter screen there are two parameters coming from dynamic prompts.There are also a few other static parameters.Thus we have two command objects (Let us refer these two as Command 1 and Command 2) for these two dynamic prompts We have another command object (let us refer this as Command 3) which actually queries the database to retrieve the report data. However when we run the report from the crystal client in the preview mode All three queries get executed before showing the paramter screen . Hence it takes a long time for the parameter screen to come up.In order for the parameter screen to show we only need Command 1 and Command 2 (as mentioned above) to execute. Command 3 should only get executed after we select the parameters . The result set of command 3 is also depend on one of the static parameters. However on previewing the report all three get executed  before the parameter screen comes up.(I have used a trace for determining this) .Of the three command 3 gets executed with default value of the concerned static parameter as the selection criteria.If we don't supply a default value to the static parameter command  3 gets executed with the default value for the datatype of the static parameter, for eg if the static parameter is int command 3 gets executed with the value of the static parameter as 0.
                                    Thus essentially Command 3 executes twice, once before the parameter screen appears and once after we select all the paramters and click ok.Since command 3 executes before the parameter screen comes up, it drastically increases the time for the parameter screen to come up.
Is there any way to stop Command 3 to run before selecting the prompt values.

Instead of using command 2 and command 3 try to combine both the columns in command 2 and create a parameter. Since the main command is depends on the parameter field first executes main command and then it requests parameter value and then the command 2 runs and finally with the parameter the main command runs. You can also createLOVs using business view manager at server and use them in report.
Regards,
Raghavendra

Similar Messages

  • Scheduling WebI reports for Dynamic Prompts

    Hi All,
    Please find my requirement
    Scenario 1:-
    I am having 30 Different Process Code ( 10 –OAR; 20 – Credit USA; 40 – New Sales etc.) in our project.
    Currently I am developing a single report for each “Process Code”. (Total 30 Reports – Templates and query will be 98% same except for different Process Code).
    Let us assume that “End user” will not have BO Access. So all the developed reports will be scheduled and sent to the corresponding end user as BO PDF format.
    Our Requirement:-
    In near future, we will be getting “New Process Code” in data. So the End User wants report for “New Process Code” also.
    Is there a way so that we can automate BO to pass each and every Process Code separately to existing BO report and get multiple instance BO PDF output report (One for each Process Code)?
    Please give me some solution to achieve this.
    Thanks and Regards,
    Tharini

    Hi Arijit,
    Thank you for your response. Irrespective of the recipients i need to pass dynamic parameters separately to existig BO report and should get multiple BO Pdf output for all recipient.
    Currently I am having only 30 values. So as of now I can pass these 30 values separately to BO WebI report and Schedule separately for 30 instances.
    What if i get 2 New values (Value 1, Value 2) next week and want to view the BO Pdf reports for these 2 values separately (2 New Reports for Value 1 and Value 2 separately)?
    How I can achieve these? Is it possible with publishing? If so, please explain it to me.
    Thanks,
    Tharini

  • Accessing Dynamic Prompts information via CR 2008 (or earlier?) RAS API?

    I am using the CR 2008 RAS API (but could also use an older API if needed) in Visual Studio 2008. I have both service packs installed.
    Any idea how to access information about the settings for dynamic prompts in a report?
    I can access the PromptField object with
    dataDefController.ParameterFieldController.
                    GetPromptParameterFields(new PropertyBagClass());
    but can't seem to find any options for its dynamic prompt settings (such as fields used to fill the default values, cascading prompt settings, etc.).

    Hello, John;
    From the Report Application Server .NET SDK Developer Guide:
    NOTE: The ReportClientDocument object model does not currently support creating new prompt groups programmatically and saving them to the report. For more information about dynamic cascading parameters and creating prompt groups with the Crystal Reports Designer, see the Crystal Reports User's Guide.
    There are no specific API designed for the dynamic cascading parameters - they are just parameters. As such the properties that make them special are not available.
    You can get the parameter name and you may be able to determine from the list what would be related:
    Country --> Region --> City would be, probably Date would not be.
    Since they are created in the Crystal Report designer, the creator could store the information needed in File | Summary Info | Comments and it can be retrieved from the special field Report Comments or the SummaryInfoClass.Comments Property
    That is the only suggestion I can think of at this time.
    Both options can be achieved from the .NET RAS SDK and the Crystal Reports .NET SDK for version 2008.
    Elaine

  • How to create Dynamic prompts for a field at run time

    HI all
    I have a table which has 2 columns name attribute1 and attribute1_meaning.
    Attribute1_meaning is the the meaning of attribute 1.
    ex if attribuite1 is 500.. attribute1_meaning tells us if its MHz. RAM or whatever.
    So IN my form I want to display the prompt of attribute1 as the value attribute1_meaning
    Is there a way to do this ?
    thanks

    It also depends on your form layout. Francois' solution works if you only display one record. If you display multiple records this won't work, since an item can only have one prompt at a time. There is no set_item_instance_property for the prompt.
    In that case you can create two fields attribute1 and attribute1_meaning. You can set the visual attribute of field attribute1_meaning to look like a normal prompt.

  • Cancelling of Long Running Queries feature for GRID data block

    Hi,
    Maybe someone knows solution-
    we have custom form with Spreadtable (JTF_GRID object) block (similar as, for example, EBS form WMSCTLBD).
    Is here any possibility to enable ‘Cancel Long Running Queries’ feature for it?
    I have reviewed built-in JTF_GRID library (with hope to implement it by adding some custom timer) but I cannot find any API which could be used for cancelling already submitted queries.
    I have created a SR but analyst suggested to ask for it in forums :)
    Our Oracle Forms Version is 6.0.8.28.0
    Thanks in advance.
    BR,
    Kristaps

    Try CTRL-ALT-DELETE
    :-)

  • Profiler execution plan ONLY for long running queries

    The duration only applies to specific profiler events however I'd like to capture the execution plan ONLY for queries over 10 minutes.
    Is there a way to do this using Xevents?
    Anyone knows?
    Thanks!
    Paula

    I've wanted that too but could not find a way to get it from profiler.
    But it may be possible with xevents (or without xevents!) to watch for long-running queries and then get the plan from the cache,where it will probably stick for some time, using DMVs.
    Josh

  • Dynamic prompt for pinyin on mountain lion

    It seems that I can no longer turn off dynamic propmpt for pinyin input method in the Traditional Chinese language.  With the dynamic prompt turned off, I can use the numericals, 1,2,3,4, to indicate intonation, and quickly get to the character I want.  While I found that Option-Tab will cycle through these intonations, the numericals are much more convenient.  Is there an option somewhere I am missing?  I did go through the menu item, Google search, etc., to see what others are finding out about this missing feature.
    Thanks!

    If you haven't done so already, search/ask on the Chinese Mac list:
    https://groups.google.com/forum/?fromgroups#!forum/chinesemac

  • Run queries against system tables for oracle BPEL processes

    I want to run queries against system tables for oracle BPEL processes. It is becoming very difficult for me to us EM as it is very slow,
    and not all the time, it is sufficient for our needs.
    We are doing load testing and we want find out info like how many requests came in and how many faulted and what time is taken by each request...
    So do any of you have the query that I can use and tables that I need to go against?

    Use the BPEL hydration database table "cube_instance".
    There should be plenty of example in the forum regarding this table.

  • Script for gather and store the log running queries details in a table?

    Hi All,
    Please suggest the best query that gather and store the long running queries details in a table.
    Thanks,
    rup

    The below links would help you...
    Ben Snaidero
    performance-dashboard

  • Error Publishing Dynamic Prompt to BOE XI Release 3 From Crystal 2008

    I am getting the following error when trying to publish reports with dynamic prompts to        "Failed to read data from report file <file name> Reason: failed to read parameter object".  I found this error occurring in threads referring to previous versions of BOE and none of the solutions are an option to me: I cannot give the user any further rights, and I am unable to apply patches since they are for Crystal XI, rather than 2008.  Is there a solution for this issue?  I found a work around which is to save the report to another source (a shared drive, for example) and then loading it via the Central Management Console.  However, once this is done, when any user attempts to view the report, the report continues to prompt for a username and password, despite having updated this in the Database Configuration and selecting "use same database logon as when report is run".
    Thanks in advance for any help!

    Hi Heather
    I get the same behaviour in this case:
    If my report uses a Stored procedure as the datasource AND i use an SQL sommand to create the LOV for dynamic parameter then each time i run the report in infoview it asks for db login info
    I think it looks for this info to create the LOV
    I created the same report with a table as the datasource and used the exact same command to create the LOV and was able to run the report without a request for db login info.
    I also created the report with the SP but with no LOV, the parameter is set to static, and it runs without extra login
    I have entered the db login info in CMC for each report before i tried running in infoview
    What are your reports using as datasources?
    Patrick

  • Dynamic Prompt not returning all values it should

    I am using Crystal Report 2008 CR Developer with service pack 3.1. 
    I have a report that has a SQL command statement.
    Using just the SQL statement, I get all results correctly (all "Events" show up).
    When I use the same report and create a dynamic prompt for the "Events", I get some of the values in the results, but not all of them.
    Also, the Events that I do get back in my results change randomly (one time I get Court Trial, the next time I don't). 
    The u201CEventsu201D field is the 2nd Group in the report.
    I also have a date time parameter in the report.
    The only thing Iu2019ve found so far related to this is the Max Rowset issue.
    I have used the registry fix to set the LOV value to 3000, even though there are only 1644  possible values for that particular field in the database. I changed it for all versions 11, 11.5 & 12.
    HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 12.0\Crystal Reports\DatabaseOptions\LOV  "MaxRowsetRecords"="3000"
    My understanding of Dynamic Prompts is that each time the report is run, it first looks at all possible values in that field and return those as values to select in the prompt. For example, if there were 1644 values in the table, it would show 1644 values to select in the parameter to be used in the report. Is that regardless of group level or date parameter or if "Save Data with Report" is selected?
    Any ideas on why my parameters are not pulling the correct list of values to select for use in the report?

    Try connecting to the database directly rather than using a command object.
    Or... purchase a case and have a dedicated support engineer work with you directly:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551

  • Parameter with Dynamic prompt - bug encountered

    I am using CRD XI release 2 (SP2) against an Oracle 10 release 2 database
    I have a report fully working with a static parameter
    1. But I have an issue when trying to introduce a parameter with dynamic prompts
    I have a data source (PointofSale retrieving data from a database view)
    I am trying to have the newPointOfSale parameter to prompt the user for values taken out of the PointOfSale source.
    I set up the parameter as indicated by the Crystal RD210 Guide.
    But when I run the report I am prompted for Server Name(greyed out)/user name/password(something I have never had to do for this report until introducing the dynamic parameter)
    In doubt I enter these of the database user I am using as a source for this report
    I get a strange error message telling me there is a problem with another datasource on the report.
    'Prompting failed with the following error message: 'List of Values failure: fail to get values. [Cause of erro: The table 'DLEX_REPORT.DLEX_REPORT_RETRIEVE.AIRLEGSUMMARY_SUM' could noyt be found. UNKNOWN.RPT]'.
    Error source: prompt.ddl Error code 0x8004380D
    There seem to be  bug with parameters and dynamic list of values in Crystal as other people seem to encounter similar issue
    Is there a fix or a workaround?
    2. Also I believe this forum allows to escalate bugs with SAP/business objects. Does anyone know how to do this? As this is very obviously a bug....
    Thanks
    Philippe

    I am not sure whether this will solve your problem since you are using a different implementation of Crystal Reports , but I've received the same error using CR XI Developer Release 2 in conjunction with the Crystal Reports Server XI Release 2.  My solution was to go into the Business View Manager application and fix the Data Connection object associated with the problematic Dynamic prompt by supplying a user name and password for the data connection object and setting the "Runtime Prompt Mode" property to "Never Prompt".  For some dumb reason, the Crystal Reports client will publish the data connection object to the Business Views database without any login credentials associated with it.  So after creating such a prompt in a report, you have perform this extra step before running the report the first time.  The good news is that if you reference this dynamic prompt in other reports, it will work - so you only need to fix it when it is first created.

  • Seperate Subject area for Dashboard Prompts

    Hi,
    Is there any way by which we can create seperate subject areas for OBIEE dashboard prompt only??
    Thanks

    Hi,
    Yes we can create separate subject areas for dashboard prompt's alone. Here is a case
    Say we need to create a constraint enabled prompt in our dashboard. So we bring in two dimension columns into the prompt.
    When we run the prompt, the queries across these two dimensions go through a fact table (Because the only way two different dimensions can be joined is through a fact . This fact table is chosen by BI Server intelligently at run time and that can be set through Implicit Fact column also though). In this case there is a chance that some of the dimension rows might get skipped in the constrained prompt as all of the records might not be present in the fact table.
    To mitigate this issue, we might want to create a separate subject area for dashboard prompts alone (using some fact less fact or by having a surrogate key in the 2nd dimension table etc).
    Hope I am clear :)
    Thank you,
    Dhar

  • Made Dynamic Prompts OK, but Static Prompts Still Appear. Why?

    <p>Hello All,</p><p>I have a stored procedure that I am using as the basis for a report. This stored procedure has some parameters so the user can customize the report.</p><p>When making the report, Designer gives me some default static Parameter Fields to match the parameters of the stored procedure. When I run the report in preview mode in Designer or in InfoView after publishing, the report correctly presents a page with simple text input fields (one for each parameter) to the user.</p><p>I can successfully convert these Parameter Fields from static to dynamic. However, something odd is happening now. When I try to run the report, whether in preview mode in Designer or in InfoView after publishing, the report will still present the page with simple text input fields to the user. If the user just clicks OK at the bottom of the parameter page, THEN the report presents a page with the appropriate dynamic prompts to the user.</p><p>How can I get the report to skip the page with the simple text input fields and only present the page with the dynamic prompts?</p><p>If anyone can give me an answer to this ASAP, I&#39;ll personally see to it that you have a bright sunny day tomorrow.</p><p>Not that I think this should matter, but were on CR XI.</p>

    Please re-post if this is still an issue to the Data Connectivity - Crystal Reports Forum or purchase a case and have a dedicated support engineer work with you directly

  • Multiple Queries with Multiple Prompts

    Hi,
    I created a WEBI that consist of two queries. Both query is the same except the currency value in the prompt.
    Query 1: Currency is MYR
    Query 2: Currency is USD.
    I have both Query1.NetSales and Query2.Netsales in the same report. I am able to get the report to show correct figure by running the query one by one and fill in the currency separately.
    But when I run all queries or refresh all data, it only show one prompt and both queries will run based on the currency in the prompt (either MYR or USD). In the infoview, I can only able to fill in values for one prompt.
    Anyone could please advise how can the report handle multiple prompts?

    Thanks, but my report still doesn't show the correct figure.
    My Universe is generated by the SAP BW query. The prompt is auto generated base on the condition filter in the universe which is including the currency and country.
    I had added the currency in the query filter for both query:
    Query1:  LovCurrency: Prompt "MY Currency:"
    Query2: LovCurrency: Prompt "US Currency:"
    when I run all the queries, I am able to see the above 2 newly created filter in the prompt. I had filled in MY Currency with "MYR" and US Currency with "USD". and I select Malaysia as country.
    Both Query1.NetSales and Query2.NetSales in the report appear the same value and it's in MYR currency. The figure is automatically calculate base on the country default currency. If I choose multiple countries in the prompt, I will get unknown number.
    My question is that, why is my currency in query filter does not take effect and overwrite the default currency.

Maybe you are looking for

  • NO Sound; experts please help

    I currently have no sound on my HP Spectre XT Ultrabook PC!!! Upon buying the laptop it had Beats audio on the laptop. That stopped working recently, but I still had the normal reduced audio, until that stopped completely soon after. I have tried mul

  • Can ypou move songs from one ipod to another?

    Is there a way to move songs from one way to another, if so can you tell me.

  • Error executing a callable statement on a pooled connection

    Hi, I have an Oracle function that returns a number: create or replace function S2B_STOP_STAGE (DOC_ID number, ST_ID number) return number ... and the following Java code: Class.forName("weblogic.jdbc.pool.Driver").newInstance(); conn = DriverManager

  • Problem getting logged in username during runtime

    Hey guys. I am trying to get the username of the logged in user during runtime and set that value to a bind variable in an MSSQL statement. Im using the following method to get the userID but it crashes when trying to get the principle user: public S

  • Query - restricting rows based on specific combinations of columns

    I have two columns in two different tables T1 and T2 like below T1.Column1 T2.Column2 1 a 2 b 3 c 4 d 5 e I need all the combinations of values in the columns, which I can choose like select T1.Column1, T2.Column2 from T1, T2 ------ (Without specifyi