How to use input text

Hi, I have searched the forums and haven't found what I am looking for.
I want to have an input text box for the user to enter their name into. On the next frame I want it to say Welcome 'username'.
Thanks

You can access the text of an input box using the text propery of it. It will return a string
var str:String = inputBox.text;

Similar Messages

  • How to use standard texts in smartforms

    Hi Friends,
          How to use standard texts in smartforms, ie in scripts we are using standard texts using tr so10.
    thanks in advance,
    regards,
    sharma.

    For long text
    method1
    Create TEXT node- general attributes change text type to include text
    then you can input text name/text object/text id/language
    method2
    create PROGRAM LINE node - use FM READ_TEXT to read it to a internal table
    then use LOOP or TABLE node to display it
    For TEXT module(For foreign language)
    Tr-code:smartforms -- choose Text module(not choose form)--create a text module object
    then enter smartform Create TEXT node- general attributes change text type to text module
    input the text module name which created by above
    btw SO10 is just for Scriptform, in smartforms we use text module to replace SO10

  • How to use the text module in script

    hi,
            i script how to use the text modules and how to write the code  in layout of the script?

    Hi,
    You canr use text modules in script. You have to use standard texts .
    Standard text are maintained in SO10 transaction.
    you can create translation text for other languages also . So based on logon language it will print translation text.
    go to SO10
    give textname it say Ztextname  id as ST and language as EN
    say create, then you will get editor there maintain your text and save it . then come back . Now change language (say for german DE) say create and eneter translation text and save it.
    so now you have created a text called ztextname which you can use in your script.
    Inorder to insert the texts in your script do as below
    go to any window editor and   select path
    Insert->texts->symbols->standard symbols
    then you will get popup  in which you have to mention all the parameters that you have created earlier.
    after inserting just change language EN to sy-langu
    Reward points if useful
    About text elements Sravan already given some informatiomn
    Regards,
    Nageswar

  • How to use Standard Text in ALV

    How to use Standard Text in ALV header part? Can you please help me by giving the answer?

    Hi ,
           You can read the Standard text using read_text function module and then print in LV header part.

  • How to allow input text field to accept more than one "specific" answer.

    Hi,
    I am working for something and trying to create a type-box-based quiz for one of my classes, where an input text field can change it's border color if 2 or more words from an accepted word list is inputed.
    For example, Say a list has possible answers: R,G, B, Y for the question "Name 2 colors".
    I want to create an input text box where the border of the box will change color if any 2 letters (in the above list) are entered into it.
    I've tried setting up a variable NumberSuccesses and setting it so that the number increases by 1 for each letter entered e.g.
    if (Ex.text == "R");
    NumSuc = NumSuc +1; // the var NumSuc has already been defined earlier in the code
    If (Ex.text ''G")
    NumSuc = NumSuc + 1
    if (NumSuc == 2)
    Ex.borderColor = 0x0000FF
    but that didn't work.. and I tried doing it with another function which I use for multiple input boxes like if there were boxes A, B, C. I could set up a general function where if the correct answers were entered into A, B, an C respectively, only then will say, a checkmark show up using a
    EnableCheckmark (); type function. Not sure how to do it if it's the same text input box though. Also just tried adding it into the same function re.
    If (Ex.text == "R" + "G")
    Ex.borderColor = 0x0000FF
    .. Does anyone know what else I can do?

    The solution of Nishu with Evaluation Logic:
    //These Are the Possible Answers
    var solutions:Array = new Array("A","B","C","D");
    function testInput(_inputText:String):Boolean
        //the delimiter could also be a comma, here it is a space
        var inputStringArray:Array = _inputText.split(" ");
        var counter:Number = 0;
        for (var i:int=0; i<inputStringArray.length; i++)
            for (var j:int=0; j<solutions.length; j++)
                if (inputStringArray[i]== solutions[j])
                    counter++;
        if (counter >=2)
            trace("true");
            return true;
        else
            trace("false");
            return false;
    //Textfield with name input_txt on stage
    input_txt.addEventListener(TextEvent.TEXT_INPUT, answerTxtInp);
    // The function that will be called by the event listener
    function answerTxtInp(txtEvent:TextEvent):void
         // depending on the possible answers of characters, change the border  color
         if(testInput(input_txt.text)){
             input_txt.borderColor = 0xFF0000;
         else{
             input_txt.borderColor = 0x000000;

  • Using input text to alter movieclip

    I have a number of movieclips which I would like to move when a particular value is entered into an input text box. The movieclips simply need to grow longer when a value is added to the input text. eg '10' would cause 'this.movieclip1._xscale += 20;'
    The closest to an explanation of how to achieve this that I could find was here: http://forums.adobe.com/message/140884#140884, but I dont understand what an 'associative array' is!?
    Any ideas anyone? Thanks, R.

    Ok, well I sorted out that bit of script to make it work with my files and it worked, but I think flash is having trouble handling my script.. I am trying to produce a 'clock' where numbers typed into the text box play a single movieclip (as above), the problem being that I am using 60 individual movieclips, and therefore 60xthe 'if ' function code above, and I think it's having a problem as flash seems to get confused with a (seemingly random) part of my code way before I have added all the needed sections of code.
    This is the code I am using (It's a very clumsy way of solving the problem but I am a basic as2 user!):
    time.onChanged = function()
    if(time.text >= 1201 && time.text < 1213) {
              line1._xscale += 20;
      line1._yscale += 20;
      if(time.text >= 1213 && time.text < 1225) {
              line2._xscale += 20;
      line2._yscale += 20;
      if(time.text >= 1225 && time.text < 1237) {
              line3._xscale += 20;
      line3._yscale += 20;
      if(time.text >= 1237 && time.text < 1249) {
              line4._xscale += 20;
      line4._yscale += 20;
      if((time.text >= 1249 && time.text < 1300)or(time.text >=0101 && time.text < 0102)) {
              line5._xscale += 20;
      line5._yscale += 20;
       if(time.text >= 0102 && time.text < 0113) {
              line6._xscale += 20;
      line6._yscale += 20;
       if(time.text >= 0113 && time.text < 0125) {
              line7._xscale += 20;
      line7._yscale += 20;
       if(time.text >= 0125 && time.text < 0137) {
              line8._xscale += 20;
      line8._yscale += 20;
        if(time.text >= 0137 && time.text < 0147) {
              line9._xscale += 20;
      line9._yscale += 20;
        if((time.text >= 0147 && time.text < 0160)or(time.text >=0200 && time.text < 0202)) {
              line10._xscale += 20;
      line10._yscale += 20;
      if(time.text >= 0102 && time.text < 0113) {
              line6._xscale += 20;
      line6._yscale += 20;
      if(time.text >= 0102 && time.text < 0113) {
              line6._xscale += 20;
      line6._yscale += 20;
      if(time.text >= 0102 && time.text < 0113) {
              line6._xscale += 20;
      line6._yscale += 20;
      if(time.text >= 0102 && time.text < 0113) {
              line6._xscale += 20;
      line6._yscale += 20;
      if(time.text >= 0102 && time.text < 0113) {
              line6._xscale += 20;
      line6._yscale += 20;
    Where time.text is the input text box, line1, line2 etc are my movieclips (there are 60, but only the code for 6 here), and the number ranges are basically incriments of 12 as I am trying to use the time(12hr clock) digits as a number that I can then [ut into a number range that would play the appropriate movieclip.
    Complicated I know but I have attached the file, which works if you enter 1234/1256/1250 etc, and it's a firly basic idea, but I think I am approaching it in the wrong way and am not sure how to work around it!

  • How to use long texts in explanation tool tip?

    Hi ,
         Can anyone tell me how to add long text in Explanation tool tip?
    I am able to use short OTR texts in explanation tool tip but not able to use long OTR texts.
    Thanks and regards,
    Vivek Shetty.

    For long text
    method1
    Create TEXT node- general attributes change text type to include text
    then you can input text name/text object/text id/language
    method2
    create PROGRAM LINE node - use FM READ_TEXT to read it to a internal table
    then use LOOP or TABLE node to display it
    For TEXT module(For foreign language)
    Tr-code:smartforms -- choose Text module(not choose form)--create a text module object
    then enter smartform Create TEXT node- general attributes change text type to text module
    input the text module name which created by above
    btw SO10 is just for Scriptform, in smartforms we use text module to replace SO10

  • How to create input text of the node in AVL tree

    Hi experts,
    I create a simple AVL tree to display the sales order items, just two classes for one relationship. Like the left part on the screen in this program "DEMO_ABAP_OBJECTS_CONTROLS".
    I want to let the node of the second class be maintained serial no., somthing like input field behind the node or double click the node, then show up the input field on another space on the same screen.
    And there is a button on screen, I can do some check for the text of input field when pressing the button. If the input data is wrong , then show up the error message.
    I have searched BCALV* in SE38, but i don't see anything helpful.
    Plz give me some advice, thanks a lot!!
    Regards,
    Claire

    To Kunjal and Uwe,
    My AVL tree is declared like this:
    Data: tree TYPE REF TO cl_gui_simple_tree.
    The class is not  "cl_gui_alv_tree" , so I can not use the code.
    The code I create the node is the follwing:
    CALL METHOD tree->add_nodes
             EXPORTING table_structure_name = 'ABDEMONODE'
                       node_table = node_table.
    And I looked the program that Uwe wrote, the tree is declared in class cl_gui_alv_tree, too.
    I want to double click the node and appear a field that can be inputed text.
    Is there any other way to do this with the class cl_gui_simple_tree?
    Thanks for the advence help.
    Claire

  • Using input text that's in a MC

    Hi all -
    Tearing my hair out on this, and it seems like it shouldn't be that difficult.
    I've got an input text box (opAnswerTxt) that I've added to a movie clip (questAns) using AS3:
    questAns.addChild(opAnswerTxt);
    That's fine -- I'm able to type text into the text field. Now I need to trace this text. (Ultimately, I will want to capture the text in a variable and then reuse the text in a dynamic text field, but just tracing to make sure I can get the text first.)
    I added a button (opSaveBtn) - also to the MC - and added an event listener to the button:
    questAns.addChild(opSaveBtn);
    opSaveBtn.addEventListener(MouseEvent.CLICK, saveOpInput);
    but can't seem to trace the input text. Here's what I'm using:
    function saveOpInput(me:MouseEvent):void
      trace (opAnswerTxt.text);
    My output is the original default text I have in the text box, rather than the text I just typed in.
    When I add the input text box to the stage, rather than to the MC, it works fine.
    Note: I've tried targeting the instance -- see the following -- but I get an error.
    trace (questAns.opAnswerTxt.text);
    Also tried trace (MovieClip(root).questAns.opAnswerTxt.text) and that didn't work either.
    Can anyone help?
    Thanks!
    Miriam

    Thanks for your quick response. You may be right on this. The MC (and child text box and button) are all within a loop that's parsing an external XML file.
    Basically, I'm trying to create a "form". The questions are in the external XML file (so they can be updated by the customer later). I've got a loop that's parsing the XML file and creating an MC for each question element it finds. Each MC has a question text field (dynamic - populated from the XML), an answer text field (the input text field), and a save button. Here's the code:
    for (var i:int = 0; i < opLen; i++)
    //declare variables - the XML is loaded in the first frame - this all works fine
    var opQuestionElement:XML = opQuestion[i];
    var opQuestText:String = opQuestionElement;
    var opQuestionsElement:XML = opQuestions[i];
    var opQuestNum:int = opQuestion[i];
    //add container to hold each q&a
    questAns = new qAndAMC();
    questAns.width = 575;
    questAns.height = 200;
    questAns.x = 0;
    questAns.y = 0 + i * questAns.height;
    containerOp.addChild(questAns);
    questAns.name = "Q&A #" + (i+1);
    //add question text
    var opQuestionTxt:TextField = new TextField();
    opQuestionTxt.multiline = true;
    opQuestionTxt.wordWrap = true;
    opQuestionTxt.defaultTextFormat = qTextFormat;
    opQuestionTxt.embedFonts = true;
    opQuestionTxt.htmlText = (i+1) + ". " + opQuestText.toString();
    opQuestionTxt.width = 545;
    opQuestionTxt.x = 5;
    opQuestionTxt.y = 10;
    questAns.addChild(opQuestionTxt);
    opQuestionTxt.name = "OpQuestTxt " + (i+1);
    trace(opQuestionTxt.name);
    opQuestionTxtFieldList.push(opQuestionTxt);
    //add answer input text box;
    var opAnswerTxt:TextField = new TextField();
    opAnswerTxt.type = "input";
    opAnswerTxt.multiline = true;
    opAnswerTxt.wordWrap = true;
    opAnswerTxt.background = true;
    opAnswerTxt.backgroundColor = 0xFFFFFF;
    opAnswerTxt.border = true;
    opAnswerTxt.defaultTextFormat = qTextFormat;
    opAnswerTxt.embedFonts = true;
    opAnswerTxt.width = 545;
    opAnswerTxt.height = 110;
    opAnswerTxt.x = 10;
    opAnswerTxt.y = 60;
    opAnswerTxt.text = "Here's some text";
    addChild(opAnswerTxt);
    //add save btn
    opSaveBtn = new saveButton();
    opSaveBtn.x = 522;
    opSaveBtn.y = 188;
    opSaveBtn.buttonMode = true;
    questAns.addChild(opSaveBtn);
    opSaveBtn.addEventListener(MouseEvent.CLICK, saveOpInput);
    function saveOpInput(me:MouseEvent):void
      trace (opAnswerTxt.text); //This currently traces "Here's some text", rather than what I type in
    The two things I need to solve are:
    1. I want to be able to "save" the input text in each of the input fields, so if the user navigates away from this frame, the text they input last time isn't lost. Ideally, I'd like all of the input text fields to display whatever text they entered last time -- but they should still be an input field so they can edit the text if they want.
    2. I want to be able to print (or save to a text file) ALL of the question and answer text fields. I believe I need to create a separate print job MC for this?
    Any help you can give would be greatly appreciated!!
    Miriam

  • How to use apex_item.text in a collection or tabular form

    Hello,
    I have a table with table names. (simplified)
    create table test (tab_nm VARCHAR2(30) )
    Now I want to present this tables on a tabular form with a checkbox and a text item to put the short name for this table name.
    So I was thinking in the way of
    select apex_item.checkbox(1,ids) check,
    tab_nm,
    apex_item.text(2,c001) short_name
    from test;
    Ibut this doesn't work since the c001 column does not exist.
    So I probably should go for a collection, but how do I do that and how to process the text put in in the text item?
    Thanks

    Hi Marc,
    I think the purpose is different. I want to create a 3 column report with a checkbox to select the tables I want to use and because I do not store the shortname in the table I want the user to be able to give the shortnames himself for the selected tables.
    So
    checkbox tab_nm from table item( filled in by user but not stored in table)
    x table 1 tab1
    x table2 tab2
    table3 tab3
    writing this I 'm considering to save the short names because it can give conflicts if a shortname is used twice
    Purpose is to generate tables, with sequences and triggers dynamically from the selected tables.
    Erwin

  • How to use input box LOV in query panel (search region)

    Hi,
    We are having JDeveloper version 11.1.2.4.0
    In one of the JSF page, we are showing some data (absences).
    Requirement is to add search region at the top so that user can filter the data, based on search parameters like Business Group, Job etc.
    The search parameters are inter-dependent e.g. Job is dependent on Business Group. So when user selects some particular Business Group, Job search field should show jobs for that Business Group only.
    This works fine we use Choice List for both Business Group and Job.
    However since there are huge number of jobs, Job choice list makes page rendering very slow.
    So we tried to use Input box with LOV for Job.
    But now when job is selected in the LOV popup and returned to main page, job search field shows job id instead of job name.
    Please note that our base VO (AbsencesVO) contains JobId attribute. We have added List of Values on JobId, which fetches Job Name through JobVO1 view accessor.
    How to make Job LOV field show selected Job Name instead of ID? Kindly advise.
    Thanks,
    Vivek

    Thanks Timo/Bangaram, for prompt replies
    Timo, the link mentioned by you talks about showing IDs (DepartmentId, ManagerId etc.) in the search region. I need to show names in the form of Input box LOV.
    Bangaram, as per your suggestion I tried using transient JobName attribute. However now when I select any value in the Job LOV popup and return to main page, it shows first Job Name in the Job Name search field.
    Also when I click 'Search' button in Search panel, it shows error - Attempt to set a parameter name that does not occur in the SQL: BindJobName
    Please note that I have added both JobName and JobId in the List configuration as you suggested.
    In View criteria, I have removed previous item (condition) on JobId and added condition on JobName.(This is required because JobId condition shows JobId search field)
    I also tried making JobName dependent on JobId..still same behaviour.
    Kindly advise.
    Thanks,
    Vivek

  • How to use OTR Text!

    Hi gurus,
    I am using the CRM Survey Suite to create a Survey form.
    I am supposed to create a PBO through which the OTR Texts will be displayed based on conditional checks.
    I have also created the OTR Texts via transaction Sotr_edit and  I am able to retrieve them via FM sotr_get_concept.
    Pl. let me know how I can show them on the web page, i.e. my survey form.
    I have searched and found that they can be used readily in BSP but how to use them in a Survey Form.
    Regards
    Atul

    Hello
    I am not sure whether we can assign it at the screen properties level. But you can do one thing, call the FM SOTR_READ_TEXT_WITH_KEY by passing the context of the SOTR you want to read and get the text associated back in the ENTRY structure.
    You can have a I/O field which is output only on the screen. And in the program you can assign the OTR text to this I/O field so that the OTR text will be displayed.
    Regards
    Ranganath

  • How to use Oracle text

    I'm storing files in a blob field in a 9i database, sometimes I need to query using the details stored in the database about the file and sometimes I need to search the files to find matches with some text (like search engine), I was told that oracle text can help me accomplish this functionality , however I don't know if it supports arabic text and I don't know how to use it from my application developed in 9i.
    Regards.

    Friend by using these step you can easily use Oracle inter text media
    j a h a n z e b
    [email protected]
    Oracle Developer
    6th Floor, State Bank of Pakistan
    I.I.Chundrigar Road, Karachi.
    Please note that in SqlPlus you can use '?' in stead of $ORACLE_HOME, and this works on Unix and Windows so if you want to execute $ORACLE_HOME/rdbms/admin/catalog.sql you can simply use:
    on Unix sql> @?/rdbms/admin/catalog.sql
    on Windows sql> @?\rdbms\admin\catalog.sql
    5.2.1 Explanation of installation steps
    1. Connected to database as SYSDBA and create CTXSYS user:
    Ctxsys user is created by calling following script:
    @?/ctx/admin/dr0csys.sql <ctxsys> <system> <temp>
    Where:
    change_on_install - is the ctxsys user password
    DRSYS - is the default tablespace for ctxsys
    TEMP - is the temporary tablespace for ctxsys
    This will create user CTXSYS and grants full privileges to CTXSYS in order to create and insert into result tables, execute callbacks, rewrite queries, and perform system cleanup. At this point CTXSYS will not own any objects.ss
    2. Connected to database as CTXSYS and create all necessary objects
    All necessary object are creates by calling following script:
    connect CTXSYS/change_on_install
    @?/ctx/admin/dr0inst <replace with $ORACLE_HOME>/ctx/lib/libctxx9.so;
    Please not that you have to put full path to your ORACLE_HOME, for example home as paramter
    On Solaris/Aix/Linux with $ORACLE_HOME of /u01/app/oracle/product/8.1.7
    @?/ctx/admin/dr0inst.sql /u01/app/oracle/product/8.1.7/ctx/lib/libctxx8.so
    On HP-UX with $ORACLE_HOME of /u01/app/oracle/product/8.1.7
    @?/ctx/admin/dr0inst.sql /u01/app/oracle/product/8.1.7/ctx/lib/libctxx8.sl
    Windows NT/2000 with D:\oracle\product\8.1.7
    @?/ctx/admin/dr0inst.sql D:\oracle\product\8.1.7\bin\oractxx8.dll
    This will installs all Oracle database objects required by the Oracle Text system. This includes:
    a) Data dictionary tables, views, sequence, packages
    b) Server management tables, views and packages
    c) Dispatcher packages
    d) Service queue objects
    3) Install appropriate language-specific default preferences.
    The next step is to install appropriate language-specific default preferences.When you use CREATE INDEX to create an index or ALTER INDEX to manage an index, you can optionally specify indexing preferences in the parameter string. There are seven preference classes:
    - Lexer, defines the language being indexed. ( language specific )
    - Wordlist, defines the expantion of stem and fuzzy queries. ( language specific )
    - Stoplist, defines words and themes that are not be indexed. ( language specific )
    - Datastore, defines document storage.
    - Filter, defines standards for converion of documents to plaintext.
    - Storage, defines the storage of the index tables.
    - Section group, enables possibilities to define document sections.
    There is script which creates language-specific default preferences for every language Oracle text supports in <ORACLE_HOME>/ctx/admin/defaults directory, such as English(US), Danish(DK), Dutch(NL), Finnish(SF), French(FR), German(DE), Italian(IT), Portuguese(PR), Spanish(ES), and Swedish(S). They are named in the form drdefXX.sql, where XX is the language code. To manually install US default preferences, for example, log into sqlplus as CTXSYS, and run 'drdefus.sql' as described below:
    @?/ctx/admin/defaults/drdefus.sql
    create user textuser identified by textuser
    default tablespace users
    temporary tablespace temp;
    -- You must grant 'ctxapp' role to textuser
    grant connect, resource, ctxapp to textuser;
    connect textuser/textuser
    drop table quick;
    create table quick (
    quick_id number
    constraint quick_pk primary key,
    text varchar2(80) );
    insert into quick ( quick_id, text ) values (1,'The cat sat on the mat');
    insert into quick ( quick_id, text ) values (2,'The quick brown fox jumps over the lazy dog' );
    insert into quick ( quick_id, text ) values (3,'The dog barked like a dog');
    commit;
    create index quick_text on quick ( text )
    indextype is ctxsys.context;
    col text format a45
    col s format 999
    select text, score(42) s from quick
    where contains ( text, 'dog', 42 ) > 0
    order by s desc;

  • How to accept input Text in UpperCase?

    Hi,
    How to accept Character Text from users in UpperCase in inputText Field?
    I am using ADF BC and Jdev10.1.3.1.
    In forms world it is very simple ( setting the visual attributes ), I am searching for such simple solution in Jdev .
    Regards,
    Seshu.

    Hi,
    I'm using CSS for uppercase:
    <af:inputText ... inlineStyle="text-transform: uppercase"/> Note this doesn't influences an internal value, just displays the value in upperscase.
    To store the value in upperscase, you need for example to override setter method.
    public void setCode(String value) {
        if (value != null) {
            value = value.toUpperCase();
        setAttributeInternal(CODE, value);
    }Rado

  • How to get input text values from adf table - Urgent

    Hi Friends,
    This is my requirement. I designed customized master - detail - detail page. I customized the page in below format.
    1. Master Data Field (Input text,etc) .
    2. Detail in table format ( Rows are mapped to child table) and i given two buttons for to create row and delete row. I designed the table based on the example provided in forum for to create customized table. The input text component is mapped to the rows.
    Now i want to retrieve all the data's entered in the rows. The table is mapped to child table. When i read the values from the table its showing null.
    If any one faced this problem and fixed it, please send me the solution.
    Thanks & Regards
    VB

    Did you look into the valueChangeEvent?
    It has oldValue and newValue attributes.
    public void SaveMaterial(ValueChangeEvent valueChangeEvent) {
    Object oldVal = valueChangeEvent.getOldValue();
    Object newVal = valueChangeEvent.getNewValue();
    // check if you see what you are looking for.....
    getSelectedRow();
    SaveMaterial(material);
    }Timo

Maybe you are looking for

  • How to Change Chart Category Labels(X) Alignment?

    Hello, Does anyone know of a way to change the alignment of category labels in a line chart in Xcelsius? The default appears to be vertical, but I have some long category labels that completely compress the chart, is there a way to angle the labels,

  • Unable IMPORT EXPORT ???

    hi i try to use import from export file or export to export file. i make a job but at the end when i submitt job i have an error : (oracle 10g) ORA-20204: User does not exist: POVAPSYS ORA-06512: na "SYSMAN.MGMT_USER", line 122 ORA-06512: na "SYSMAN.

  • Can I change the color of folders in the mail application?

    Can I change the color of folders in the mail application?

  • Start Page for Non Readers

    I just discovered a new use for iWeb (as if we needed more excuses) My son is not yet reading, but he does play appropriate kids games online . He's always needing my help to find the links to his preferred sites because he can't read the bookmarks.

  • Combining bandwidth of two wireless cards

    Hi, I have a mac mini c2d which comes with a built in b/g network. recently ive upgraded to a new N router for which i bought a new llinksys usb key (N Netowrk operating on 5 ghz). the problem is that this connection seems to be cutting in and out, m