Combo box and stored Variables

Hi all

I am currently working on an interactive flash application for an open company day celebration for children and adults. The app is nearly complete but I even if I need an arrow to the left in case the user change their mind on some selections. At the beginning of the application, the user is prompted for their title with a combo box of actionscripted, as well as their first and last name values.

I have problems with when the steps of the user to that image from the drop-down list box does not show the value that has been shopping in title_cb. I had the values of fname and family name in the correct text entry areas, it's just the drop-down list box. I guess its the code that is bad, but don't know what else to try.

I hope that someone will be able to help.

The selectedItem is an object that contains the label and data properties. What you
can do to bring the handset to a variable is iterate over each item, verification
It's the label against your variable - if you find a match, you set the
selectedIndex of the comboBox control. Here's a function I user:

function setCombo (comboRef, searchLabel:String) {}
var l = comboRef.length;
for (var i = 0; i)< l;="" i++)="">
If (comboRef.getItemAt (i) .label == searchLabel) {}
comboRef.selectedIndex = i;
break;
}
}
}

to use, you would just go: setCombo (title_cb, citlecb);

HTH

--
Dave-
Developer leader
http://www.blurredistinction.com
Adobe Community Expert
http://www.Adobe.com/communities/experts/

Tags: Adobe Animate

Similar Questions

  • How to validate and save the values to a combo box and two text boxes in flex4 mxml application with as3

    helllo all,.

    I'm working on the application web flex4 with as3.

    I have a doubt, I've created a mxml it has two text boxes, except the button and a combo box that is has two option as a percentage and the amount.

    my needs are I gave here.

    need 1: when I choose option amount that two text boxes does not have to be editable.when I select text tat box two percentage option will be editable.

    need 2: when I select the percentage in combox option and two text boxes are empty, and then click the button Save-> I want to display warning msg

    need 3: when I select the option amount combox and the two boxes are emptu click the button Save-> I don't want any warning messages.

    How to validate it and how to write backup for this function.

    any suggession or extract code is welcome.

    Thanks in advance,

    B.Venkatesan

    Looks like you are trying to do too much at once. Try to hang the events correctly

    The close event of the comboBox can do something like this

    protected function toggleTextEditing(event:DropDownEvent):void

    {

    If (this.optionCmb.selectedItem.label is "Percentage")

    {

    This.Text1.editable = true;

    This.Text2.editable = true;

    }

    Else if (this.optionCmb.selectedItem.label == "Number")

    {

    This.Text1.editable = false;

    This.Text2.editable = false;

    }

    }

    The button's click event can do something like

    protected function save(event:MouseEvent):void

    {

    If (this.optionCmb.selectedItem.label is "Percentage")

    {

    If (this.text1.text == "" & this.text2.text == "")

    {

    Alert.Show ("text is empty");

    return;

    }

    on the other

    {

    }

    }

    Else if (this.optionCmb.selectedItem.label == "Number")

    {

    }

    }

    If you can put in your entire code, maybe I can have a look to see if I can find something wrong with that.

    -Pramod

    http://www.flexmycode.com

  • Edit box and presentation Variables

    Hey all,.

    I use a box to modify to filter my reports on the dashboard. It is not possible to set a Variable of presentation during the creation of the editing area, so how can I pass the selected values down to a narration or title in my report? The values are 'Month ends' for a year - so that the user can select whatever it is 1 value to 12 values.

    In the end, I want to display what the report is to be filtered on the user.

    I can't use the "Filter" box, as he shows also all other filters applied to the report - stuff, the user doesn't care / shouldn't see.

    I can't add the column box, change in the report as a hidden column, then refer to this column (@X) in a story - because it shows the same value several times - for each of the lines corresponding to the end of this month (if I could 'separate' a view narrative, perhaps it would work!)

    I can not just allow them to print the page and look at the edit for the applied selection box - if I chose two values, it displays only the first condition in the editing area, when I print.

    Any ideas? Much appreciated!

    A.

    I suggest to create a separate report holding only the month and use only the narrative view of this report. Then add this report to your dashboard.

    Kind regards
    Stijn

  • Additional mouse click required to set other combo box values based on the current selection combo box

    I have an Acrobat PDF form where there are 8 combo boxes (not editable) which are related in a logical way, but have unique names and a list of unique values, with the exception of a default value that represents 'null' or 'none '.

    for example:

    The first 1 combo box value is "none" followed by the value A1, B1, C1, etc., and Combo box 2 the first value is 'none' followed of the values A2, B2, C2, etc...

    The combined list useful values for every combo boxes relate to the types of unique product for the user to select mode 'radio button '.

    When the user selects one of the 8 Combo boxes and performs one selection other than 'none', then the form must verify the 7 other combo boxes and when any current value is not equal to 'none', he has to change 'None '.

    The following script is currently enrolled in the properties of "Actions - Mouse Run - Up a Javascript" from one of the drop-down list boxes, others have similar scripts as well.

    (var cbox is the current combo box and var obox is for other drop-down list boxes when called).

    Cbox var = this.getField ("TagStyleStake");

    If (cbox.value! = "none")

    {

    obox var = this.getField ("TagStyleBasket");

    If (obox.value! = "none")

    {obox.value = 'none' ;}

    Obox = this.getField("TagStylePushon");

    If (obox.value! = "none")

    {obox.value = 'none' ;}

    Obox = this.getField("TagStyleHandle");

    If (obox.value! = "none")

    {obox.value = 'none' ;}

    Obox = this.getField("TagStyleHang");

    If (obox.value! = "none")

    {obox.value = 'none' ;}

    Obox = this.getField("TagStyleBlank");

    If (obox.value! = "none")

    {obox.value = 'none' ;}

    Obox = this.getField("TagStyleMolded");

    If (obox.value! = "none")

    {obox.value = 'none' ;}

    Obox = this.getField("TagStyleSignage");

    If (obox.value! = "none")

    {obox.value = 'none' ;}

    }

    The current problem is that, when a Combo is selected and one option other than the 'none' value is clicked, the other combo boxes do not include the 'None' value.

    To reset the other combo boxes requires another click on the option which has just been moved to the position selected in the drop-down list, but it seems reasonable that the drop-down list boxes should reset with the initial click the option in the drop-down list.

    I tried other properties (Format, validate, Calculate) but without success.

    What I'm missing here?

    The normal way to proceed is to define "value option selected to validate immediately" and to place the code in the event of the combo box button. And instead of the first two lines you have, you need to use something like:

    If (! event.willCommit & event.changeEx! == 'none') {}

    Your other code goes here

    }

    The changeEx property returns the value of exports, if any, for the selected item.

  • Someone advise me on how to record and remember the actual information from a group of combo boxes?

    I have a set of combo boxes save a devices status information. I would like to record and remind all selections. I know there are properties to access the selected items, but the research on, I do not know the technique to do so. I want to save/recall in XML format. I made an attempt, and he saved the combo box data, but not the selections. Thanks for any help.


  • updates and selection of combo box

    Got attached VI work only to find this small button to the right of the combo box is difficult to choose on the touch screen.

    Need to enlarge the small button or even better replace with features similar to the RING.

    RING allows any box use button on the touch screen.

    Changing RING, required to re - write the code of the work, bad... so looking for suggestions.

    This is 8.6

  • How can I update by program table combo box control type def?

    I use LV 8.6.1 and I am trying to create a table control panel object in which the user can select an item to list box for each element of the array.  I also have to periodically update the list of values.  Currently, I have configured the drop-down list box (selection of Automation sequence - see attached) as a type non-stricte def so I can write news channels to the list values when I need to.  But I can't seem to find a way to get the table (list of batches - see rasthaus) fill the new value drop-down list box.

    Automation box refelcts the new string sequence selection that I add programmatically, but the combo boxes in the batch list table control do not have the new channel.

    Anyone have any ideas?

    I have attached the screenshot of the drop-down list and table controls.

    Thank you

    Dan

    I considered that mention strings and values have a property that cannot be stored in a typedef, but when I tried it out, it seemed that it was.  So I just did not comment on that.  Maybe the strings and values may be among the typedef, maybe not.  The values of the controls certainly cannot.  Strings and values can be in kind of a gray area.  But you can certainly expect changes to a control to automatically update another control, because they are typedefs.  You cannot change the typedefs during execution.

    Let's put another example that has nothing to do with the values.  You have a regular typedef of a digital.  It is saved with the text in red in scientific notation.  You place two instances of this on your drawing.  You can programmatically change each other colors or other digital formats.  A change does not affect the other.  If it's a strict typedef, you would be locked in the way in which it was saved and could not change it programmatically.

    Take a look at this.  If you cannot programmatically, to update your channel list and values for a single combobox (a scalar string) you will be able to put up-to-date for when the combobox control is the data type for a table.  Simply get a reference to the element of the array.  It does not use typedefs anyway.

  • Add up the scores in the text box with a variable

    Hello

    I create a quiz form that does not use the quiz slides (5,5) standard Adobe Captivate. I get the learner to mark themselves and enter the score into a text entry in a TextAreaWithVariable area. The scores are then displayed on the last page in the corresponding text box TextAreaWithVariable.

    I wish that Captivate to add up the scores on the last page. I've read somewhere that you use Actions in advance, so when the student enters the page it triggers the calculation by using the action of the Expression. The problem is that when you configure the action, it does not recognize the three TextAreaWithVariables on the page. They are all appointed, but the action does not pick up them.

    Could you get it someone please let me know where I am going wrong here.

    Thank you very much

    Nick

    Hi Nick,

    I've been blogging on the use of the text with Variables by Jim box:

    Extended features

    In the article referenced to in this post, you will find explanations in detail the advanced actions that I used.

    But I'm a little afraid that I need additional information:

    • you have a text box, with its variable partner on one page and this variable gets its value (20) by the user
    • How many of these slides you?
    • but then, you talk of multiple partitions that you want to summarize in a total variable to be displayed on another TextArea widget to the last slide.

    How you trigger the advanced actions to calculate the sum? I suggest that use you the action on enter each slide after the first question slide to temporary sum. Try to explain:

    1. Score of the first slide in question entered by the user and stored in the variable v_quest1
    2. Entering the second question slide create this advanced standard action triggered by action on enter on this slide
      • Expression v_sum = v_sum + v_quest1
      • Continue
    3. Entering the third question slide create a similar action with the score stored in v_quest2
      • Expression v_sum = v_sum + v_quest2
      • Continue
    4. When you enter the slide of score you the last of this breakthrough of similar actions to trigger and the final result will be in v_sum

    If you do not need to keep the individual from each question scores, you can even re - use only a single variable v_quest that would be associated with all widgets except on the slide to score and you can reuse the action advanced on each slide without having to edit.

    Lilybiri

  • Combo Box Manipulation of external file

    I looked and looked and looked at can not find much info on it. And I do not get the case. My ultimate goal was to load values from a text file called "data.txt" which would be stored with the pdf form. But I can not even understand how to fill the combo box list via code. Can someone help me or tell me if it is possible to load the values from a text file?

    I have a drop-down list named 'ItemCode' area, but still I can't understand how to add items to the box through code only.

    Combo1.gifCombo2.gif

    I did it on Page 1 open but it never works for me for some reason that I can't understand.

    //-------------------------------------------------------------

    -Do not change the tags XML-

    //-------------------------------------------------------------

    < Page Actions >

    < ACRO_source > Page1:Page Open: Action1 < / ACRO_source >

    < ACRO_script >

    / * belongs to: Page-stock: Page1:Page open: Action1 * /.

    var ItemCode = this.getField ("ItemCode");

    ItemCode.clearItems ();

    ItemCode.setItems ("Test");

    < / ACRO_script >

    < / Actions page >

    < AcroForm >

    < ACRO_source > CopyBillAddy:Annot1:MouseUp:Action1 < / ACRO_source >

    < ACRO_script >

    / * belongs to: AcroForm:CopyBillAddy:Annot1:MouseUp:Action1 * /.

    var ABC = this.getField ("CopyBillAddy");

    var ST = this.getField ("Ship_To");

    var BT = this.getField ("Bill_To");

    If (CBA.value == 'Yes') {}

    ST.value = three.value

    } Else if (CBA.value == 'Off') {}

    ST.value = ST.value

    }

    < / ACRO_script >

    < / AcroForm >

    < AcroForm >

    < ACRO_source > Invoice_Number2: calculate < / ACRO_source >

    < ACRO_script >

    / * belongs to: AcroForm:Invoice_Number2: calculate * /.

    (/ * BVCALC Invoice_Number1 EVCALC **/event.value=AFMakeNumber(getField("Invoice_Number1").value)

    < / ACRO_script >

    < / AcroForm >

    The argument for the setItems method must be an array, not a string:

    ItemCode.setItems (["Test1", "Test2"]);

    For more information, see: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.752.html

    And also this tutorial: http://acrobatusers.com/tutorials/2007/js_list_combo_livecycle/

  • Add items to the combo box when running

    In my program, I want to add int '34' "43", "17"... and let the user choose one of them to the drop-down list box. How can I add items to the combo box when running. Create a property node 'String [] '? I try that, but its screen is "3443". I want to display as "34".

    43

    17

    See attached extract

  • Channels not defined in Combo Box Bug?

    I found a problem with the drop-down list box control:

    1. create a drop-down list box and deselect 'allow Undefined Strings.

    2. run the VI

    3. Select a list box item

    4. press on the BACKSPACE key to remove a few letters of the item

    5. click on on the front panel

    The combo box is filled with a string not set!

    Disabling the BACKSPACE key is not a valid work-around because the user may need this while typing the value.  Expected behavior of the control would be to restore the previous value.  Any comments?

    Yes.

    Take a look at the bug report in this thread.

    http://forums.NI.com/NI/board/message?board.ID=170&thread.ID=379475

  • Combo box multiple values

    Hello world

    I would like to use a drop-down list box to send two different values for two entries for every combo box selection. For example if I select "Channel 1" form the drop-down list box, then the integer "1" and the string "1 x", which I can then send to the two separate terminals.

    I really have no idea how to do that, my one thought was to combine into a single value for the value of drop-down list box and then to cut the string and use it that way - but this seems awkward.

    See you soon!

    Instead of a combobox control, I'd probably use a ring.

  • How can I do a multiple selection in Enum control or control of the ring or control Combo box

    How can I do a multiple selection in Enum control or control of the ring or control Combo box

    You can not.

    You can use a listbox control.

    An alternative solution is to write the code and each selection, the user gives an enum, for example, can be send to a table and invite the user to continue to select...

  • doubt of combo box

    Hello

    I was struggling with the drop-down list box that appears always ASCII characters in the drop-down list. If I select any one character then it converted to hexadecimal value because I changed the control property of the spell combo box. I want to show all the drop-down list with hexadecimal numbers. How can I do that. Even I checked with the string value and the value [property] but still not able to do. Please anyone suggest me how to display the entire list of the combox in hexadecimal numbers. Indeed the visa reading block reads ascii characters.

    Thank you in advance.

    Never forget this post. I got the answer somewhere forum on neither. SO, now I'm ASCII hex conversion and then write in dropdownlist. Thank you.

  • Selected pass contains a string indicator combo box when you press the Enter key

    Hello

    How to pass selected contains a string indicator combo box when you press the enter keyboard key?

    Right now I use a button to send the command selected in the combox to string indicator.

    The photos shows a combo box with the button that I use to send to the indicator as example.

    After the user selects the text to pass, "send the cmd" button must be pressed to pass the string.

    I need to pass the selected string when the user press enter on the keyboard rather than press the button 'send cmd '.

    Kindly to you needing help.

    Hello

    You can use a structure of the event to capture keystrokes and filter, transmit only the drop-down list box "value of the indicator of channel when you press the return or enter key."

    Let me know it the joint allows an example (in LV 8.6).

Maybe you are looking for

  • HP elite 8000 usdt: HP elite 8000 usdt audio good DP

    Hello strugglin for 2 days im getting my hp elite 8000 usdt pc for video and audio rendering on my Samsung smart TV. The problem is that I have no audio on my TV through displayport to hdmi adapter adapter. According to what ive read on the internet,

  • NORTON ANTI VIRUS WITH HP 8 GB FLASH DRIVE

    I brought flash drive 8 GB hp with free norton anti virus free. I have registersd the form and got the activation code. For the download, I went to norton.com/latestnav as said. I downloaded the application 70 MB but it doesnot installs. The download

  • How to use a USB Apple Super Drive?

    How to start to use a Super USB drive?

  • Lights flashing on HP 6940

    I just replaced the carridge of black ink on my HP 6940, with the same ink cartridge #, and after I close the lid, I get the flashing lights on the power light, State and light black ink cartridge.  I tried to reinstall the cartridge several times wi

  • Dock Office withdraw to stay at the top of the screen

    How to remove the dock Office stay at the top of the screen?