Using "User Input" in "Collect Payments"  instead of "Fixed Amount"

I've enabled "Collect Payments" on my form and I need to allow "User Input" instead of "Fixed Amount". I'm stuck... How do I do this?

Thanks Josh. I Appreciate it.
I did figure it out about 10 mins after I posted the question but thanks again man
Tom Ruley
Founder and President
The National Remember Our Troops Campaign, Inc.
P O Box 34093
Baltimore, Maryland 21221
Website:  http://www.nrotc.org
     Email:  [email protected]
    Phone:  410-687-3568
        Fax:  443-596-0730
Please remember our troops, our veterans and our military families.  Try to do something... anything... to honor their service and sacrifice

Similar Messages

  • Using User Input Rather Than "strStartFolder".

    Hi guys!  
    This script is very simple but it's part of a project I've been working on for some time now.  Any VBS guru (or novice for that matter) will be able to tell what it does after a brief scan of the code.  Again, like I said, this is a very simple
    script.
    For newcomers, this script siimply looks for duplicate files in a folder on one or more of your drives.
    However, I'm having 2 issues...  
    First, I need to change the script to where the Wscript engine is used to ask for user input via an InputBox and for that data to be read into a variable which could be "strStartFolder"?  If
    not, any variable will do, but having to enter in location you wish to search by editing the script manually is not practical.
    strStartFolder instead of someone having to edit the code manually each time and enter the path to the folder you wish to scan.  In this example, I have last scanned the "Largest Vidz Appz and Musik Folder" on drive H:\.  I did this manually
    of course...  
    I have played with this using several methods which all only seemed to work "partially".  
    The second issue I am having is that you cannot scan just a drive.  It MUST be a folder.  If you input, for example, "H:\" you will receive an error stating that either permission has been denied or the path cannot be found.  
    Still being somewhat of a noob myself when it comes to scripting I'm sure there is some simple parameter I can/could have entered to fix this but I tried, "H:\*", H:\*\", H:\*.xxx"\ (.xxx being the extension of course) and other things).
     Nothing seems to work but I believe that is because of who the original VBS was coded initially.   Again, this is why I come to the greatest resource on the net.
    One more thing, when all is said and done the script should ask for a user's input via Wscript so that an InputBox greets them with a message such as, "Please enter the location you wish to scan for duplicates:".  And then, depending on their
    answer (being of correct syntax, etc, etc) the script runs and outputs a file named "dups.txt" using the Cscript engine.  
    Please note that I have been running the script as follows to allow for output to a text document.  "C:\cscript //nologo FindDuplicates.vbs > duplicates.txt", I would like to avoid having to do this as well if possible but it's ok if not. 
    Running this script by "double clicking" can be a disaster if you have tons of duplicate files.  So asking for user input is the only area where Wscript need be used.  But hey, this is why I'm here.  For guidance...  
    This is cake for most of you so I will be interested in seeing the different ways you all come up with resolving this issue.  
    Anyway, here is the script!  Thanks in advance for your help!
    Dave
    Set objDictionary = CreateObject("Scripting.Dictionary")
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    strStartFolder = "H:\Largest Vidz, Appz and Musik Folder"
    Set objFolder = objFSO.GetFolder(strStartFolder)
    Set colFiles = objFolder.Files
    For Each objFile in colFiles
    strName = objFile.Name
    strPath = objFile.Path
    If Not objDictionary.Exists(strName) Then
    objDictionary.Add strName, strPath
    Else
    objDictionary.Item(strName) = objDictionary.Item(strName) & ";" & strPath
    End If
    Next
    ShowSubfolders objFSO.GetFolder(strStartFolder)
    For Each strKey in objDictionary.Keys
    strFileName = strKey
    If InStr(objDictionary.Item(strFileName), ";") Then
    arrPaths = Split(objDictionary.Item(strFileName), ";")
    Wscript.Echo strFileName
    For Each strFilePath in arrPaths
    Wscript.Echo strFilePath
    Next
    Wscript.Echo
    End If
    Next
    Sub ShowSubFolders(Folder)
    For Each Subfolder in Folder.SubFolders
    Set objFolder = objFSO.GetFolder(Subfolder.Path)
    Set colFiles = objFolder.Files
    For Each objFile in colFiles
    strName = objFile.Name
    strPath = objFile.Path
    If Not objDictionary.Exists(strName) Then
    objDictionary.Add strName, strPath
    Else
    objDictionary.Item(strName) = objDictionary.Item(strName) & ";" & strPath
    End If
    Next
    ShowSubFolders Subfolder
    Next
    End Sub
    Again, thank you in advance for your help..  And why is some of my text here in this post showing in smaller font than other text?  It seems to be dependent on the line you type on?  This is,
    of course, not the problem I came here to resolve, I am only curious.  ;-)
    DB
    PAinguIN

    Thank you for your response!  
    So if I used the "MyMessage" variable after the "=" in the line below then the users input should be the folder that is searched as long as your lines are added before this line correct?
    Thanks again!
    DB
    strStartFolder = "H:\Largest Vidz, Appz and Musik Folder"
    PAinguIN

  • How to create database from scratch using user input

    what I am trying to do is to create database via my java code (using hibernate and my sql) and based on user input.
    The details like the name of table.... or the number of columns in it are all supposed to be determined from user input (only the first time).
    On subsequent run the program should remember the previously created database and hence work with it.
    Can somebody help me through this?
    Suppose I did create it using firing queries from my program then the next problem is how my program would start up next time......?????

    Anuvrat wrote:
    what I am trying to do is to create database via my java code (using hibernate and my sql) and based on user input.
    The details like the name of table.... or the number of columns in it are all supposed to be determined from user input (only the first time).
    On subsequent run the program should remember the previously created database and hence work with it.
    Can somebody help me through this?Presumably because you want to (fun) rather than because you need to (job or project.)
    If the second then don't do it.
    >
    Suppose I did create it using firing queries from my program then the next problem is how my program would start up next time......?????You would start by learning about DDL which is the common name for the languages, which vary by database, used to create the entities that represent the structure of a database. Until you figure out the syntax of that you can't do anything in java.

  • Passing BAPI standard Inputs using User inputs

    Hi,
    I have a requirement where i need to update SAP using an Adobe Interactive form.
    I got a BAPI which can do this job.It worked fine with BAPI standard inputs...
    But my requirement is to show something different in form and its corresponding value should be passed to BAPI.
    Eg: I should provide a dropdown box which has A,B,C...etc if A is selected I should pass 100 as input value to BAPI and if B is selected in dropdown I should pass 200.
    Along with this I should also pass few more standard inputs..
    Any help is greatly apprecited.
    FYI.. I developed this using JAVA Webdynpro .
    Rgds
    Vara

    Hi,
    For this do one thing .
    Create a local attribute.
    Craete a simple type.
    Move to Enumeration and fill the Value & Description fields.
    What ever you want to display in the dropdown give it in the "Description".
    The value you want to pass to R/3 give it in "Value".
    Now give the attribute type as the "Simple type" that is created by you
    Now when ur passing data to R/3 do one thing.
    Pass the data available in the local attribute to teh RFC import parameter.
    Sorry i dont have any idea
    On passing more data then this.
    "Along with this I should also pass few more standard inputs"
    Thanks & Regards,
    Lokesh

  • Using user input to control while loop

    Hi! I'd like to use a user specified value to terminate my while loop. For example, acquire for 3 seconds as opposed to acquiring until the user hits the 'stop' button. I've attatchted my code and would appriciate if you could give me some suggestions.
    Thanks,
    Katie
    Attachments:
    Acq_on_3_Channels.vi ‏463 KB

    Replace "Wait Until Next ms Multiple" with Timeout.vi. The example shows how to use this vi.
    Because the duration is given by software, it will not be very accurate. Anyway, it can not be more accurate then the cycle time. If you reduce the cycle time in order to get a better precision, then the CPU usage will increase.
    If you need a higher precision, then it will be necessary to use a hardware timing. This can easily be done be using an additional counter that is configured to generate a pulse on its output. This pulse is then used to gate the 3 other counters. This allows a very high and repetitive precision (period of the internal timebase of the counter)!
    Attachments:
    Example_with_timeout.llb ‏28 KB

  • User Input With SQL?

    Hi
    I need to create a query that uses user input as part of the query.
    Example:
    SELECT * FROM item
    WHERE designer = 'Gucci';
    The 'Gucci' part of the query needs to be user input every time the query is ran... Can you help?
    I've tryed the following, but it does not work....
    SELECT * FROM Item
    WHERE Designer like '&& Designer';
    All help appreciated, thanks.

    Hello,
    Try this and if you don't want to specify single quote then at the prompt user have to enter like 'Gucci'. And with the following statement user just have to enter Gucci at the prompt
    SELECT * FROM Item
    WHERE Designer like ('&Designer');Regards

  • Powershell : Issues with user input collection from Multiple InPutBox Form

    I am having issues with getting user input to pass from a form that a user fills out into variables that I can then use in other methods and commands. (ex; SQL Query, SQL Data Add, ... )
    I have attached the Powershell script I am using in it's designed form but I am having issues getting the DataCollection function to grab the content of the InputBox and send it to a variable for later use.
    Note: I'm running this at this time from the ISE so I can actually see what is going on.
    Any help would be appreciated.
    DAS
    [System.Reflection.Assembly]::LoadWithPartialName( “System.Windows.Forms”)
    [System.Reflection.Assembly]::LoadWithPartialName( “Microsoft.VisualBasic”)
    $FormDBA = New-Object System.Windows.Forms.Form
    $FormDBA.Size = New-Object System.Drawing.Size(300,500)
    $FormDBA.Text = "MIS Data"
    $FormDBA.StartPosition = [System.Windows.Forms.FormStartPosition]::CenterScreen;
    function DataCapture
    $SubSID = $InBoxSID.text
    ECHO $SubSID
    $InBoxTxtSID = New-Object System.Windows.Forms.Label
    $InBoxTxtSID.Location = New-Object System.Drawing.Size(25,15)
    $InBoxTxtSID.Text = "Sticker ID : "
    $InBoxSID = New-Object System.Windows.Forms.TextBox
    $InBoxSID.Location = New-Object System.Drawing.Size(130,10)
    $InBoxSID.Size = New-Object System.Drawing.Size(120,20)
    $InBoxTxtUSR = New-Object System.Windows.Forms.Label
    $InBoxTxtUSR.Location = New-Object System.Drawing.Size(25,55)
    $InBoxTxtUSR.Text = "User Name ; "
    $InBoxUSR = New-Object System.Windows.Forms.TextBox
    $InBoxUSR.Location = New-Object System.Drawing.Size(130,50)
    $InBoxUSR.Size = New-Object System.Drawing.Size(120,20)
    $InBoxTxtPCN = New-Object System.Windows.Forms.Label
    $InBoxTxtPCN.Location = New-Object System.Drawing.Size(25,95)
    $InBoxTxtPCN.Text = "PC Name : "
    $InBoxPCN = New-Object System.Windows.Forms.TextBox
    $InBoxPCN.Location = New-Object System.Drawing.Size(130,90)
    $InBoxPCN.Size = New-Object System.Drawing.Size(120,20)
    $InBoxTxtDPT = New-Object System.Windows.Forms.Label
    $InBoxTxtDPT.Location = New-Object System.Drawing.Size(25,135)
    $InBoxTxtDPT.Text = "Department : "
    $InBoxDPT = New-Object System.Windows.Forms.TextBox
    $InBoxDPT.Location = New-Object System.Drawing.Size(130,130)
    $InBoxDPT.Size = New-Object System.Drawing.Size(120,20)
    $InBoxTxtPCT = New-Object System.Windows.Forms.Label
    $InBoxTxtPCT.Location = New-Object System.Drawing.Size(25,175)
    $InBoxTxtPCT.Text = "PC Type : "
    $InBoxPCT = New-Object System.Windows.Forms.TextBox
    $InBoxPCT.Location = New-Object System.Drawing.Size(130,170)
    $InBoxPCT.Size = New-Object System.Drawing.Size(120,20)
    $InBoxTxtMAK = New-Object System.Windows.Forms.Label
    $InBoxTxtMAK.Location = New-Object System.Drawing.Size(25,215)
    $InBoxTxtMAK.Text = "Make : "
    $InBoxMAK = New-Object System.Windows.Forms.TextBox
    $InBoxMAK.Location = New-Object System.Drawing.Size(130,210)
    $InBoxMAK.Size = New-Object System.Drawing.Size(120,20)
    $InBoxTxtMOD = New-Object System.Windows.Forms.Label
    $InBoxTxtMOD.Location = New-Object System.Drawing.Size(25,255)
    $InBoxTxtMOD.Text = "Model : "
    $InBoxMOD = New-Object System.Windows.Forms.TextBox
    $InBoxMOD.Location = New-Object System.Drawing.Size(130,250)
    $InBoxMOD.Size = New-Object System.Drawing.Size(120,20)
    $InBoxTxtOPS = New-Object System.Windows.Forms.Label
    $InBoxTxtOPS.Location = New-Object System.Drawing.Size(25,295)
    $InBoxTxtOPS.Text = "O.S. : "
    $InBoxOPS = New-Object System.Windows.Forms.TextBox
    $InBoxOPS.Location = New-Object System.Drawing.Size(130,290)
    $InBoxOPS.Size = New-Object System.Drawing.Size(120,20)
    $InBoxTxtDIS = New-Object System.Windows.Forms.Label
    $InBoxTxtDIS.Location = New-Object System.Drawing.Size(25,335)
    $InBoxTxtDIS.Text = "Disposed : "
    $InBoxDIS = New-Object System.Windows.Forms.TextBox
    $InBoxDIS.Location = New-Object System.Drawing.Size(130,330)
    $InBoxDIS.Size = New-Object System.Drawing.Size(120,20)
    $button = New-Object System.Windows.Forms.Button
    $button.Location = New-Object System.Drawing.Size(150,400)
    $button.Width = 100
    $button.Text = “Ok”
    $button.Add_Click({DataCapture})
    $FormDBA.Controls.Add($button)
    $FormDBA.Controls.Add($InBoxTxtSID)
    $FormDBA.Controls.Add($InBoxTxtUSR)
    $FormDBA.Controls.Add($InBoxTxtPCN)
    $FormDBA.Controls.Add($InBoxTxtDPT)
    $FormDBA.Controls.Add($InBoxTxtPCT)
    $FormDBA.Controls.Add($InBoxTxtMAK)
    $FormDBA.Controls.Add($InBoxTxtMOD)
    $FormDBA.Controls.Add($InBoxTxtOPS)
    $FormDBA.Controls.Add($InBoxTxtDIS)
    $FormDBA.Controls.Add($InBoxSID)
    $FormDBA.Controls.Add($InBoxUSR)
    $FormDBA.Controls.Add($InBoxPCN)
    $FormDBA.Controls.Add($InBoxDPT)
    $FormDBA.Controls.Add($InBoxPCT)
    $FormDBA.Controls.Add($InBoxMAK)
    $FormDBA.Controls.Add($InBoxMOD)
    $FormDBA.Controls.Add($InBoxOPS)
    $FormDBA.Controls.Add($InBoxDIS)
    $FormDBA.ShowDialog()

    Change this:
    $button = New-Object System.Windows.Forms.Button
    $button.Location = New-Object System.Drawing.Size(150,400)
    $button.Width = 100
    $button.Text = “Ok”
    $button.DialogResult='Ok'  #<<<<<-------
    #$button.Add_Click({DataCapture})
    Remove function andrun like this:
    if('Ok' -eq $FormDBA.ShowDialog()){
        $FormDBA.Controls|%{$_.Text}
    With names you can get values by control name.
    ¯\_(ツ)_/¯
    This suggestion works for the purpose I needed. 
    If I could, I would attach the file instead of pasting the script so you can see what all I am using this to do.
    But in short, we have a main form we use to pull records from a database and call up an application at the click of a button for remote assistance.  However, we seem to now need the ability to have this application to edit and add new records into said
    database.  That's where this second form came in and also when I hit my issue with the information capture.
    At this time I'm getting this to format the information collected so that I can start using using it with SQL commands.

  • How to call URL to collect user input ?

    Hi all,
    I am writing a Swing applications and at some points, I need to call a URL (external web page) to collect user input. It invokes passing certain parameters to web page so that the web page can be displayed in some certain form. After the user input all data in web page, press "submit", my Swing application needs to get the input back. I suppose that calling URL is trivial but how can I get the input back ? Any input will be greatly appreicated.
    Note: the web page will be displayed in one JFrame but it may not related to this problem.
    C.K.

    response.sendRediresc("http://.......);
    public void sendRedirect(java.lang.String location)
                      throws java.io.IOException
        Sends a temporary redirect response to the client using the specified redirect location URL. This method can accept relative URLs; the servlet container must convert the relative URL to an absolute URL before sending the response to the client. If the location is relative without a leading '/' the container interprets it as relative to the current request URI. If the location is relative with a leading '/' the container interprets it as relative to the servlet container root.
        If the response has already been committed, this method throws an IllegalStateException. After using this method, the response should be considered to be committed and should not be written to.
        Parameters:
            location - the redirect location URL
        Throws:
            java.io.IOException - If an input or output exception occurs
            java.lang.IllegalStateException - If the response was committed or if a partial URL is given and cannot be converted into a valid URL

  • When clicking on an email link, I want the firefox user profile menu to open instead of going to the last used profile. How do I make this work?

    When I click on a link in Thunderbird to open a web page, and Firefox is not already open, I want to have the user profile screen presented so that I can select which profile to use for the Firefox session. Instead, it opens the last used profile. Is there a way to do this?

    That is is always a problem when you are using multiple profiles and Firefox isn't running.
    It might work if no profile is selected (i.e. marked as Default=1 in profiles.ini).<br />
    You can use desktop shortcut that open with a specific profile (-P "profile").<br />
    There is also a setting in the Profile Manager (Don't ask at startup).

  • How to save User input into DB using webdynpro abap

    Hi,
    Im trying to create an application using webdynpro abap.
    I want to know how to save the data input by user, into a database table.
    In my UI, I have a table control which is editable and user inputs data into this. I need to know how i can transfer this data to a DB table.

    hello,
    u can do it by reading ur context node.
    we bind our UI elements to context attributes of appropriate type .
    we read their values using the code wizard or by pressing control+F7, click on radio button read node/attribute
    here for ur specific case , u must have binded ur table control with the context attribute , now u need to simply read this attribute
    eg suppose u have created a context node " cn_table"
      reading context node cn_table
       DATA : lo_nd_cn_table TYPE REF TO if_wd_context_node ,
             lo_el_cn_table TYPE REF TO if_wd_context_element ,
             ls_cn_table    TYPE wd_this->element_cn_table.
    *   navigate from <CONTEXT> to <CN_TABLE> via lead selection
      lo_nd_cn_table = wd_context->get_child_node(
                       name = wd_this->wdctx_cn_table ).
    **    get element via lead selection
      lo_el_cn_table = lo_nd_cn_table->get_lead_selection(  ).
      lo_el_cn_table->get_static_attributes( IMPORTING
                 static_attributes = wa_table ).
    here wa_table is the work area of structure type . u need to create a structure first with the same variables as there are the context attributes in ur node cn_table
    in ur
    now ur wa_tablecontains value
    u can nw use appropriate FM to update , delete and modify the DB table using the value
    u cn directly use SQL statements as well in the method of ur view , but direct SQL statements are nt recommende
    rgds,
    amit

  • How to use Pl/sql block to edit check user input

    Hi,
    Please advise on PL/SQL Block code that could be used to Check User input from within a Loop and proceed conditionally based upon User Supplied compliant Input. Thanks in advance.

    Hi,
    yakub21 wrote:
    You could use the ACCEPT to get user input and then assign the input to a variable that could then be verified.
    I believe that anything is possible because we don't yet have proof that it is not!
    I do have code that can accept user input. Is it PL/SQL code? Sybrand was clearly talking about PL/SQL:
    sybrand_b wrote:
    Pl/sql is for server side code, it is not a front end tool, and it is incapable of the functionality you describe.If you do have PL/SQL code that accepts user input, please post an example. A lot of people, including me, would be very interested.
    Pass the user-input value to a variable and then assign that value to another variable from within a Declare of a PL/SQL Block.
    The opportunity here is to figure a way to loop with user input until desired input is entered by the user before proceeding with the code. I'm using PL/SQL Block because I don't want the code to persist. I just want to run it as part of database configuration procedure. ThanksIt sounds like you're talking about SQL*Plus, which is a very poor tool for looping or branching.
    It's possible, but it's not pretty. The following thread shows one way of looping in SQL*Plus:
    Re: How to give the different values to runtime parameters in a loop?

  • Accepting user input and executing a PL/SQL block using it

    Hi All,
    I am working on a requirement wherein I have to accept values from the user for the various arguments to be supplied to a PL/SQL block and then execute it using these values. For now, I am using the following logic:
    PROMPT Enter value for the Category
    ACCEPT cCategory CHAR PROMPT 'Category:'
    DECLARE
    cCategry CHAR(1) := '&cCategory';
    BEGIN
    DBMS_OUTPUT.PUT_LINE('The value of the Category as entered by you is' || cCategory);
    END;
    PROMPT Press y if you want to proceed with the current values, or press n if you want to re-enter the values
    ACCEPT cChoice CHAR Prompt 'Enter y or n:'
    DECLARE
    cCategry CHAR(1) := '&cCategory';
    sErrorCd VARCHAR2(256);
    sErrorDsc VARCHAR2(256);
    BEGIN
    IF '&cChoice' = 'y'
    THEN
    DBMS_OUTPUT.PUT_LINE('Starting with the process to execute the stored proc');
    --- schema1.package1.sp1(cCategry, sErrorCd, sErrorDsc);
    --- DBMS_OUTPUT.PUT_LINE('Error Code :' || sErrorCd);
    --- DBMS_OUTPUT.PUT_LINE(' Error Description :' || sErrorDsc);
    ELSIF '&cChoice' = 'n'
    THEN
    Now I want that the proc again start executing in the loop from the 1st line i.e. PROMPT Enter value for the Category. However i see that this is not possible to do that PROMPT statements and accepting user inputs execute only on the SQL prompt and not inside a PL/SQL block.
    Is there an alternate method to establish this?
    Thanks in advance.

    Hi,
    You can write a genric procedure to achive the desired output. Pass 'Y' or 'N' in the procedure.
    Call that procedure in simple pl/sql block during runtime using substituton operator.
    For ex
    create or replace procedure p1(category_in in varchar2)
    IS
    BEGIN
    if (category_in='Y')
    then
    prcdr1()
    /** Write your logic here ***/
    elsif(category_in='N') then
    prcdr2()
    /** write your logic here***/
    end if;
    exception
    /***write the exception logic ***/
    end p1;
    Begin
    p1('&cat');
    end;Regards,
    Achyut K
    Edited by: Achyut K on Aug 6, 2010 5:20 AM

  • Captivate 6 How to validate user input without using keyboard shortcuts

    I've been using Adobe Captivate 6 for about 4 months now.  Completely new to the program.  The number one function of Captivate for me will to create many software simulations for verifiable training.  This means that I will be utilizing the training and assessment modes A LOT.  I have run into many hurdles throughout the process, but one of my biggies right now is this:
    In the training and assessment modes, I have times where the user must input data such as an address or number.  In the actual software they will be utilizing it is not always required to use TAB or ENTER in order to move to the next field.  In some instances, it will be necessary to actually click into a field after entering data.  My problem is that it seems as if Captivate will not allow this,  as a keyboard shortcut is automatically entered even if a TAB or ENTER is not required after input.  I assume this is so that the inputted information can be verified.  If you decide you do not want to use a keyboard shortcut to validate the inputted information, you must have a submit button.  Is there any way to change this??  All I want is for the user to enter information and then click into another field WITHOUT having to press ENTER, TAB, or hit a submit button.  Is this even possible if you need user input to be validated??  Any ideas or suggestions would be much appreciated!!

    Hello,
    A while ago I explained the work flow I’m using often in that case, only for the last field you need to have either a shortcut or a submit button AND the sequence has to be imposed. The idea is that you make the Submit button for the first field transparent, delete the  ‘Submit’ text and put it over the second field. So if the user clicks on the second field, he also submits the value of the first field.
    Here is the blog post I’m referring to:
    http://lilybiri.posterous.com/one-submit-button-for-multiple-text-entry-box
    Although it was written for previous versions, the idea will still be functional.
    Lilybiri

  • Using a scanner to interpret user input in an array

    Hi
    Does anyone know how to use an array to store user input?
    I'm a beginner in Java and I need help making an array with 5 positions that can be filed by the user as they type.
    This is needed as a guide to read up more complex user input methods. I have been told to use a "scanner" (java.util.Scanner) to do this and frankly, I'm ridiculously lacking in Java skills. Any help would mean a whole lot.
    So far, this is the scanner I've been working with:
    import java.io.*;
    import java.util.Scanner;
    import java.util.*;
    public class ReadConsole
    public static void main(String[] args)
    Scanner input = new Scanner(System.in);                                                                
    System.out.println("Menu System - Please enter your choice");
    System.out.println("Option 1");
    System.out.println("Option 2");
    System.out.println("Option 3");
    for(int i = 0; i < 1; i++){
    int num = input.nextInt();
    if(num==1){
    System.out.println("Option 6");}
    else if(num==2){
    System.out.println("Option 7");}
    else if(num==3){
    System.out.println("Option 8");}
    else{
    System.out.println("Try again");
    i = 0;
    }

    That sounds do-able, but im struggling when it comes to inputing 5 values from the user. what do i do to separate the values? i know that sounds vague, ... but if I can make one "position", why can't I make five??
    Take a look at what I've done:
    import java.io.*;
    import java.util.Scanner;
    import java.util.*;
    public class Input
    public static void main(String[] args)
    Scanner input = new Scanner(System.in);    
    System.out.println("Please select your lucky number");
    System.out.println("Options are:");
    System.out.println("1");
    System.out.println("2");
    System.out.println("3");
    System.out.println("or 4");
    for(int i = 0; i < 1; i++){
    int num = input.nextInt();
    if(num==1){
    System.out.println("Your lucky number is 1. Cool");}
    else if(num==2){
    System.out.println("Your lucky number is 2. Cool");}
    else if(num==3){
    System.out.println("Your lucky number is 3. Cool");}
    else if (num==4){
    System.out.println("Your lucky number is 4. Cool");
    //ELSE STATEMENT DOESNT COMPILE ... ((not a big deal right now))
    //else{
    //System.out.println("Start Over. You've done it all wrong");
    //i = 0;
    }okay I see that the scanner works this way, but when I copy-pasted that whole section of my code from "Scanner input = " down, it wouldn't compile at that first line.
    I had named it "Scanner input = new2 Scanner(System.in);"
    How can I make another user input position with the scanner?
    Message was edited by:
    tark_theshark

  • Accepting dynamiv user input using PL/SQL

    Hi,
    I need to accept dynamic number of user input values.
    What i need is i will enter the number of employees to be created.
    If i enter 2 then i need to dynamically accept 2 employee details.
    DECLARE
       v_emp_cnt    NUMBER;
       v_emp_id     VARCHAR2 (15);
       v_emp_name   VARCHAR2 (200);
    BEGIN
       v_emp_cnt := &v_emp_cnt;
       FOR i IN 1 .. v_emp_Cnt
       LOOP
          DBMS_OUTPUT.PUT_LINE('INSIDE LOOP');
          v_emp_id := &v_emp_id;
          v_emp_desc := &v_emp_Desc;
          INSERT INTO emp_details (process_id,
                                            column11,
                                            column12,
                                            column13)
            VALUES   ('EMPLOYEES',
                      'EMP-' || i,
                      v_emp_id,
                      v_emp_desc);
       END LOOP;
    END;
    /Can anyone let me know if this is the right approach to acheive my requirement. Please suggest alternatives.
    Thanks
    Vamsi Krishna

    PL/SQL is a server-side language-- it doesn't have the ability to interact with a user. A client application such as SQL*Plus, can both prompt for input and submit SQL statements to the database. It's probably possible to hack together a SQL*Plus script that could do something like what you appear to be looking for but using SQL*Plus for this sort of thing would generally be the wrong architectural solution. You'd generally be better off with a small shell script that prompted the user for data and then called a stored procedure.
    Justin

Maybe you are looking for