How do I display array values in a text field?

Hi there-
I have a small Flash movie I'm trying to complete, it's my
first go around with Flash 8 so I appreciate your patience:
I built an array with some actionscript which seems to work
fine (I can trace it and all is well in the trace window). Now I'm
simply trying to display it to my Flash movie screen and I've built
a dynamic text window which is working, except that I only ever get
the last array element to appear in the dynamic text window. I've
traced the code and see all of my array values, but when I use
"myResults_txt.text=picker_array;" I only see the last position's
value in my array. I tried playing with the "multiline" attribute
for the text field, it didn't seem to make any difference.
I'm sure it's probably something silly that I've missed, but
how do you display an array, with all of it's values to a dynamic
text field (I even tried using the textArea component but ran into
the same problem).
Thanks in advance for any help-
rich

Thanks for your input. I tried just about everything but
ended up re-writing the contents of the array to a var and looping
through the var. Not my first choice but it got me to done.
Thanks again,
Rich

Similar Messages

  • How can I validate numeric values in a text field?

    Hi
    Once more I have a problem.
    I have a field in which the user should enter 10 digits in the pattern 999999-9999. The field must only contain numeric data and must be exactly 10 characters. I have a validation script on the print button, that prevent printing if required fields are empty or not properly filled out.
    I have tried two ways to work this out, and I'm not satisfied with any of them, as I can still print despite of validation scripts and warning messages.
    1.
    I set the field to numeric, limited to 11 characters.
    Display pattern num{999999-9999}, edit pattern num{999999-9999} and validation pattern num{999999-9999}
    Problems using this solution: When I type 11 digits in the field (ex.12345612345) I get a warning message and 12.345.612.
    But when I type 9 digts (ex. 123456-123 or 123456123) I get no warning message and 000000-0000 or 012345-6123
    If I type alphabetical characters (ex. 123456-abcd) I get no warning message and 000000-0000.
    2.
    I set the field to text field, limited to 11 characters.
    Display pattern text{999999-9999}, edit pattern text{999999-9999} and validation pattern text{999999-9999}
    Now when I type 11 digits in the field (ex.12345612345) I get no warning message and 12345612345.
    When I type 9 digts (ex. 123456-123) I get no warning message and 123456-123
    When I type 9 digts (ex. 123456123) I get a warning message and 123456123
    If I type alphabetical characters (ex. 123456-abcd) I get a warning message and 123456-abcd.
    It works slightly better as a text field, but I am not satisfied at all.
    Has anyone a solution to this?
    Additional I would also like the hyphen to emerge automatically when typing.
    K

    I just want to summarize my experience.
    I found a related discussion here: http://forums.adobe.com/message/2513720#2513720.
    Putting the pieces together I came up with this solution.
    form1.subform.TextField1::exit - (JavaScript, client)
    var      
    myRegex = /\d{6}\-\d{4}/;
    var   
    singleDigits = [0,1,2,3,4,5,6,7,8,9]; // array for single digit check
    if   
    (this.rawValue != null || this.rawValue != ''){ // only if the field has a value...
         if (!this.rawValue.match(myRegex)){ // and it doesnt match the pattern (i.e. 2 digits)
         this.rawValue 
    = ''; // clear the field
         xfa.host.setFocus( 
    this); // set focus back to the field
         xfa.host.messageBox('Error: Pattern Conflict. Please use the pattern 999999-9999.'); 
    // enter any message you wish here
    Kirstine

  • How to change display type of an existing Text field to a Picklist

    I need to modify an existing Text Field in the Expense report page to a Picklist and associate values to that picklist. Is this possible through Personalization ? If not, can someone let me know how this can be achieved.
    Thanks
    Meera

    We created an item instead of creating a region and extending it. But here we have one more problem. The item we added is getting displayed at Button Layout section
    Where did you create it, you should choose the appropriate region's create item icon to add it. If think you added it in a wrong place.
    And one more issue that we are facing is - we are getting an error (No current row for View (<ViewInstance>)). when we clicking the save or next button in that page. Please let us know how to update the existing controller and save the value in that picklist item to the database.
    There are two issues here,
    - you are trying to replace the messageTextInput with the poplits, so you should get the viewAttribute and viewUsage name associated with the textinput and provide that as part of the messageChoice definition.
    - the picklist VO which is the datasource for the poplist is not included in the existing seeded AM since you didnot follow the steps I mentioned earlier to create the stacklayout and add it instead of adding it directly. Probably you are on a version earlier than CU2, in which case you need to follow the additional steps mentioned below.
    While adding the poplist donot specify the picklist view definitions,
    1. extend the controller on the page and write your controller
    2. Call super first
    3. get a handle to the root AM and create the viewobject dynamically by using the createViewObject API on the AM.
    4. get a handle to the poplist in the controller, you need to do this first before creating the poplist in the personalization(otherwise the page might error out if you created the poplist first without the picklist view definition properties) and set the display, value attributes as well as the picklist view defintions based on the viewobject you created in step 3.
    5. Use personalization and add your poplist
    6. replace the old controller class with the new one.
    You are done.

  • How to show a database value in a text field

    Hi,
    i 'm using hibernate and jsf . i need to show some text field values . these values i need to take database and show. how can i do that ?
    Regards and thanks ,
    Sukesh

    What is the problem exactly?

  • How do I 'commit' a value in a text field with GUI scripting?

    I have a script to change the dates of a "Roll" in iPhoto. I can insert the text into the proper field, but it doesn't 'stick'. When I click on another item, the text field returns to the old date. If I click on the text field before I run the script, then a Tab or Return from the keyboard will set the field properly.
    Do I need to programatically set the 'focus' on the field first? Without setting the focus first, a "keystroke return" is caught by the top window and either beeps or opens a photo for edit (as one might expect).
    tell text field 2
    set value to rDate -rDate is a string "4/30/06"
    keystroke return
    end tell

    Thanks for the reply. Backstory: My iPhoto library got corrupted, so I created a new one and dragged in the old Library. The Rolls all have the date the new rolls (directories) were created; all the same in this case. Sorting the rolls by date is thus nonsensical. The AppleScript for iPhoto doesn't handle what I want to accomplish, but the UI scripting might help me out.
    When the whole Library is picked, you can 'view' by "Film Rolls" and the date appears in the bar above each roll of photos. You can change the date in the "Information" area available at the lower left. (The same area you change the title of the rolls or photos, too.) I want to change the roll dates to match the photos' dates.
    So I fired up UI scripting and figured out that I can fetch the date range of the photos in a roll and then set a date for the roll. I can see the date change in the text field, but it doesn't 'stick'. Only if the field has been clicked on prior to running the script, can I "keystroke return" to 'enter' the field. Otherwise I'm looking for suggestions.
    Slightly off topic: The whole right side of the iPhoto screen is a big black hole for UI events. You can't tell anything about it with the UI Element Inspector. I can't automagically 'pick' anything in there, so I can't 'select' the rolls from a script. I'll settle for clicking on a roll and then running a script to correct its date.
    Here's the whole script, without a bit that verifies that the 'assistive devices' box has been checked in the Universal Access pref.
    tell application "iPhoto"
    activate
    end tell
    tell application "System Events"
    tell process "iPhoto"
    activate
    tell window "iPhoto - rebuilt Library"
    tell group 1
    tell splitter group 1
    tell splitter group 1
    tell static text 5 --either 'from' or 'date'
    set theLabel to value
    end tell
    if theLabel is "date" then
    tell static text 6
    set rDate to value
    end tell
    else --get date from 'to' field
    tell static text 8
    set rDate to value
    end tell
    end if
    tell text field 2 --roll's date
    set value to rDate
    keystroke return --might not work
    end tell
    end tell
    end tell
    end tell
    end tell
    end tell
    end tell

  • How can I display a value in a form field

    I have tried using the set_value_as_string and set_value functions functions in query buttons PL/SQL event handler .But then the value is not getting displayed in the field.
    Could I get any help on this ........

    solution removed, because you crossposted.
    Message was edited by:
    Navy_Coder

  • How do i display input values (POV) for a table control field

    Hi guyz !
    How do i display input values (POV) for a field in table control,
    i mean when user presses F4 on a table control field.
    Please help.
    Thanks
    jahan

    PROCESS ON VALUE-REQUEST( F4 ) statement  
    Code to demonstrate how to perform a manual value help(F4) on a particular field using the PROCESS ON VALUE-REQUEST statement and how to return values back to a table control on the screen. For standard screen fields simply move the value to the appropriate screen field name.
    * Screen flow logic........
    PROCESS BEFORE OUTPUT.
    *MODULE PBO_MODULE.
    PROCESS AFTER INPUT.
    *MODULE PAI_MODULE.
    PROCESS ON VALUE-REQUEST. "F4
      FIELD EKPO-EBELP MODULE help_ekpo.
    MODULE help_ekpo INPUT.
    **Transport values to table dynpro/screen table control
      DATA: l_stepl LIKE  sy-stepl,
            l_indx  LIKE  sy-stepl.
      DATA: dynpfields        LIKE dynpread OCCURS 5 WITH HEADER LINE.
    * Adjust for scroling within table control
      CALL FUNCTION 'DYNP_GET_STEPL'
        IMPORTING
          povstepl        = l_stepl
        EXCEPTIONS
          stepl_not_found = 0
          OTHERS          = 0.
      l_indx = tc_ekpotable-top_line + l_stepl - 1.
              "tc_ekpotable should already have been declared
      REFRESH dynpfields.
      CLEAR   dynpfields.
      dynpfields-fieldname  = 'EKPO-EBELN'.
      dynpfields-fieldvalue = '00010'   "wa_ekpo-ebeln.
      dynpfields-stepl      = l_stepl.
      APPEND dynpfields.
      dynpfields-fieldname  = 'EKPO-EBELP'.
      dynpfields-fieldvalue = '00020'   "wa_ekpo-ebelp.
      dynpfields-stepl      = l_stepl.
      APPEND dynpfields.
      CALL FUNCTION 'DYNP_VALUES_UPDATE'
        EXPORTING
          dyname     = 'SAPLZZ_EKKO'    "Program name
          dynumb     = '0100'           "Screen number
        TABLES
          dynpfields = dynpfields
        EXCEPTIONS
          OTHERS     = 0.
    ENDMODULE.                 " help_ekpo  INPUT
    reward points  if it is usefull ..
    Girish

  • How to display negative values in a screen field of a screen

    Hi All,
    Please let me know how to display negative values in a screen field of a screen.
    thanks

    Hi Kishore,
    You can do this method. In the screen , create a text field of CHAR instead fo creating an INT4 field.
    I have created a field of CHAR of name say TEXT.
    In the main program,
    declare a variable of the same name ie. TEXT.
    data: TEXT(5) TYPE C.
    In PBO, just assign the negative values.
    It will work.Since there is automatic conversion between character and integer data types, it will work for positive values as well.
    Regards,
    Sylendra.

  • How can we get the value of the key field in a custom data model using governance API?

    Dear Team,
    How can we get the value of the key field in a custom data model, to be used for manipulation of the change request fields using governance API?
    Any kind of help would be sincerely appreciated.
    Thanks & Regards,
    Tushar.

    Hi Michael,
    Thanks for direction. Let me give more context on this as I'm interested to get more details..One of the issue was to read cross entity field values on UI based on user action and set other entity field behaviour...It is similar to what is being posted here.
    For ex: Reading MTART from Basic Data UIBB in MM MDG UI and set the field properties in some other custom entities say ZZETEST. This cannot be done using UI BADI as it only supports single entity at a time and not cross entity. So alternatively we found a solution where we can enhance existing PLMB feederclass cl_mdg_bs_mat_feeder_form by reading the model and the entity as needed as it it proved that it supports cross entity UI field behaviours and so business requirements.
    This is a workaround for now.
    So the question is How do we achive it using governance API for cross entity field behiaviours.?or what is the right way doing this.
    Can we do that using governance API and its' methods?
    In the Governance API doc you provided below has referring to below external model as part of gevernance API.
    The active or inactive data (before or during the derivation or the check) can be read
    with the external data model interface IF_USMD_MODEL_EXT with the method READ_CHAR_VALUE and
    the corresponding READ_MODE parameter. To avoid unnecessary flushes (derivations), the NO_FLUSH
    parameter should b
    e set to ‘X’.
    Thanks
    Praveen

  • SQL Loader-How to insert -ve & date values from flat text file into coloumn

    Question: How to insert -ve & date values from flat text file into coloumns in a table.
    Explanation: In the text file, the negative values are like -10201.30 or 15317.10- and the date values are as DDMMYYYY (like 10052001 for 10th May, 2002).
    How to load such values in columns of database using SQL Loader?
    Please guide.

    Question: How to insert -ve & date values from flat text file into coloumns in a table.
    Explanation: In the text file, the negative values are like -10201.30 or 15317.10- and the date values are as DDMMYYYY (like 10052001 for 10th May, 2002).
    How to load such values in columns of database using SQL Loader?
    Please guide. Try something like
    someDate    DATE 'DDMMYYYY'
    someNumber1      "TO_NUMBER ('s99999999.00')"
    someNumber2      "TO_NUMBER ('99999999.00s')"Good luck,
    Eric Kamradt

  • How do I overide the values in the text file

    I am reading a text file using loadvars, to get some values
    such as
    &yourid=123456 from the text file.
    How do I overide the values in the text file
    <PARAM NAME=movie VALUE="jamietrailer.swf?yourid=65432
    <---- this doesn't seem to work
    So I can change the values from the html file?

    I want to do this:
    # It should look like this:
    <PARAM NAME=movie VALUE= "movie.swf?text=hello">
    # Find the EMBED tag. Look for this:
    <EMBED src="/support/flash/ts/documents/movie.swf"
    # Again, replace the filename "movie.swf" with
    "movie.swf?text=hello".
    It should look like this:
    <EMBED
    src="/support/flash/ts/documents/movie.swf?text=hello"
    Is this supposed to overide the value I am reading using
    loadvars?
    or do I have to not read the value from the file if I am
    going to give it a value in html?

  • How do I pass a value between two selectOneChoice fields

    I have two selectOneChoice (LOV fields) on the same JSF page (trinidad form). How do I pass the value from the first field to the second one?
    AutoSubmit=true;PartialTriggers doesn't work.
    I used SetActionListener to copy the value from the first LOV to a pageflow variable ( #{pageFlowScope.x} ) but that didn't work either. I wasn't sure how to reference it in the second LOV ...
    thanks
    John

    <af:selectonechoice value="#{bindings.select1.inputValue}" id="select1" autoSubmit="true">
    <af:setPropertyListener from="#{row}"
    to="#{pageFlowScope.detail}"
    type="valueChange"/>
    </af:selectonechoice>
    <af:selectonechoice value="#{pageFloScope.detail}" id="select2" partialTriggers="select1"/>
    The above code is a rough example. you can do the same using the valuechangelistener for the first lov and set the value for the second one..
    you can refer this
    How to set value for selectOneChoice

  • How do I insert the value of an email field in the submit mailto: argument?

    I want to create a button that will redirect a PDF form to an email address entered as a field in the form.  In other words, a "return to sender" function.  The button function has a submit to URL where you can use "mailto:[email protected]".  How can I substitute the value from an email field in the form itself for the "[email protected]" value?

    You'll need to use JavaScript, and the mailDoc method in particular: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.505.html
    Get the value of the field that contains the email address and use it as the value of the cTo property. See the following for a sample script: http://forums.adobe.com/message/3553628?tstart=-1

  • How to change a list/menu to a text field when 'Other' is chosen?

    Hi there. I've been trying to solve this for a week now and I have depleted all my resources, that is why I'm here. I even went to jquery but nothing works and I think I was over-complicating this way too much.
    In short: I have a contact form, which have a list/menu with validation, and one of the options of that list/menu is "other". What I want is that when the user select "other" automatically change to a text field in order to let the user put his custom color. This is what I have:
    <form method="post" action="process.php">
    <span id="spryselect1">
    <label for="colors"></label>
    <select name="colors" id="colors">
    <option selected="option1">Blue.</option>
    <option value="option2">White</option>
    <option value="option3">Red</option>
    <option value="other">other</option>
    </select>
    <span class="selectRequiredMsg">Please select a colour.</span></span>
    <input type="submit" value="Send">
    </form>
    I know now that the approach is to show/hide a separate textbox besides the other... well. I don't know how to implement that, I think I really need your help guys. I'm completely frustrated.
    Thanks in advance.

    Have a look at the following
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <link href="http://labs.adobe.com/technologies/spry/widgets/selectvalidation/SpryValidationSelect.css" rel="stylesheet">
    <link href="http://labs.adobe.com/technologies/spry/widgets/textfieldvalidation/SpryValidationTextField.css" rel="stylesheet">
    <style>
    .hidden {display:none;}
    </style>
    </head>
    <body>
    <form action="" method="post">
      <span id="spryselect1">
      <label for="colors">Colours:</label>
      <select name="colors" id="colors" onchange="MyOnClickHandler(this.value)">
        <option value="">Please select...</option>
        <option value="blue">Blue</option>
        <option value="white">White</option>
        <option value="red">Red</option>
        <option value="other">other</option>
      </select>
      <span class="selectRequiredMsg">Please select a colour.</span></span><span id="sprytextfield1">
      <input name="other" id="other" class="hidden" type="text">
      <span class="textfieldRequiredMsg">A value is required.</span></span>
      <input name="" type="submit">
    </form>
    <script src="http://labs.adobe.com/technologies/spry/includes_minified/SpryDOMUtils.js"></script>
    <script src="http://labs.adobe.com/technologies/spry/includes_minified/SpryValidationSelect.js"></script>
    <script src="http://labs.adobe.com/technologies/spry/includes_minified/SpryValidationTextField.js"></script>
    <script>
    var spryselect1 = new Spry.Widget.ValidationSelect("spryselect1");
    var sprytextfield1;
    function MyOnClickHandler(value) {
         if(value =='other') { //show text field and set validation
              if(!sprytextfield1){
              sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
              Spry.$$('input#other').removeClassName('hidden');
         } else { //hide textfield and destroy validation
              if(sprytextfield1 && sprytextfield1.destroy){
                   sprytextfield1.resetClasses();
                   sprytextfield1.destroy();
                   sprytextfield1 = null;
              Spry.$$('input#other').addClassName('hidden');
         return false;
    </script>
    </body>
    </html>
    Gramps

  • I need to get the value of a text field that is located in another page JSP

    I need to get the value of a text field that is located in another page JSP. How do I do that?

    Well you see, I have a page at angelfire.com, which
    does not support JSP. I want to call a script located
    at mycgisever and then, when pressing a link on the
    former page, the JSP page is loaded, and the script
    get the value from the text field on the OTHER page.
    Is this possible?I know nothing about cgi. But that should not prevent me from understanding what can and cannot be done, assuming cgi is sort of comparable with jsps.
    I'm unable to understand your description clearly. Try to explain it better. Give precise steps that you intend to follow and I should be able to help you further.
    So you have a page1.
    You hit submit from page1.
    That goes to the cgiserver.
    From the cgiserver, programmatically load up the jsp.
    search this for the text field.
    Display it on your page2.
    Is that what you are trying to do?
    BTW, won't be able to help you with cgi scripting at all. Can help with Java and Jsp.

Maybe you are looking for

  • How to Hide passwords in the security window?

    I went to the security window to find a password. I clicked to unhide and display all the passwords. Now I want to hide them all again and it will not hide them

  • IMac sound is gone, what shall I do???

    I still have the start up sound, other than that the machine is completely quite. The speaker sign at upper right is grey. When I use keyboard shortcut to do volume adjustment, it shows a small disable sign at bottom like a strike through "O". Checke

  • Why when I scan an 8.5X11 document is the resulting pdf 8.5X11.7?

    How can I fix this? I cannot find a document preference setting or default setting. Using Acrobat Pro 9.

  • Business Partner Auto creation

    Hello Experts, We configured the customer to BP synchronization (CVI_1) We are able to autocreate BP on creation of customers. However we want to disable the same but only create BPs for only few customers selectively by extending them through FLBPD1

  • Accessing ext3 partitions from Windows with FS Driver

    Hi everyone, I have a slight probem. I'm dual-booting ArchLinux and Windows. Here is my partition scheme: /dev/sda1 (NTFS) Lenovo Recovery partition /dev/sda2 (NTFS) Windows /dev/sda3 (ext2) /boot /dev/sda5 (JFS) / /dev/sda6 (JFS) /home /dev/sda7 (ex