Prompts for returning report

SQL*Plus
What techniques are there for prompting the user in inputting a primary key that will be used to produce a report based on one table?
For example the table is:
CUSTOMER(customer_id, name, address)
Message was edited by:
Arlas

This doesn't seem to work.
ACCEPT customer_id CHAR PROMPT 'Enter Customer ID > '
select      c.customer_id, a.account_id, ca.account_type, o.order_id
from     customer c, account a, customer_account ca, customer_order co, order o
where     a.account_id  =  c.account_id
and     c.customer_id = ca.customer_id
and     c.customer_id = co.customer_id
and     co.order_id   = o.order_id
and     c.customer_id = '&customer_id';It returns:
old   8:  and c.customer_id = '&customer_id'
new   8:  and c.customer_id = ''
no rows selectedIt seems as if the ACCEPT statement is of o use because it skips past the prompt and uses no value.
I tried something else. I tried to first give the ACCEPT statment separately and game a customer ID, then i input the select statement and now it seems to work. Unfortunately it seems need to do it this way although i need to give 2 inputs for just one report.
Ideas?
Message was edited by:
Arlas

Similar Messages

  • Financial Reporting: One prompt for all reports in a book

    I want to prompt once for all reports in the book for year and month. Right now it prompts for each report. I see that you can select to "respond at book level" but I don't know if that will solve the problem and I can't see how to make that drop down appear.
    Books points of view are set to User POV for year and month now. When I try to edit the memebr selection I see member names, sub var and User POV but no prompt choice.
    Thanks for any help you can provide.

    user644540 wrote:
    I want to prompt once for all reports in the book for year and month. Right now it prompts for each report. I see that you can select to "respond at book level" but I don't know if that will solve the problem and I can't see how to make that drop down appear.
    Books points of view are set to User POV for year and month now. When I try to edit the memebr selection I see member names, sub var and User POV but no prompt choice.
    Thanks for any help you can provide.I suggest you may repost the message in Planning and Budgeting forum for FR related issues.
    Cheers!

  • Date prompt for Answers report.

    Hi,
    I created a report in Answers. I created a prompt on a date field which shows when the Account was closed. I foramtted the date field into a custom date format and the results also display in that format. for ex: the format I created was DD-MMM-YY. When I create a prompt for this field the drop down values show as 4/24/2008 12:00:00 AM, But I want the drop down for the prompt to be displayed as the same format as the column i.e DD-MMM-YY. This is for just a regular report prompt (column filter prompt) and not any dashboard prompt. How can I acheive this? Thanks.

    hi,
    But the prompt displays DD/MM/YYYY. How can I make the prompt also display DD-MMM-YY? Also if I create a dashboard then how do I use the same prompt with DD-MM-YY formatIn both the report and prompt fx use the following syntax and make is prompted on report column "fx"
    EVALUATE('TO_CHAR(%1,%2)' AS CHARACTER ( 30 ),Dim-Date.REPORT_DATE, 'DD-MON-YY')
    Thanks,
    Saichand.v

  • Bypass a prompt for broadcasted reports-designer only

    Dear All,
    I'm having a little question concerning @prompt, as I used it in WHERE clause
    to force users to choose only dimension value at a time ('mono' option) to lower
    down number of datas.
    But as reports designer I'd like to bypass this prompt .. is-it possible through
    standard option ? or should I implement a technical trick like create 'ALL' in lov
    and make this value available only for designer?
    I noticed an optional value user:0 in @prompt syntax but coulnd find any documentation
    related to this, does anybody know how to use it ?
    Thanks for your help,
    Rgds,
    Nicolas

    By bypassing the prompt do you mean that the users should not be prompted to enter values in the prompt rather it should pick up a default value and generate the report on the basis of that.
    There is no such way in Designer to bypass a prompt. We can add ALL in the LOVs of the object but still user's will be prompted for the value, here they can select ALL from the LOVs. You can also specify to Keep the Last Values Selected in the prompt. Hence everytime the report the prompt will appear with the Last Value that was passed. You can either change it if you want or can refresh the report with the same value.
    To achieve this you can use "Persistent" parameter.
    This parameter keeps the last entry in the prompt as the default value when reusing the prompt.
    The syntax of @prompt then becomes:
    @prompt('prompt','Data Type','LOV',Mono or Multi,Free or Constrained,Persistent or Not_Persistent,,User:0)
    Here the User:0 or User:1 is used to specify the order of prompts as they should appear in the report.
    BO XI 3.0 also has a feature of "Optional Prompt". You can define a prompt as optional, hence its not mandataory for the user to enter a value in the prompt.
    I hope this should help.

  • Single prompt for multiple reports in a webi doc

    I have a webi document with three reports; each three has it's own query.
    I want to apply a date prompt one each report; how do I create a prompt that could accept date value only once and apply on all three queries.
    I tried to put the date prompt on each query separately and it prompts for all three; means I have to enter same date value three times.
    Please advise.
    Thanks

    Hi Ahmed,
    BO differentiate prompts on the basis of its definition.
    You must use the same prompt definition in all the three queries to display it once while asking for the user response:
    @Prompt('Text','A'\'D',{'Class\LOV Object'},mono\multi,free\constrained)
    P.S.  you need to drag it separately in the 3 queries.
    Regards,
    Rohit

  • Prompts for different report blocks

    Hello All,
    I have a report which has two sections on the Summary Report.both report sections are filteres on prompts input by user
    Top Section =   based on the 'date' from the user response
    Bottom Section = based on 2 prompts  'date' plus the 'RSO' from the user respond
    Right now I have  Date and RSo in my query filter as prompt. But  RSO prompt should not apply to second block of report.How can I achieve this?
    Thanks in advance.

    Thanks Yuvraj,
    But I have to display the both report blocks in single report which i am doing in webi the report was input both prompts but one prompt had to effect on one block and another block has data based on both prompts.This is my req...Can I creating 2 separate queries and display in the report output in the below fashion as 2 report block in single report ?
    query 1
    prompt RSo and Date
    Query
    only Date

  • ComboBox control for Crystal Reports

    <p>Does anyone know if there are combobox style controls that can be used in crystal reports? We&#39;re using Business Objects XI R2 and Crystal Reports Developer XI to create the reports. Reports are delivered via Infoview.</p><p>The reports we&#39;re creating in Crystal has account number as an input parameter/prompt for the report. Some of our releationships have few hundreds to 1000 accounts. So the usability of a normal HTML SELECT control degrades pretty fast. A combobox would allow the user to type in partial names and scroll to that particular value. E.g.: The search on Google Suggest <a href="http://www.google.com/webhp?complete=1&hl=en">http://www.google.com/webhp?complete=1&hl=en</a></p><p>Does  WebElements have any control that can be used? Or are there 3rd party controls that are similar?</p><p>Thanks</p>

    Hi,
    I am looking for a Crystal Add-In to display a string that comes into my report as an array. I am using the Crystal JOIN function to get the elements, separate them by a comma and display them in a text object. This has worked well until I started working on a new report that returns many medication names as members of the array. Displaying them in the text box with "Can Grom" Checked has become quite messy, as this text box is in the Report Header section.
    What I would like to do is display them as a ComboBox (or dropdown, if that is the same thing) with the first medication showing (say Aspirin) and then the user can click on the drop down and see the rest of the medications in the array (Tylenol, etc.)
    This is display only data.
    It seems like the Crystal Report Webelements might do the trick. I have some questions:
    1 - Even though the link says you can incorporate web web controls onto your Crystal Report will this be visible from Crystal itself? The reason I ask is that we use a custom Report Viewer that basically renders on a web page what Crystal displays
    2 - Do WebElements contain the ComboBox I am looking for?
    Thanks,
    Dick Rosenberg

  • Report does not prompt for parameters when SeparatePages=False

    Hi all. We are using CR2008 Basic w/SP1 along with VS2008. Within our application, reports pull up fine and prompt for parameters using the CrystalReportViewer against the web service. SeparatePages is set to True. We want to change SeparatePages to False, but when I do that any report that should prompt for parameters is not.
    The reports were created in CR 8.5. We have upgraded them to CR2008 (open, refresh, save) which has greatly increased performance. With some further testing, I've discovered that if I take a report that doesn't currently have any parameters and add one via VS2008 report designer, it WILL prompt for the parameter when I run it in our application with SeparatePages=False.
    So I'm leaning that the problem has to do with the reports originally being created in 8.5. I've tried modifying an existing report with parameters, deleting parameters and re-adding, but I still can't get these to prompt for parameters with SeparatePages=False.
    Again, these same reports prompt for parms and work fine as long as SeparatePages=True.  I'm hoping someone might be able to shed some light on this. There are over 400 reports so re-creating them from scratch under CR2008 will be a painful option
    If I need to provide any additional information just let me know. Thank you!
    Sheila

    We are still working to resolve this issue. Testing has shown that for reports that don't return a lot of data, the prompt for parameters will display. But for larger reports, we just see the hour glass and the parameter prompt never displays. It's almost like the reports are trying to return the full dataset without any paramters being passed BEFORE it will prompt for parameters. This would explain why smaller reports will prompt and larger reports never will (?). Not sure that is what is happening.  Again, with SeparatePages=True we are immediately given the parameter prompt. With SeparatePages=False we run into the issue of no prompts.
    Here's the code behind if it help:
    ReportDocument report = new ReportDocument();
    try
        String rptFileName = @"App_Data\Reports\" + Request.QueryString.GetValues(0).GetValue(0).ToString();
        log.writeLog("Loading Report: " + rptFileName);
        String rptFile = Server.MapPath(rptFileName);
        report.Load(rptFile);
        report.Refresh();
        ConnectionInfo crConnectionInfo = new ConnectionInfo();
        log.writeDebugLog("ServerName : " + rProperties.ODBCSource);
        crConnectionInfo.ServerName = rProperties.ODBCSource;
        log.writeDebugLog("DatabaseName : " + rProperties.ODBCSource);
        crConnectionInfo.DatabaseName = rProperties.ODBCSource;
        log.writeDebugLog("UserID : " + rProperties.ODBCUser);
        crConnectionInfo.UserID = rProperties.ODBCUser;
        log.writeDebugLog("Password : " + rProperties.ODBCPassword);
        crConnectionInfo.Password = rProperties.ODBCPassword;
        foreach (CrystalDecisions.CrystalReports.Engine.Table table in report.Database.Tables)
            TableLogOnInfo crTableLogOnInfo = new TableLogOnInfo();
            crTableLogOnInfo.ConnectionInfo = crConnectionInfo;
            table.ApplyLogOnInfo(crTableLogOnInfo);
    catch (Exception err)
        log.writeLog("Error Loading Report: " + err.ToString());
        this.lblError.Text = err.ToString();
        this.ErrorTable.Visible = true;
        this.ReportTable.Visible = false;
        return;
    CrystalReportViewer1.HasCrystalLogo = false;
    CrystalReportViewer1.ReportSource = report; // _serverFileReport;

  • Preview and print a Crystal report prompted for the sa password

    Dear All,
    Our customer has Crystal report add-on to be installed. When we Preview and print a Crystal report, we got a window prompted for the sa password. Even we type in a correct password, it still says wrong password...
    Every time when I open my report in Crystal Basic 2008 on the server, then go database expert >> My connections >> click + in front of the connection name, it asks my sa password. I type in my password then save and close. Next time when I open the report and go my connections, I have to type in my password again. This only happens on one customer.
    Any idea? Thanks a lot.
    Regards,
    Yuka

    Hi Yuka,
    1) All their SAP client workstation, they have to have use SQL2008 CD and install SQL Client on it
    Correct, MS does NOT support MDAC or WDAC when connecting to SQL 2008.
    2) Then go ODBC >> SQL Native Client 10.0 >> Create a new connection to SAP server. Should we use sa user or another use that has the same authorization as sa?
    Correct again if they are also using ODBC to connect, as for using the sa account or creating a new one is up to you. I suggest creating a Crystal account with what ever rights your app needs, this way if tracing it turned on etc. you can confirm who is actually running the report.
    3) Then from MY Crystal report, I have to use ODBC connection as well?
    Just to clarify, if you created your reprots using OLE DB then they can do so also. But you need to update your connection properties. Open each report click on Database, Set Location, scroll down to OLE DB and expand and then choose MS SQL Server Native 10 as your OLE DB provider, fill in all the logon info and then verify the database. Do the same for each subreport also.
    Save your report and either send them the new one or if you are doing this remotely then replace the original report.
    VERIFY your reports to confirm they still return correct data and do work as expected.
    Or if you are using ODBC then yes you do select the MS 10 driver with a new DSN. Then do the above to update the reports to all use ODBC as their data sources.
    Hope this is all clear now....
    Thanks again
    Don

  • XL Reporter - Prompting for Production Order Number - How to?

    I have watched the FlashBook's for creating reprots, and following the directions. When I go to create a new Paramater, the Document Number is not an available Dimension.
    Can anyone point me in the right direction in setting up an XL Reporter report that prompts for Production Order number / Document ID? How do you create prompts for record ID's?
    Thanks.
    Mike
    Edited by: Mike White on Jun 16, 2008 11:11 PM

    Thank you for the help. This gets me closer then I was before.
    To test, I am list listing the Production Order Document Number and the Due Date. Looking to list only the Production Order and Due Date from a prompted Production Order.
    I tried both Cell Expansion and Row Expansion using the parameter you suggested. Cell Expansion returns all documents, but with a document number of 0. Row expansion gives me an error.
    I have captured all the screen shots and posted them to the web. If you wouldnt mind taking a quick look. I am sure something I am doing is off, but feel I am close with your help.
    http://www.level8systems.com/xlerror.jpg
    Thank you.
    Mike

  • Crystal Report prompts for username / pwd when deployed to Bus Obj Server

    Hi All,
    I'm relatively new to Crystal Reports development.  My day job is test analyst.  I'm reasonably technically proficient.
    PROBLEM
    I have created a number of Crytsal Reports which have now been deployed to an Enterprise Business Objects Report Server.  The Server is Business Objects Server XI release 2.
    When I run the report in Crystal Reports Desiger 2008 it does not prompt me to enter the database credentials except if I have modified the SQL command or some other report detail.  Most times I run the report, no database username / pwd is required because I already set this up in the datasource config.
    I' connecting to an Oracle database using ODBC (RDO) connection type.  I cannot get the ODBC (RDO) connection type working from my PC using Crystal Reports Designer 2008, because I don't have ODBC configured for my datasource.  Instead, Im using the native Oracle Server driver to connect to my datasource.
    An existing user in the client organisation configured my report to use the ODBC (RDO) conneciton type for me because the Business Objects Server in the client organisation does not (currently) support the native Oracle driver.  Other reports this user has created and deployed using the ODBC conenction type run successfully without prompting user to enter the database connection credentials.
    NOTE:
    This report users an SQL Command (new to Crystal 2008 I beleive?).  The command is reqiured for this report due to the complexity of the underlying SQL query.
    Does anybody know why the report keeps prompting me to enter the database credentials at runtime?  Obviously for security reasons I don't want report users to have to enter the database schema name and password in order to run the report.

    Hi,
    You need to uncheck "Propmt the user for database logon when viewing". You will find this when you deploy the report on the BOE XI R2.
    The deployment step main heading is
    Specify Databse Crendentials.
    Hope this helps,
    Thanks
    -Azhar

  • Crystal report input prompt..for sub report

    Hi All,
    I developed crystal report and retreived the fields from the exsiting Query.Now for  enhancing the report i must creat a sub report for th eexisting one.In this case iam getting 2 input prompts one for the old report and the other one is for the enhanced sub report .But the requirement is tha t, the report must get only one input prompt for both the reports. Is this can be possible from the Query end or the crystal report end?
    YVL

    Hi Vijayalakshmi
    You can apply just one input parameter for the main report and then link your subreport with this parameter.
    Once you link the subreport, you would get only one prompt for inputting parameter values.
    This way you can optimize the performance of the report as well.
    For more information about linking subreports you can refer to the user guide for the respective crystal reports version you are using.
    Hope this helps!!!
    Regards
    Sourashree

  • Run report with SSO/OAM by URL without prompt for uid/pwd?

    Can I run a report by URL to a report engine protected by SSO/OAM without being prompted for credentials?  Asking the same in another way, is there a way to pass the SSO/OAM credentials in the URL (or otherwise) to avoid being prompted for them?  I find many references to how to do this for the database connection credentials, but I'm trying to pass the SSO/OAM credentials on the URL.  My end game is to be able to run a report from VB.NET from a kiosk application in VB.NET where there is no attendant and client does not want to have to log into SSO/OAM at any time.  My VB.NET code will submit the URL, grab the output and manage the work stream (print, save, store to doc repos, etc.) in the kiosk code.
    Thanks in advance
    Hank
    12/29/2014
    For the sake of those that come later with this same question:
    It turns out there is a way to do this after all.  I opened an SR with MOS and with a little trial and error we worked out that the following does work:
    http://<theFormsReportsServer>:9002/reports/rwservlet?report=myTestReport.rdf&authid=myOAMUserId/mySSOPasswd&userid=dbUid/dbPwdK@DbTnsEntryName&destype=cache&desformat=html
    Note that there are two necessary bits to this in addition to specifying the authid=SSO Credentials part.  The first is that you must use the WLS_REPORTS port (9002 in our case), not the OHS port (8888 in our case).  The other is that you must provide the database connection.  I have done it overtly in this syntax by specifying userid=DbCredentials@Db, but it should also work to substitute the ssoconn functionality in order to hide the Db credentials.  That is not an issue in our environment so i have not actually tested it.
    Regards
    Hank

    Hi;
    It's been too long since I've done anything in Access. Have a look at this old sample, and see if it helps:
    https://smpdl.sap-ag.de/~sapidp/012002523100006013432008E/rdc_vba.exe
    Regards,
    Jonathan

  • Crystal Report Viewer Credential Prompt for Report with Dynamic Parameters

    The .NET Crystal Report Viewer is prompting for database credentials when launching a report containing dynamic parameters. This only occurs for reports created with SAP Crystal Reports 2011 designer. Reports created with Crystal Reports XI designer (where dynamic parameters were first introduced) work correctly.
    The credential prompt window contains the following fields:
    - Server Name: <server name> (disabled)
    - Database Name: <database name> (disabled)
    - User Name: <empty> (enabled)
    - Password: <empty> (enabled)
    - Use Single Signon Key: false (disabled)
    The values in the prompt window which are disabled are the database connection values used during the design of the report in the SAP Crystal Reports 2011 designer.
    Expected Result:
    - No prompt for database credentials.
    - Values read from the database should be populated in a drop down for the dynamic parameters.
    Environment:
    - Visual Studio 2010 (C#)
    - Windows 7 Enterprise
    - SAP Crystal Reports runtime engine for .NET Framework 4
    - SAP Crystal Reports, version for Visual Studio 2010
    - SAP Crystal Reports 2011
    The database connection is being set to use a DSN. It must be a DSN as the calling application is only aware of the DSN/Username/Password values. These values are being passed to the Crystal Report Viewer contained in a Windows form.
    The database connection for the report is being set as follows:
    foreach (InternalConnectionInfo internalConnectionInfo in this.report.DataSourceConnections)
        // Must set the UseDSNProperties flag to True before setting the database connection otherwise the connection does not work
        if (internalConnectionInfo.LogonProperties.ContainsKey("UseDSNProperties"))
            internalConnectionInfo.LogonProperties.Set("UseDSNProperties", true);
        // Supposed to set the database connection for all objects in the report (ie. main report, tables, sub reports)
        internalConnectionInfo.SetConnection(this.DSN, string.Empty, this.LoginName, this.Password);
    The SetConnection method's signature is as follows:
       SetConnection(string server, string database, string name, string password)
    As you can see from the code snippet above I am setting the DSN name as the server parameter, blank for the database parameter (a database connection using DSN should only require DSN name/Username/Password) and the database username and password respectively.
    Is this a SAP bug?
    Is this the correct way of setting the database connection to use a DSN?
    Is there some other properties that need to be set somewhere else in the report through code?
    Any help would be greatly appreciated.

    Thanks for the pointer to the database connection code generator. After taking a look at the output from the tool I was able to finally get the dynamic parameters to load and populate properly without prompting for credentials. I needed to tweak the outputted code a bit to match my requirements of using a DSN only connection.
    Instead of updating the database connection properties contained within the Report.Database.Tables collection from the CrystalReports.Engine namespace, I changed it to replace the database connection properties in the Report.ReportClientDocument.DatabaseController.Database.Tables collection from the CrystalDecisions.ReportAppServer.DataDefModel namespace. For one reason or another, using the RAS namespace solved the problem.
    Below is the updated code with the change made:
    using RAPTable = CrystalDecisions.ReportAppServer.DataDefModel.Table;
    foreach (InternalConnectionInfo internalConnectionInfo in this.report.DataSourceConnections)
        // Must set the UseDSNProperties flag to True before setting the database connection
        if (internalConnectionInfo.LogonProperties.ContainsKey("UseDSNProperties"))
            internalConnectionInfo.LogonProperties.Set("UseDSNProperties", true);
        // Sets the database connection for all objects in the report (ie. main report, tables, sub reports)
        internalConnectionInfo.SetConnection(this.DSN, string.Empty, this.LoginName, this.Password);
    // The attributes for the QE_LogonProperties which is part of the main property bag
    PropertyBag innerPropertyBag = new PropertyBag();
    innerPropertyBag.Add("DSN", this.DSN);
    innerPropertyBag.Add("UserID", this.LoginName);
    innerPropertyBag.Add("Password", this.Password);
    innerPropertyBag.Add("UseDSNProperties", "true");
    // The attributes collection of the tables ConnectionInfo object
    PropertyBag mainPropertyBag = new PropertyBag();
    mainPropertyBag.Add("Database DLL", "crdb_ado.dll");
    mainPropertyBag.Add("QE_DatabaseType", "OLE DB (ADO)");
    mainPropertyBag.Add("QE_LogonProperties", innerPropertyBag);
    // Pass the database properties to a connection info object
    ConnectionInfo connectionInfo = new ConnectionInfo();
    connectionInfo.Attributes = mainPropertyBag;
    connectionInfo.Kind = CrConnectionInfoKindEnum.crConnectionInfoKindCRQE;
    connectionInfo.UserName = this.LoginName;
    connectionInfo.Password = this.Password;
    // Replace the database connection properties of each table in the report
    foreach (RAPTable oldTable in this.report.ReportClientDocument.DatabaseController.Database.Tables)
        RAPTable table = new RAPTable();
        table.ConnectionInfo = connectionInfo;
        table.Name = oldTable.Name;
        table.QualifiedName = oldTable.QualifiedName;
        table.Alias = oldTable.Alias;
        this.report.ReportClientDocument.DatabaseController.SetTableLocation(oldTable, table);
    this.report.VerifyDatabase();
    Thanks again Ludek for the help.

  • Using one prompt for multiple fields in a report

    We are using Oracle CRM on Demand, Release 16.
    I have a report I am building that involves four different date fields. I'd like to give the user the ability to enter a date range for the date fields via a Prompt when the report executes. But the date range would be the same for all four date fields. Is there a way to capture the date range in one prompt, but use that same range in all four date fields in the report?

    I recommend to use two dashboard prompts, one for each date field of your range and each will set a presentation variable.
    Then use the FILTER metric function and reference the presentation variable.
    Best Regards,
    Christian

Maybe you are looking for