Text input variable

How do i make a text input element have a variable ?.....I
don't mean instance name ....i mean variable!

I'd say you just don't do it that way, but to give more
advice I'd need more info on what and why ...
There should be a lot of solutions to your problen once it's
nature is clearer.

Similar Messages

  • Text Input: How To Perform Procedure on Console Input Without Variables

    Problem Defined:
    Need to analyze text input on console to ensure it meets conditional statements before assigning to a variable.
    I can't find a method to take scanner input from the console without first assigning it to a variable. I don't want to assign it to a variable unless it meets a certain condition.
    This is for a class assignment and I must use the console for input--no dialog boxes.
    This is what I want to do:
    Read Input; Hold In Memory; Test if Null; Test if Length is 14 Digits; Assign to Acct if All Conditions Are Met
    If Null, tell the user he needs to actually enter input or q to quit. Exit after five failures.
    If input is not equal to 14 digits, inform user. Offer escape with q. Exit after five failures.
    I only know how to assign a value to a variable from the various methods that take input. How do I take input and store it in memory to analyze without assigning it to a variable?
    I have this and the code is probably not correct. I'm a rank newbie. I've written several programs, but they're all basic, mostly using only the methods I learned in class and what I pulled out of books. My prof doesn't even intend on going over if, for and while! She's happy with us just copying verbatim and editing one or two lines so the source isn't exactly what she wrote on the board. I'm trying to learn how to do things that I know are useful, like making sure input is in the proper format, asking questions like what did people use before scanner just gets me blank responses with a quizzical look, but no answer.
    new Scanner = console scanner (system.in);
    String Acct
    Acct = console.next();
    if Acct == null . You entered nothing. Try again or press q to exit.");
    return to Line 1 //No idea how to do this.
    if Acct == 'q'
    Close Program
    if length.Acct = 14 ( Acct = Acct )
    else System.out.print("Your account number is 14 digits. You didn't enter 14 digits. Try again. Or press q to quit.")
    goto Acct = console.next
    Also, if you need to read an address from the console entered on one line, what methods can you use to pull one word at a time and then position them onto multiple lines?
    Enter Address: 123 Main Street Apt 321 Port View, FL 32547
    123 Main Street
    Apartment 121
    Port View FL
    32547
    Any help putting this together would be greatly appreciated. Thanks in advance.
    Alec

    805228 wrote:
    How do I take input and store it in memory to analyze without assigning it to a variable?Where do you think variables are stored? In memory. So no, you're not gonna be able to do anything to the value before you assign it to a variable. Then you can do any checks you need and
    possibly assign it to another variable (or more likely, ask the user for valid input if the checks don't pass).
    You can use loops and other constructs to keep asking for user input until valid values are provided.
    if Acct == null . You entered nothing. Try again or press q to exit.");
    return to Line 1 //No idea how to do this.Read up on while loops.
    Also, if you need to read an address from the console entered on one line, what methods can you use to pull one word at a time and then position them onto multiple lines?
    Enter Address: 123 Main Street Apt 321 Port View, FL 32547
    123 Main Street
    Apartment 121
    Port View FL
    32547Well that depends. How do you know that the street is "123 Main Street" and not "123 Main Street Apartment" or "123 Main Street Apartment 121".
    You can get the whole String from the user and then split the String into smaller Strings _if_ you can answer the question on the previous line.

  • Text input as variable in a URL

    I want to create a simple flash document with a text input
    field, and a button that will go to a URL. The trick is that the
    text input field needs to replace an element in the URL for
    personlaization purposes. I got the field, and I got the button.
    What is the method for getting it into the URL.

    I think you should be able to do something like, I use it for
    loading variables from a URL a lot and im pretty sure will work the
    same using getURL
    something like this, just change the variables to yours
    getURL("
    http://www.test.com/cgi-bin/scripts.pl/flash/search?name="
    + input_name_text.text + "&category=" + category + "&type="
    + category);
    Whatever is in those variables will be inserted into the
    URL.

  • Conditional for a text input box NOT being null? Sorry for asking so many questions!

    Okay, here's the situation. I'm creating a simulation of a form on which there are several text input boxes, 7 of which are mandatory fields. I know I can use a conditional to check whether the box has nothing in it by creating a null variable with no value and doing "if [box variable] is equal to [null variable] then", but the problem is that the validation captions I need to show need to be shown in order, that is to say that the caption for entering a value for the first box will always be shown if that box is null regardless of the contents of other boxes, the second will be shown if that one is null and the first one isn't etc.
    When I was investigating this I noticed a post by Lilybiri saying that comparison with a null variable doesn't work for "not equal to" so I'm having a hard time figuring out how to show the captions based on priority. For example, to show the second caption I need to not only check whether the second box variable is null, but also whether the first one isn't.
    It gets pretty crazy further along the line where I get to the 7th mandatory field and need to check whether the first, second, third, fourth, fifth and sixth boxes are NOT null and whether the 7th one IS. Help!
    I did come up with one potential solution to this prior to posting: if I set a different advanced action for each input box losing focus which checks whether the variable is null and if so sets a "flag" variable to 0, and in the else set it to 1, I imagine I can then replace the "not equal to" with a check to that flag variable being equal to 1 (which means there is text in the box). I think this will work but I thought I'd check to see if there's an easier way first.

    No it DOESN'T require everything to be on one slide.  It just has to LOOK as if that's what it is.
    I would suggest that it doesn't really matter how many Captivate slides are involved in the final solution, as long as it works the same way (or as close as possible) to the original software that you are simulating.  Your users don't frankly know or care how you achieved the simulation.  I guarantee they won't be thinking of you or Captivate.
    In my experience, you can make creating elearning a lot more difficult than it needs to be in Captivate by trying to rebuild the app, rather than just simulating how it works. For example, thinking that if everything happened on one web page or screen in the app then it must also happen on a single slide in Captivate.  The fact of the matter is IT DOESN'T need to work this way.  And in some cases it might even be impossible to reproduce in Captivate this way.
    So the quickest path to a solution is often to use multiple slides, which has the advantage of allowing you to "fix" certain things on screen (e.g. the contents of fields already visited) by using READ ONLY variable output in transparent captions, focusing only on one element of the interface that the user can interact with on that slide.  It doesn't necessarily prevent you from moving back and forth between elements, just as you can in the original app.  But it is far easier to create and maintain.
    I'm not saying you wouldn't be able to pull this off on one slide in Captivate, but it is going to require a LOT of variables and Advanced Actions to build and debug.  So the term Rapid Elearning becomes something of a misnomer if it takes you a long time to complete one slide.

  • Text input box for displaying notes

    How can I use a text input box so delegates can write notes in which then appear on other pages as they work through the course.
    Ken

    It seems you would be able to do this with user variables, in which you store the content retrieved from the Text Entry Box. Later on (other slides) you can use this content by adding it to a Text Caption. Beware: I'm not sure about the amount of characters that can be stored.

  • Invoking a LiveCycle process with multiple input variables using REST

    Hi all,
    A simple scenario brushup:
    I have an LC process that takes as input 2 parameters:
    - formID
    - formXML
    The user starts out with an empty interactive form and fills out some info in this form. In the end he/she clicks submit and now I want to invoke my process to create a flattened form from the XML just entered in the interactive form.
    The process returns a flattened form with the data merged with the XDP template referenced in formID. Simple as that.
    What I basically need is to do something similar to the following in a LiveCycle Designer Form:
    ------------------------------------Snippet from http://help.adobe.com/en_US/livecycle/10.0/ProgramLC/WS624e3cba99b79e12e69a9941333732bac8- 7fe5.html ---------------------------------------------------------------------
    <html>
    <body>
    <form name="input" action="http://localhost:9080/rest/services/RestTest3" method="post" 
             enctype="multipart/form-data">
    Doc: <input type="file" name="inDoc">
    String 1: <input type="text" name="inListOfStrings" value="hello">
    String 2: <input type="text" name="inListOfStrings" value="privet">
    <input type="submit" value="Submit"/>
    </form>
    </body>
    </html>
    ------------------------------------End snippet from http://help.adobe.com/en_US/livecycle/10.0/ProgramLC/WS624e3cba99b79e12e69a9941333732bac8- 7fe5.html ---------------------------------------------------------------------
    Now my question to you is (hope you can help out here):
    How do I invoke this process from my form using the REST endpoint - I need to specify 2 input variables for my process. One string (formID) and some xml (formXML). How is this done in Designer?
    Thanks in advance
    Kim Christensen
    Dafolo A/S
    Denmark

    Bump...
    Nobody who has an idea of how to do this?
    Thanks in advance
    Kim Christenen
    Dafolo A/S
    Denmark

  • Using text input to change content of gallery

    Hello,
    I have an application where I'm using multiple excel tables as my data. Each table has the same columns; The only difference is the data in each one. 
    I have a screen "GalleryScreen" where I have a Gallery (aGallery) that displays information from a single table (Ex: Table1). aGallery's data is set to Table1.
    I now want to allow users to select which table they want to use in the gallery via text input; The user would select a table name via a dropdown menu, and the correct table would be displayed in the GalleryScreen.
    However, I'm unable to pass text to the Gallery, since Gallery is expecting a collection; How do I get the application to use the text as a variable?
    Leo

    It cannot be done directly in Siena right now.   As a workaround, you can use If statements:
    Create a Table that has the names of each table you want to choose between.   Name that column TName.
    Save and import table into Siena.
    Set the Galleries Data to: MyVal
    (there will be red lines indicating an error, that's OK, we'll fix that shortly.)
    Create a Drop Down called DropDown1.
    Set the DropDowns Items to the Table you just imported.
    Set the DropDowns OnChange to:
    If(Dropdown1!Selected!Name = "aGallery", UpdateContext({MyValue: aGallery}),
    If(Dropdown1!Selected!Name = "bGallery", UpdateContext({MyValue: bGallery}),
    If(Dropdown1!Selected!Name = "cGallery", UpdateContext({MyValue: cGallery}))))
    You can change the text in quotes to be whatever you want the user to see, as long as you also change it in the table that contains all the table names.   It does not need to actually n=match the Table Name Siena sees.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This is beneficial to other community members reading the thread.
    -Bruton

  • Display input variables in BEx workbook header

    Hi forum,
    I created a global BEx workbook template and would like to display the input variables (user entries) in the header section. On refresh of the workbook, this section should be updated with the new input variables. I am on BEx 7.0 and already experimented with text elements in the Design Mode of BEx Analyzer. However, you can only select general filter values, not specifically variables.
    On release BI 3.x  the Visual Basic function SAPBEXshowTextElements(selectgroup, ...) was available. You could set selectgroup to "V" (show variables only) and retrieve the variable values.
    However on 7.0 this function does not seem to work any longer.
    Do you know how this can be achieved in BEx Analyzer 7.0?
    Thanks,
    Alex

    Hi,
    1) Keep variable in default values in Filters.if u keep variable in default values user enterd value will be displayed in workbook filters.
    2) Open workbook and go to design mode.
    3) Delete the header text item and also delete the header picture bar.
    4) Write report name in "A1".
    5) At the end of report name (say H1or I1) use this excel formula =Replace(old text,start_num, num_chrs, new_tex).
    With this whenever user changes the variable value will be changed in report header.
    Hope it is useful.
    Thanks,
    Ashok

  • Description input variable dependent by queries

    Hi gurus,
    I have a input variable in more queries bex (bi 7.0).
    I do to change description for only one query without to create an other custom variable and replace it where I need.
    I test in cmod with the support the second customer exit variable but when  I launch the query I don't intercept the description variable (insert in table RSZELTTXT) in step 1.
    Any suggest..
    thanks a lot
    Andrea
    Edited by: andreapistore on Feb 3, 2011 2:32 PM
    Edited by: andreapistore on Feb 3, 2011 2:44 PM

    Hi
    In the restriction of AS1 you restrict on current quarter (SAP Variable -> Current quarter  0CQUART if not found see Business content -> Query element -> variables)
    Then you do a right mouse click an set the variable offset on -3
    The same for AS2 with -2; AS3 with -1
    on AS4 you don't do an offset.
    Next to the description of the restricted key figure there is a button for Text variables (Current quarter (T) 0CQUARTT ).
    Udo

  • Report based on query w/ input variable

    Hi,
    How can i do a sql report on APEX with an input variable (:P1).
    In my tests i've created a sql report then added one text box to the page with name (P1).
    When i execute the report it gives me the text box, then i insert the value, press enter and it gives me the result No data found. If i activate the debug i can see, :P1=P1="xpto", so the text box is working fine, but why the report is not generated/displayed?
    Thanks In advance

    When i activate the debug mode this is what i get.
    As you can see it seems that the binding is working and it also seems that the query is done because of the message rows loop: 15 row(s), but it doesn't apear any result in the page.
    0.06: Computation point: BEFORE_BOX_BODY
    0.06: Processing point: BEFORE_BOX_BODY
    0.06: Region: Search
    Search
    0.06: Item: P606_FILENAME TEXT
    Search Filename
    0.06: Item: P606_GO BUTTON
    0.06: Region: Files &P606_TEXT.
    Files Ola
    0.06: Item: P606_TEXT HIDDEN
    0.07: show report
    0.07: determine column headings
    0.07: parse query as: ADMINSTI
    *0.08: binding: ":P606_FILENAME"="P606_FILENAME" value="FLAP_090909.251"*
    0.08: print column headings
    *0.08: rows loop: 15 row(s)*
    no data found
    0.08: Computation point: AFTER_BOX_BODY
    0.08: Processing point: AFTER_BOX_BODY

  • Input variables definition in jobType

    Hello,
    I am trying to develop new job Type to perform transport of tablespaces
    and would like to define input variables that can be chosen as oracle_database type
    for source and target databases.
    I do not think adding targets to the job will satisfy it since as far as I understood
    there is no control in the index value of added targets to the job so I won't be
    able to identify which db was source and which destination.
    I was able to define input boxes for variables but they just text boxes where I should
    insert some value, however I would prefer to choose target from selection list
    It would be nice if it can be defined as steps before job submit to provide source and destination
    targets for the job.
    Could you please help me to figure out how to do it and/or might be point to docs/examples
    where it is shown
    Thanks,
    Andrey

    Hi Andray,
    This is "single-execution-multiple-target" mode and default UI does not support this option since you want to select source and destination targets for same job execution.
    You may look at Multi-Task job type option to implement what you are looking for
    - Go to Job Activity page, in create job lis, select "Multi-Task" and click Go button
    - Provide Job name, and select "Different Target for different tasks" option for Targets
    - For each of the tasks in tasks tab, you can provide different targets for each task. You could have task1 that would run a SQLScript or RMANScript job and then you could have task2 that could run OSCommand job on a different target based on "successOf" or "failueOf" dependency.
    Hope this helps.

  • Text input options missing

    Hi,
    After running some updates yesterday, the "show text input options" is no longer available in the options. Neither can I select suretype when writing a message. Would appreciate some help.
    Thanks
    Solved!
    Go to Solution.

    Had to re-boot after removing an application and everything back to normal! What bugs me is that my service provider tech never brought up a re-boot but rather wanted me to delete all my data and start all over!

  • Error in Query input variable

    Hello Experts
    I have a query which has input variable 0I_FPER for Fiscal year period and takes interval as input.
    when i try to select values i get following error. i have tried different inputs
    "Characteristic Fiscal year/period has no master data for "003.2010" "
    I tried creating new input variables and still get same ptoblem for TO value put in.
    Please help.
    Thanks in advance
    Regards
    Sudeep

    Hi
    I am using 0FISCPER infoobject for restriction, master data table for this is T009B.
    i even tried to rebuild this using tranfer global setting s option but problem still exists.
    0FISCPER object has no SID table.
    Moreover this report work fine using RSRT but give error at inputs when i run it over web.
    I am still facing same problem
    Please help
    Regards
    Sudeep
    Edited by: Sudeep Paranjape on Dec 27, 2010 10:50 AM

  • How to make numbers in message text input  fields left aligned?

    Hi Friends
    I have completed one of my task .but getting result right side of the field.
    how to make numbers in message text input  fields left aligned?
    Thanks
    Aravinda

    Hi ,
    Sorry for late replay i am trying this alos not set that page....
    pageContext.forwardImmediatelyToCurrentPage(null, true, null);
    and one more that kff field working is fine for ex display any text pled displayed properly and only problem is not set the value and HrSitKeyFlex6 and HrSitKeyFlex7 fields are perfectly get the values but not pront HrSitKeyFlex8 that only my issue....
    Regards,
    Srini

  • Text Input Prompt

    Does anyone tried to build some text input field that can do prompt? Something like auto-complete in source code edit. It would mean that:
    - we have to make the rest of the prompt text gray
    - the cursor blinks right after the user input characters
    - if user click space bar, the first word in prompt become solid and cursor moves to next word.
    Is this something that's possible to do for iPhone?

    - How do I programmatically place the cursor in the middle of a word
    - How do I font/color part of word in text input control
    - How do I select the text up to or from where the cursor is...
    You can't. You can't. You can't. At least not with a UITextField.
    I've done more or less of what you are looking for in PocketMoney for auto completing transaction. You need to do a lot of rolling of your own code to pretend you have UITextField.
    What I ended up doing is drawing the uncompleted text at the end of the current text input of the UITextField that I subclassed.
    - Hardy

Maybe you are looking for

  • What is a common way to create audio chat rooms?

    What is an expected way to create audio chatrooms? Either try to mix all published audio streams into single one and republish it under common name? Or just inform all clients about each other and allow each one to connect to a stream, published by e

  • Steps to create a Network!

    Hello guys! I have a road table... And I created 2 tables: node_topo and link_topo, using scripts from lucvanlinden: Re: Spatial Network constraints Everthing is all right, but I stucked now... What is the next step ? In the end I need calculate the

  • Error when communicating with server, and locked fields

    Hi there, I am having a really weird, and annoyingly intermittent, problem. I'm trying to write a single value to my application via an Input EVDRE, for testing purposes. I've been doing this all morning (admittedly to a different application set but

  • W Vista to W7 and HP 8500 A909g can't connect

    Upgraded my laptop to W7. Intermittent spooling issues so I uinstalled the printer. The disk I had was only good for Vista. Downloaded HP drivers for W7. Re-booted several times. Download doesnt recognize IP address found in HP Network Config page I

  • ALV sort/group disfunction ?!

    Hi there, I'm a bit helpless because of the sort/group function my ALV should do. Current situation is that I'm using an CL_GUI_ALV_GRID. CALL METHOD gr_config_alv_1_2->set_table_for_first_display     EXPORTING       is_layout                     = l