display of the values of selected option buttons

Hello

It is an application that would allow users to go through a step-by-step process to build their product, in this case, it's ice cream.


Description:

There are six option buttons, four belonging to a radiobuttongroup and two others belonging to an another radiobuttongroup. In addition, there is a mx:TextArea (including the editable value false).

This Panel will most likely go into a mx:ViewStack as a "first step" in the process of personalization of the ice cream. The selection of a radiobutton to every radiobuttongroup must be required to move forward (go to the next "step", as in the Panel following in the ViewStack).

Problem:

Allowing the user to select an item in each of the two radiobuttongroups and write values of these two selected radiobutton [such as specified by the value of the radiobutton = property 'radioButtonValue'] to the mx:TextArea, on different lines.

I have been moderately successful in trying to do it, but I didn't know how to write two values in the same text box
without crushing them each other.

Misc.

At first, I tried something to the effect of: ( changed from the 2 flex components Explorer)

< mx:Script >
<! [CDATA]

Import mx.events.ItemClickEvent;

Event handler function to display the selected button
in a text box.
private void handleConeType(event:ItemClickEvent):void
{
If (event.currentTarget.selectedValue is "sugarCone")
{
iceConeTextBox.text = "Sugar cône";
}
on the other
{
If (event.currentTarget.selectedValue is "waferCone")
{
iceConeTextbox.text = 'Wafer cone. "
}
}
}
}
[]] >
< / mx:Script >
Quite exaggerated to get something to work, I know. It was not very effective, and I sincerely hope that there are better ways to do this.

I would like if possible avoid using two mx:textareas.

Example of

Here is a link to better describe what I'm talking about (Note: View Source is enabled).

ConeChooser Application


Thank you!

You can access the selected radio button value the id of Group of radio button groups, you don't need to check each radio button individually. Then coneType.selectedValue will give you the value of a button radio is selected in the group, and the coneType.selection.label will give you the label of the currently selected option button or null if none is selected.

Try this code:


http://www.Adobe.com/2006/mxml '.
Width = "100%" height = "100%" layout = "absolute" >

private function updateText (): void {}
var totalSelected:uint = 0;
var cone: String = "";
var size: String = "";
If (coneType.selectedValue! = null) {}
Cone = coneType.selection.label;
totalSelected ++;
}
If (coneSize.selectedValue! = null) {}
size = coneSize.selection.label;
totalSelected ++;
}
iceConeTextBox.text = '\r', cone + size;
If (totalSelected == 2) {}
next_btn.enabled = true; to go to the next view in the viewstack
}
}
]]>

horizontalCenter = red "0.5" = "0.5" layout = "absolute" >

text = "Select your cone." y = "10" height = "44" fontSize = "25" horizontalCenter = "0" / >



label = "Sugar Cone" width = "150" x = "2" y = "62" / >

label = "Waffle Cone' width = '150' x '2' = y ="88"/ >

label = 'Wafer cône' width = '150' x '2' = y = "114" / >

label = "Chocolate dipped Wafer cone" width = "201" x = "2" y = "140" / >






Vygo

Tags: Flex

Similar Questions

  • Script where the zero is not displayed when no value is selected, indicates when a value of zero is selected

    How can I write a calculation script where the zero is not displayed when no value is selected, but when a value field null is selected as part of the zero calculation will show?

    Option 1 has a score of 0 value

    Option 2 has a value of 5 score

    When someone chooses option 1, I want the value 0 to appear at the cell of notation.

    Here is the script that I have so far:

    If (event.value == 0 | event.value == ") event.value =";

    OK, the custom calculation script could be:

    Get the value of the checkbox field

    var v = getField("checkbox1").value;

    Set this field value

    V = Event.Value = "Off"? "" : v;

    Replace "checkbox1" with the actual name of the checkbox.

  • How to get the caption of the selected option button?

    I am building a dynamic form using javascript in Adobe livecycle designer, X.  I have a group of radio buttons, optGroup, with several individual radio buttons. Later in the form, I want to refer to selection that made the user with the caption of the button selected in the option group.  I tried to use resolveNode (optGroup.selectedMember () .name + ".") caption.value. #text') .value, but this only works if the first button in the group is selected.  Otherwise, selectedMember seems to be null and the code does not work.  Any ideas?

    Thanks for your help!

    BigO

    Hello

    You can do this. I just thought it would be easier to clear values "says.

    On the basis that you have a unique name for the exclusion of radio button group, so this should work:

    this.rawValue = RadioButtonList.selectedMember().caption.value.text.value;
    

    Hope that helps,

    Niall

  • HW 2 get the value to select only one option selected by the user in the bean support

    IAM using the select only one option button that is filled during execution.

    I want to get the value selected by the user of a choice selection in the bean to support for other operations of... .IAM using this method, but I got a null pointer exception.

    Public Sub test (ValueChangeEvent tokenChange)
    {
    Integer tokenIndex = (Integer) tokenChange.getNewValue ();
    DCIteratorBinding tokenListIter is getBindings1 () .findIteratorBinding ("TokenIDVOIterator");. in this line null pointer exception
    Token of the line = tokenListIter.getRowAtRangeIndex (tokenIndex.intValue ());
    currenttoken = (Number) token.getAttribute ("TokenId");
    System.out.println ("token ID selected:" + currenttoken);

    }

    I want to know if there is any method to get the value of the value selected by the user to select a choice...

    pls help? //

    3 words:

    "research on the forum.

    asked and answered countless times.

  • The display of a value set by a button

    I created a button that, based on dynamic Action, performs a PL/SQL and sets the value of an element of the page P3_XXX on a certain string.

    How can I get the new value on my page, immediately after pressing the botton? I guess that some sort of refresh is required. But how? I mean, after you push the botton the pl/sql is done, but I do not see the new string comparing in my page P3_XXX page element.

    Thanks in advance!

    Hello

    If I understand your condition.

    You have the button and pushing, you must run a pl/sql code and then set a page through dynamic action element value.

    Create a dynamic action on button click ==> SELECT Execute pl/sql code and have your code and in the same action below to search page elements to return the section specify the element of your page.

  • Switch poplist display of the list item selected for its value of list item

    Is it possible to change the display in a poplist of the list item to its corresponding list item value?

    For example, I have a list item is filled with a group of records. Name of the country (e.g., Canada) is the list item, and the country code (e.g. CA) is the value of a list item.

    I want users to be able to see the names of countries, when the list is expanded. However, once users choose and click on a country, the country code must be included in the display.

    I suppose that if it is possible to do at all, he would be using a trigger a times-news-point-instance, but I do not know where to go to from there. Please let me know if you need clarification or more information from me. I'd appreciate any help you can give me.

    With the help of Oracle Developer Suite 10 G
    Version of Forms - 9.0.4.3.0

    Hello
    Welcome to the forum,

    Just an idea. Why you do not keep the country with the description at the time code. I mean, it's like you say you query group will be like this...

    SELECT code, description
    FROM table_name;
    

    So, I mean just change this query to concatenate the code with description. for ex.

    SELECT code, code||' - '||description as description
    FROM table_name;
    

    It will show you the code and the name in the list. So, it will not trigger etc.

    -Clément

  • The display of the values of Expression Language

    Hello:

    Sorry, but it's a matter of rookie...

    I'm trying to understand a problem unrelated to this issue. I need determine the language of the right expression for the source of an af:image value. When I go to the expression builder
    There are so many entries, I'm unable to find the right value to select. How can I learn what values are in there?

    So the question is, how do I watch these many values in Builder Express when running? Almost as if I want to watch the links through the debugger... How can I do this?

    Thank you

    Exactly as you say, you use the debugger. Set a breakpoint somewhere in a bean method, to display the debug window and select the data tab EL. There, you see an entry in the field, where you can enter any expression EL you like and you press on assess. You must enter the expression full like #{bindings.name.inputValue}.

    Timo

  • Get the value currently selected in the drop-down list

    Hello Zac,

    I have a question to get the current value in a drop in export UI. Currently I have a custom fall that I fill with UTF16 strings down. I set up as follows:

    Field order
    (1) exNewParamInfo ParamName;
    (2) exParamValues ParamValues;
    (3) ParamName.structVersion = 1;
    (4) safeStrCpy(ParamName.identifier, 256, ADBEVideoFieldType);     FieldType is considered an example of existing code
    (5) ParamName.paramType = exParamType_int;
    (6) ParamName.flags = exParamFlag_none;
    (7) ParamValues.structVersion = 1;
    (8) ParamValues.disabled = kPrFalse;
    (9) ParamValues.hidden = kPrFalse;
    (10) fieldOrderParam.paramValues = ParamValues;

    exportParamSuite-> AddParam (exporterPluginID,
    mgroupIndex,
    ADBEBasicVideoGroup,
    and ParamName);

    I can then load my dynamically generated strings in the fall down (in ProstProcessParams) and they are displayed correctly.

    Then, I call upon export

    exportParamSuite-> GetParamValue (exID, 0, ADBEBasicVideoGroup, & ParamValueToBeReturned);

    to get the current value.

    However, I'm not UTF16 string. My guess is that's because the value of this field is UTF16 and not int (that I put in place on the line 5). I tried to use exParamType_string, but it gives me an editable text field.

    Then, how we configure a drop custom down correctly to obtain the current values of the string of her?

    Thank you

    Petro


    Hey Petro,

    During exSelPostProcessParams, in your calls to the AddConstrainedValuePair(), you have defined a type of integer values to strings mapping.  You can use the same mapping to determine which channel has been selected in the drop-down menu of the integer value passed from GetParamValue().  Integer values can actually be more accurate, because due to the location, the strings may vary.

    Looking at the code, you can make limited value of pairs with parameters of type exParamType_string.

    Kind regards

    Zac

  • not displayed in the Control Panel folder options

    I want to display hidden files, but the "folder options" icon is not displayed in the Panel, is not available under 'Tools' in the folder.  All the answers as to why?

    This can be caused by malicious software.  You should download, install, update and scan with both free scanners:

    MalwareBytes Anti-Malware
    SUPERAntiSpyware

    You may be able to repair the damage by performing the part of the file, line 129, left reg here: http://www.kellys-korner-xp.com/xp_tweaks.htm read the instructions at the top of the page.

  • List of input values (multi-column) must return the output text once the value is selected

    Hello

    I am trying to achieve conditional:

    I create a searchVO(select '' empNumber from dual) - to accept the input value (name empNumber).

    I create empLovVO (select enum,ename, addr, city of emp). lov attached to empNumber (searchVO).

    In the list of values when I select a value (emp 1, a, xyz, abc), it must return the default aby associated with emp values 1 to my output texts

    the name of the EMP one.

    addr xyz

    City abc

    It should also automatically change the values if I select another empNumber.

    Please let me know how to achieve this.


    Thank you

    Firstly, for the searchVO, add a three other attributes, name, address, and City, the type of string:

    and make sure they are still editable:

    Then, you're mapped LOV enum attribute EmpNumber, right?

    Do similar for the newly created attributes, in the list of values dialog box validation:

    Ename--> name,

    --> addr addr,

    City--> City

    Then, just to show these attributes in the form of output text, and you'll get what you want...

  • corrupted image displayed when the value horizontal elasticity 'contract '.

    Hello.

    Using forms and reports 10.1.2.3.0

    I got a report where I'm trying to show the images centered horizontally in their surroundings.

    To do this, I created an image element within the framework (a rehearsal setting, because the images are extracted from the DB), manually it centered within the frame, attached with an anchor to his surroundings and define its horizontal elasticity of 'contract' (vertical elasticity is set to "fixed"). It is actually the preferred method to do this and some threads in this forum recommend it.

    What I got in the PDF file was an image corrupted in some circumstances.

    To refine what I've created three different images (width * height)

    1. 1000 * 666

    2. 1000 * 750

    3. 1000 * 800

    load in the DB and tried to run the PDF file. You can see the result in the following screenshot:

    garbage_example.jpg

    When I put the horizontal elasticity "fixed", the image is not damaged (this is not a solution because the image is left aligned then).

    Setting the OUTPUTIMAGEFORMAT to something different than default (JPEG) has not changed anything.

    Interestingly enough the Foxit PDF Reader it shows correctly, while AdobeReader X and XI and Inkscape even show the image corrupted (not only on my PC).

    We tried with multiple images/photos, and the only ones to be displayed correctly seem to be images with a 4:3 aspect or higher report. I was not able to determine exactly to what extent this behaviour.

    Anyone have any idea what may have caused this?

    Thanks in advance

    Markus

    Found a solution that is rather surprising for me: the value of the vertical elasticity of the image of "contract".

  • How to dynamically set the filter IR APEX of the value of a radio button column?

    Hello

    I built a simple APEX 4.2 IR report that includes column, namely "Source_Data" and a separate user to input radio button namly "P33_SOURCE_DATA" with two possible values in 'X' or 'Y '.

    I would like the report filter source_data = 'X' or source_data = "Y" is applied, after each time the user clicks on the radio button P33_SOURCE_DATA. "

    So my question is, how to set the value of the IR filter using the value of P33_SOURCE_DATA to the dynamic action and javascript?

    Thanks in advance.

    Concerning

    Susanna

    In this case, you can pull an onchange dynamic action on the radio, or at the click of a button.

    This dynamic action update your IR region

    And your IR region would have an appropriate where clause, with "Page to go" set on your radio.

  • Better display of the values of shuttle LOV in a report

    Hello
    I created a LOV shuttle service in a form, then a report indicating (among others) the values chosen this LOV shuttle.
    If the user choose multiple values I don't like how they appear in the report (they must go in a single cell) because
    the user sees a list of items separated by ': '.
    Is there a simple way to show them for example as a list of points of ball or another form readable nicer human?

    Thank you
    Antonella

    Hello Antonella,.

    use

    select case when your_column_name is not null then '
    • '||replace(your_column_name,':','
    • ')|| '
    ' end as shuttle_column from your_table

    to avoid the ball when you have a NULL value.

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Get the value of select Combobox data

    Hi all

    I have a major issue while trying to get the value of the items selected through the change event in a combobox control.  Here is my code... I really need help ASAP... Thanks in advance

    public var test:ArrayCollection = new ArrayCollection([
                { Id:"one", Amount:2000 },
                { Id:"two", Amount:1000 },
                { Id:"three", Amount:200 } ]);

    protected function regionCB_changeHandler(event:ListEvent):void
                   {
                      Alert.show(//tried so many things here to acces the items amount field.. nothing is working
                   }
    <s:ComboBox change="regionCB_changeHandler(event)" dataProvider="{test}" labelField="Id" id="regionCB" visible="false" />

    Have you tried selectedItem.Amount?

  • Dynamic action to set the value to select the text box list

    Hello

    I want the value in the list box select text box i.e list selection with 5 static values and on the user's selection, this value must be added in a box.

    I am using dynamic measurements. I tried with dynamic action and created the change list box select evnent but now how to set the value of the selection list to
    text box that I don't know.

    Help, please.

    Thanks in advance

    Hello

    I changed the dynamic on this page action to make it work now. I changed the "value Type" action 'Set value' 'Expression JavaScript' and "JavaScript Expression" do the following:

    $v(this.triggeringElement)
    

    This example gets the value of the page element 'DESPROGES', bypassing the server for nothing, as you did before.

    I hope this helps. Let us know if you have any other questions.

    Kind regards
    Anthony

Maybe you are looking for