Prompting the user to enter Parmeters

I am trying to create a parameter code that prompts the user to ask for input dates between Date1 and Date2 my code is below. How can I correct this ?
WHERE
( OI_ADJUSTMENT_DTL_PAYMENT.RESP_GUAR_NBR=OI_ADJUSTMENT_HDR_PAYMENT.RESP_GUAR_NBR
and OI_ADJUSTMENT_DTL_PAYMENT.SUPP_PAT_NBR=OI_ADJUSTMENT_HDR_PAYMENT.SUPP_PAT_NBR
and OI_ADJUSTMENT_DTL_PAYMENT.ADJ_HDR_ID=OI_ADJUSTMENT_HDR_PAYMENT.ADJ_HDR_ID
and OI_ADJUSTMENT_DTL_PAYMENT.AR_PROC_SET=OI_ADJUSTMENT_HDR_PAYMENT.AR_PROC_SET)
AND OI_REVERSAL_PAY_ADJUSTMENT.REVERSAL_DT BETWEEN @variable('Enter Begin Date MM/DD/CCYY')
AND @variable('Enter End Date MM/DD/CCYY')
AND OI_ADJUSTMENT_DTL_PAYMENT.TABLE_TYPE = 'C'
Thanks!

If you are simply running SQL statements in the worksheet (ie F9), you can use either substitution variables or binds as follows:
Substitution variables:
REVERSAL_DT BETWEEN to_date('&begin_date', 'MM/DD/YYYY') and to_date('&end_date', 'MM/DD/YYYY')
Binds:
REVERSAL_DT BETWEEN to_date(:begin_date, 'MM/DD/YYYY') and to_date(:end_date, 'MM/DD/YYYY')
If you are running your statements as a script (ie F5), you can use substitution variables as follows:
accept begin_date char prompt 'Enter Begin Date [MM/DD/YYYY]:'
accept end_date char prompt 'Enter End Date [MM/DD/YYYY]:'
select ...
from ...
where ...
and REVERSAL_DT BETWEEN to_date('&begin_date', 'MM/DD/YYYY') and to_date('&end_date', 'MM/DD/YYYY')
You can use bind variables when running as a script (F5), but you need to use substitution variables to prompt the user for values, so for your case, there wouldn't be a benefit for using bind variables with F5.
Note that substitution variables are not character values, but rather part of the statement, which is you you need to put the quotes around them when simply using them for character values. Binds on the other hand are treated as character values and we don't need the quotes when using binds.
theFurryOne

Similar Messages

  • Prompting the user to enter a valid value in an applet

    hi everyone!
    i have this code and i want to prompt the user to set a value<1000.
    this doesnt work.if i enter a value <1000 the input dialog appears again.
    whats wrong?
    public void init()
       String j = JOptionPane.showInputDialog(null, "Enter a number less than 1000 but greater than 0");
       int i = Integer.parseInt(j);
       while(i>1000||i<1)
          String k = JOptionPane.showInputDialog(null, "Enter a number less than 1000 but greater than 0");
          int y = Integer.parseInt(k);
    ....code executed while i<1000 or i>0

    Your while is looping on i, but inside you're setting
    y not i. This should work:
    do {
    String k = get input from option pane
    int i = Integer.parseInt(k);
    } while (i > 1000 || i < 1);
    In BinaryDigit's code, you won't have access to "i" after the loop. Declare it outside the loop (as you had it).
    int i = 0;
    do {
    String k = get input from option pane
    i = Integer.parseInt(k);
    } while (i > 1000 || i < 1);

  • How do I prompt a user to enter numeric data while a vi is running?

    I am writing a Labview vi that to calibrate angle sensors. I need to prompt the user to enter numeric or string data for the low and high angle points so the vi can then calculate the span based on these values and the a/d output differences at these two points. I can't use preset points because the angle data is resolute to 0.1 degrees, and having the user raise or lower a boom to a predefined point is not within reasonable expectation. I would be much obliged for any help that is offered.

    Build a subVI that has two numeric controls for the user to input the data (name them something appropriate like "High Angle" and "Low Angle").
    Add and "Enter" button to the front panel.
    Set the subVI preferences to include Open Front Panel When Called and Close Afterwards if Originally Closed. these are in Windows Appearance, Customize.
    Put a delay (say 50 ms) and a while loop on the block diagram to wait until someone presses the button.
    Connect your front panel controls to outputs on the connector pane.
    This will pop up a dialog type of window when you need the user to input data. And make the dialog window disappear when done. You can also add valid data checking to the subVI and whatever else you need.
    Rob

  • How to force the user to enter a value in the prompt

    Is there a way to force the user to enter a value in the prompt before they run the report?
    We have a customer specific dashbaord. The user has to enter a customer number in Dashbaord prompt on a first page of the dashboard. We store that value in a presentation variable. That presenatation variable value is being referenced in all the other pages of the dashabord. If the user does not enter a values in the first page and directly navigates to the other pages on the dashbaord, the reports on the other pages start to run for all the customers. Is there a way to force the customer to enter a value in the prompt before running any of the reports on the dashboard?
    Thanks!

    by Answer prompts, do you mean Column prompt?
    I can not use Column prompt in this senario as the user should not have to enter the same customer number over and over again when he navigates from one page to another on the same dashboards. If there is a way to default the column prompts then this would be an acceptable solution.
    I have already defaulted the prompt to a value as suggested in hte blog, but the issues occurs when the user erases the defaulted value. Is there are way to set the default value within the report?
    Can you please explaing mroe about option 3 regarding Java Script. Also please let me know what other options there are so that I can check whether they will fit my needs.
    Thank you very much!

  • How to insert a dialog box which prompt the user enter the general information in the SDI application?

    Im using the SDI application to build a system and now i would like to insert a dialog box which allow the user to enter the general information about themselves and then it will be saved into a text file. How to insert the dialog box and show the dialog box at the beginning of the program.

    Hi Lee,
    The easyest way to achieve this is to declare an object of your dialog box derived class (e.g. CUserInfo, public CDialog) into the InitInstance method of the main application class.
    Depending on the behavior you want you can place the code before dispatching the commands from command line (in which case the main frame of the SDI application will not be shown), or after, in which case the UserInfo dialog box will be shown over the main application window as modal.
    The code snipped bellow can be more helpfull:
    BOOL CSDIApp::InitInstance()
    AfxEnableControlContainer();
    // Parse command line for standard shell commands, DDE, file open
    CCommandLineInfo cmdInfo;
    ParseCommandLine(cmdInfo);
    //prompt user for data
    CUserInfo dlg;
    if (dlg.DoModal() == IDOK)
    //do something here with the data
    else
    return FALSE;//i.e. quit the application if the user presses the 'Cancel' button
    // Dispatch commands specified on the command line
    if (!ProcessShellCommand(cmdInfo))
    return FALSE;
    // The one and only window has been initialized, so show and update it.
    m_pMainWnd->ShowWindow(SW_SHOW);
    m_pMainWnd->UpdateWindow();
    return TRUE;
    Hope this helps,
    Silvius
    Silvius Iancu

  • Form A calling Form B, can I prompt the user for parameters?

    I'm in the learning curve for Oracle Forms. I have one form that is little more than a menu of buttons that each call other forms. Let's say for the sake of argument that I have a button marked "Quarterly Report". I believe I have to put a call_form('quarterly_rpt_parms.fmx') on that button. The quarterly_rpt_parms form would just be plain with a single field the user fills in (quarterly ending date) and another button that issues a call_form('quarterly_rpt_view.fmx').
    Is there a built in method of prompting the user for that date, rather than create a separate form just for that purpose?
    Thanks in advance,
    Darren

    You can very easily put a prompt for the date on the top line of your Quarterly Report form, or you could put it in the form, but on a separate canvas, which would show only when the form starts. Once the user enters the date and clicks the report button, you could show the report canvas and hide the input canvas.
    ...and you don't need the '.fmx' in the call_form.

  • Suggestion on using the variable index used in prompting the user

    import java.util.*;
    public class CaseOne {
    // main(): application entry point
    public static void main(String[] args) {
    //define necessary data structures (Step 1)
    int count = 5; // number of elements to average
    double value; // handle input
    double total = 0.0; // the running total initialized to 0
    int index =1; // the index of the number read,
    used in prompting the user//
    // index prompt - adds the index value to prompt and increments index
    Scanner stdin = new Scanner(System.in); //input stream
    // process inputs to determine input total (Step 2)
    System.out.print("Enter an integer number: ");
    value = stdin.nextInt();
    total += value;
    System.out.print("Enter an integer number: ");
    value = stdin.nextInt();
    total += value;
    System.out.print("Enter an integer number: ");
    value = stdin.nextInt();
    total += value;
    System.out.print("Enter an integer number: ");
    value = stdin.nextInt();
    total += value;
    System.out.print("Enter an integer number: ");
    value = stdin.nextInt();
    total += value;
    // compute average (Step 3)
    double average = total / count; // the target computation
    // display average (Step 4)
    System.out.println("The input average is " + average);
    } // end method main
    } // end class CaseOne

    I have a new stick so I'll give the OP a prod with it.
    If you want to do the same thing numerous times, what should you use instead of repeating your code over and over again?

  • Need help with re-prompting the user for input .

    I am trying to wright a code the re prompts the user for input if they enter anything but an integer but I keep getting a "char cannot be dereferenced" error when I try to compile.
    Here's what I have got:
    import java.util.Scanner; // imports Scanner methods
    public class SandBox
      public static void main(String[] args)
          // re-prompting test
          Scanner in = new Scanner(System.in);
          System.out.println("Please enter an integer: ");
          String i = in.nextLine();
          for(int a=0; a<i.length(); a++)
              if( (i.charAt(a).isDigit()) ) {
                  System.out.println("Thank you!");
                  break;
                } else {
                    System.out.println("Please try again");
                    continue;
          int b = Interger.parseInt(i);
      }// end of class
    }//end of main method
     

    Sorry for double posting but it won't let edit my last post.
    I would prefer to go through it without using try catch because it takes longer though I will use it if I cannot get the other way working. I currently have two versions of the code both using try catch and the other way but both say that they "cannot find symbol" when I try to parse. here are both versions of the code:
    import java.util.Scanner; // imports Scanner methods
    public class SandBox
      public static void main(String[] args)
          // try catch test
          boolean inputIsFaulty = true;
          int inputInt = 0;
          Scanner in = new Scanner(System.in);
          do {
             System.out.println("Please enter an integer: ");
             String i = in.nextLine();
             for(int a=0; a<i.length(); a++)
                if (Character.isDigit(i.charAt(a))) {
                  System.out.println("Thank you!");
                  inputIsFaulty = false;
                } else {
                    System.out.println("Please try again");
            while (inputIsFaulty);
          inputInt = Integer.parseInt(i);
      }//end of class
    }//end of main method
    import java.util.Scanner; // imports Scanner methods
    public class SandBox2
      public static void main(String[] args)
          // try catch test
          boolean inputNotOK = true;
          int inputInt = 0;
          Scanner in = new Scanner(System.in);
          do {
             System.out.print("Please enter an integer: ");
             String inputStr = in.nextLine();
             try {
                inputInt = Integer.parseInt(inputStr);
                // this line is only reached if the parse works
                inputNotOK = false;
             catch (NumberFormatException e) {
                System.out.println("You didn't enter a proper number.  Please Try again.");
          while (inputNotOK);
          inputInt = Integer.parseInt(imputStr);
      }//end of class
    }//end of main method
     

  • How to rescrict the user to enter a manual condition type once in pricing

    Hi All,
    We are using a condition type ZSP1 in our pricing procedure. I want that the user should be able to enter the condition type only once during pricing.
    eg Suppose the user has entered ZSP1 as 100 in the sales order , then he should not be able to enter ZSP1 again in the pricing. Only one entry should be allowed for the condition type ZSP1
    Please respond if you need any further clarification.
    Regards
    Adity

    Hi,
      you can Restrict the entry of Condition type Twice with Following User Exit
    USEREXI
                             USEREXIT_PRICING_PREPARE_TKOMK
    USEREXIT_PRICIN
    we have Implemented for one our Client

  • How can I use wpg_docload.download_file and prompt the user to save it?

    Hi,
    Posted about this a couple of weeks ago with a text file and got the following code (where x.zip=x.txt) and it worked fine. Problem is that I need to do this with zip files, and when I run the code below, it simply displays the zip file, rather than prompting the user to save the file. Have tried every mime type under the sun. No joy.
    The How to Upload and Download Files in an Application Advanced Tutorial for Release 3.2 does not work for APEX4. Simply creating a file browse item leads to Error ORA-20999: P3_FILE_NAME has to have a valid BLOB column as source. and so I cannot follow that tutorial to get further clues on how to make this work.
    Susan
    Thanks and here's the wpg_docload.download_file code that displays a binary file:
    declare
    lob_loc bfile;
    v_length integer;
    fname varchar2(100) := 'x.zip';
    l_blob blob;
    des_offset number := 1;
    src_offset number := 1;
    begin
    lob_loc := bfilename('CELFILES_9906', fname);
    v_length := dbms_lob.getlength(lob_loc);
    DBMS_LOB.createtemporary(l_blob, FALSE);
    dbms_lob.open(lob_loc, dbms_lob.lob_readonly);
    DBMS_LOB.LOADBLOBFROMFILE(
    dest_lob=>l_blob,
    src_bfile=>lob_loc,
    amount=>v_length,
    dest_offset=>des_offset,
    src_offset=>src_offset);
    owa_util.mime_header('application/zip', false);
    htp.p('Content-length: ' || v_length);
    htp.p('Content-Disposition: inline; filename="' || fname || '"');
    -- close the headers
    owa_util.http_header_close;
    -- download the BLOB
    wpg_docload.download_file( l_blob );
    DBMS_LOB.freetemporary(l_blob);
    EXCEPTION WHEN OTHERS THEN
    DBMS_LOB.freetemporary(l_blob);
    RAISE;
    end;

    I downlod blobs like this without issue (using IE7 and FF):
    owa_util.mime_header('application/octet', False);
    HTP.p ('Content-length: ' || DBMS_LOB.getlength (l_blob));
    htp.p('Content-Disposition: attachment; filename="'||v('P20_FNAME')||'"');
    OWA_UTIL.http_header_close;
    WPG_DOCLOAD.download_file (l_blob);
    ...Remember, that it's your browser's MIME type settings that determine whether to pop up a save diaglog box. In FF 3.6 > Tools > Options > Applications > Content type. The set action for each mime type.

  • Can Signal Express prompt the user for the next ascii file name?

    I am using the following to collect data from Thermocouples and Strain Guages in our plant.  It allows me to plt data every second, while recording only every 3 seconds to cut down the file size.
    Big Loop- 
    Small Loop- 
          Conitional repeat...
          DAQmx Aquire...
          Statistics (mean) Temp...
          Statistics (mean) Press...
          Current Iteration...
    End Small Loop-
    Save to ASCII/LVM
    The problem is that I have to configure the save step as "overwrite once, then append" so I get a single file each time the project runs.  How can I get Signal Express to either prompt the user for a new file name with each run or have the ascii file saved into the log directory for that run.  As it stands now, the file gets overwritten with each new project run.
    Thank you.
    new user

    Hi crawlejg,
    You can set signal express to increment the file being created each time.  But if you are looking for 1 new file each time the project runs you will have to use LabVIEW as this advanced functionality is not available in Signal Express.  If you need help getting this to work in LabVIEW or have any other questions please feel free to ask!
    Sincerely,
    Jason Daming
    Applications Engineer
    National Instruments
    http://www.ni.com/support

  • How to restrict the user to enter only numeric values in a input field

    How to restrict the user to enter only numeric values in a input field.
    For example,
    i have an input field in that i would like to enter
    only numeric values. no special characters,alphabets .
    reply ASAP

    Hi Venuthurupalli,
    As valery has said once you select the value to be of type integer,once you perform an action it will be validated and error message that non numeric characters are there will be shown. If you want to set additional constraints like max value, min value etc you can use simple types for it.
    On the project structure on left hand side under local dictionary ->datatypes->simple types create a simple type of type integer
    The attribute which you are binding to value property ;make its type as simple type which you made
    Hope this helps you
    Regards
    Rohit

  • Popup screen with two check box and a text area for the user to enter value

    hi,
    i have a requirement when a button is clicked a popup screen should appear with two check box and a text box where the user can enter a value.
    is there any function module which has that functionality

    Hello,
    You can create a new screen and select the screen type as <b>model dialog box</b>.This will give you a<b> pop-up screen</b> and you can call this model dialog box screen in the PAI of the screen where the button is present.(At user-command).
    <b>case ok_code.
    when 'BUTTON'.
    call screen 200 starting at 10 10.</b>
    You can design the PBO of this pop-up screen as per your needs.
    Regards,
    Beejal
    **Reward if this helps.

  • How to customize SAPlogon so that the user cannot enter transaction code?

    I use PFCG to create a role which limit the choices of menu.  I create a user and set the role to the user.
    I would like to disable or hide the COmmand Field so that the user cannot enter transaction code directly.
    Is it possible to do so?
    If yes, would anyone show me how?
    Any discussion is welcome.

    anyway you are going to restrict the user authorization vai role, insted of going throught the whole tree to execute the tcode there is shotcut as command line. here you can save much more time for the user insted going through the tree always. there is no harm for the system if you keep the command line option. What and why you think it should be disabled?
    Cheers,
    -Sunil

  • How to install firefox 36.0 silently thorugh command line? I tried with -ms switch but still it prompts the user. Please help

    I have been using these commands to push Mozilla to client computers and it worked fine so far however now it is not working.
    I treid following command however it prompts the user to install/upgrade instead of installing silently.
    "Firefox Setup Stub 36.0.exe" -ms /qn /norestart
    Please help!!!

    Hi vparmar,
    We recommend installing Firefox in a traditional way to avoid any further problems or conflict with the system. [[How to download and install Firefox on Windows]]
    Thank you.

Maybe you are looking for

  • New IPod Classic with Itunes on a PC, XP, SP2

    I installed ITunes on my PC, it then converted all the .wma files to .aac. So now my music appears in Itunes ok. I plug the IPod in to the USP port and It comes up in ITunes like it does on my MacPro, but I then get a message saying that this IPod wa

  • Installing repository packages offline

    I am working on a Solaris 10 system not connected to Internet. Is there any means to download packages along with their dependencies to some other system connected to Internet and then install downloaded packages offline?

  • Export addresses to excel?

    Is there a way to export my addresses to excel? I would rather not do this one at a time. Thanks Matt

  • How to create lock object?

    How to create lock object,- by going to se11 i have created but when i am going to sm12 to see wheather the table is locked or not then it is showing no entries found. Please help me how to create Lock object and see wheather thetable is lock is lock

  • When I press "Backspace" it takes me to my previous page

    When I press "Backspace" it takes me to my previous page and when I press "Space" its takes me to the bottom of the page Im using: Safari 5.0.2 (7533.18.5)