Combo box component reset

once an item is selected. the component is still set on that
option so if I choose that option again it doesn't do anything.
How do I reset it?

> You would think there was something easy to allow for a
label being
> different
> from the variable I'm sending. All I want to do is make
the drop down menu
> say
> "Afghanistan" while I am sending the form data "AF" to
the .php script
> that
> will save the data to a mySQl database. I can easily
send the name of the
> country (Afghanistan) as thats the name of
my_cb.selectedItem. I'm just
> not
> sure why it is so difficult to send the value (AF)
instead. I'm just not
> getting it.
Did you put the code I supplied in the event handler?
var listenerObject:Object = new Object();
listenerObject.change = function(evtObj:Object) {
// code placed here executes
// when the event is triggered
trace("Selected Item Data: "+my_cb.selectedItem.data); //Put
code here
Dan Smith > adobe community expert
http://www.dsmith.tv

Similar Messages

  • Bugging Array by using COMBO BOX component !!!

    Hi,
    Today, I create a flash with Array. I did use prototype
    method to add one more fantastic function to sort the array
    randomly. But when I include one combo box component with static
    value in to the parent file, I have a big trouble. The flash file
    stop running & give the alert of endless looping. Ah ha, what a
    funny thing is happened out there?
    If you want to produce this bug, please follow me.
    Step1: Create 1 flash movie & name it "test.fla". Copy
    the code below into the first frame.
    Array.prototype.randomSort = function():Array {
    var arr1:Array = this;
    var arr2:Array = new Array();
    var rand:Number;
    while (arr1.length>0) {
    trace(arr1.length);
    rand = Math.floor(Math.random()*arr1.length);
    if (rand == 1 && arr1.length == 1) {
    rand = 0;
    arr2.push(arr1[rand]);
    arr1.splice(rand, 1);
    return arr2;
    Step2: Export the movie by Ctrl+Enter -> we will have
    test.swf huh?
    Step3: Create another flash & name it "main.fla".
    Step4: In main.fla, create an empty movieclip symbol &
    name it loader_mc. Drag it to the stage & five the instance
    name "XXXloader_mc" for example.
    Step5: In main.fla, Drag one combo box component to the stage
    & add some data to the combo
    Step6: In the first frame of main.fla, load the test movie
    into XXXloader_mc. Try this
    XXXloader_mc.loadMovie("test.swf");
    Step7: Export main.fla. Ctrl+Enter again.
    Congratulation, you are in the problem.

    both together caused the problem and i don't see a problem
    with your randomSort() method although destroying the original
    array seems like a bad idea and is one of the 2 reasons for your
    problem:
    one, the combobox is executing your method (and every other
    array prototype method that exists) every time it's clicked. that
    looks like a bug in the combobox component.
    and two, your prototype is causing a problem because it
    destroys the arrays that call your method.

  • Flash combo box component

    I have created an application that requires the flash combo
    box component but i dont know how to code it. Any help?
    I want each label to goto a certain frame when clicked.
    Jak.
    Cheers if you can help

    Drag a combo box onto the stage.
    Give it an instance name (myCombo)
    Click properties and add the labels
    Add the frame numbers you want to jump to as data
    Add to frame actions

  • To filter data in two dates using combo box component

    Hi,
    I have a requirement like, i need to filter data in chart between two dates from two combo box.. From combo_box and To combo_box.
    I am using one QaaWS to populate LOV's into Combo box's and another QaaWS for chart data. Universe is the same one on SAP  BI query.
    LOV's are populating into both combo's and chart as well, i used a query refresh button after choosing two dates and press button.
    Data is not reflecting as per the choice of dates.
    If any one have such scenario, request you to share the same....
    Thanks in advance...
    Raj..

    Problem is with ranges, not with dates, my data is working fine with CALDAY (in BI Query)....
    My query variable is on FiscalPeriod month, like "FEB 2011"  to "OCT 2011" and is optional, but it is fails in QaaWS to execute when i try to input any months.
    If we give default values in BI query format is like K4/010.2011 for october month. QaaWS doesnt fail and executes, but if i change any value in QaaWS it is taking as "OCT 2011"
    And in Xcelsius it is not recognizing eaither of the formats like, K4/010.2011 or "OCT 2011"
    the format is not matching with xcelsius.

  • Help with Combo Box Component

    I am creating an application with comboboxes and using action
    script to load them. I can figure out how to change text color of
    the choices in the combo box, but can anyone tell if it is possible
    to make the text choices appear as different colors. For instance
    if I wanted all of the choices to be black text, but for the third
    choice down to appear red.
    Thanks for the help.

    You can set the backgroubd color if that helps.
    To set the second item to have a red background, attach this
    to the combobox:
    on(open){
    dropdown.setPropertiesAt(1,{backgroundColor:0xFF0000})
    }

  • Combo Box Component

    Hi all,
    I am trying to figure out how to put a comboBox in my Flash
    form and normally I just use something like:
    countryList.dataProvider = ["Country1", "Country2",
    "Country3", "Country4"];
    var listenerObject:Object = new Object();
    listenerObject.change = function(evtObj:Object) {
    // code placed here executes
    // when the event is triggered
    trace("Selected Item: "+countryList.selectedItem);
    countryList.addEventListener("change",listenerObject);
    This will give me the selected item's value which I can chuck
    in a variable and send off to my form...
    Well that is usually good enough but now I want to have a
    Label AND a Value so that when the user does the drop down they see
    the Label but I am actually sending the Value. I am messing around
    with the Flash Help code and I kind of see how this is working yet
    I can not get at the data I need which is the Value not the Label.
    my_cb.dataProvider = [{name:"Gary", gender:"male"},
    {name:"Susan", gender:"female"}];
    my_cb.labelField = "name";
    var listenerObject:Object = new Object();
    listenerObject.change = function(evtObj:Object) {
    // code placed here executes
    // when the event is triggered
    trace("Selected Item: "+my_cb.selectedItem);
    my_cb.addEventListener("change",listenerObject);
    Any help on this would be greatly appreciated.

    > You would think there was something easy to allow for a
    label being
    > different
    > from the variable I'm sending. All I want to do is make
    the drop down menu
    > say
    > "Afghanistan" while I am sending the form data "AF" to
    the .php script
    > that
    > will save the data to a mySQl database. I can easily
    send the name of the
    > country (Afghanistan) as thats the name of
    my_cb.selectedItem. I'm just
    > not
    > sure why it is so difficult to send the value (AF)
    instead. I'm just not
    > getting it.
    Did you put the code I supplied in the event handler?
    var listenerObject:Object = new Object();
    listenerObject.change = function(evtObj:Object) {
    // code placed here executes
    // when the event is triggered
    trace("Selected Item Data: "+my_cb.selectedItem.data); //Put
    code here
    Dan Smith > adobe community expert
    http://www.dsmith.tv

  • Increasing row capacity of any excelcius component (Filter ,Combo Box)

    Hi
    Even though I have increased the capacity of Dashboard rows capacity from 512 to 2000.
    But my filter component or combo box component source data is mapped to more than 512 rows in the spreadsheet,while previewing it still shows data of 512 rows.
    Is there any way to increase component capability?
    I know the performance will be bad but still atleast it should capture the whole source data records and

    It could be two reasons
      First Reason: it could be due to the limit of no of rows in excel .Please check the preferences option in Xcelsius . By default it will be set as 512 rows of data increase that to required rows.
       Second Reason: if you are using live office in Xcelsius.By default it will fetch 512 rows of data.To increase limit we have to do some server side settings.Please refer to the following SAP Note which gives the solution to this problem.
      SAP Note:1307538
      or go through the following steps:
    These changes have to be made on the server side
    1.     Create a backup of dsws-liveoffice-provider.jar from serveru2019s InstallDrive:\program files\business objects\Tomcat\webapps\dswsbobje\WEB-INF\lib for future reference.
    2.     Copy dsws-liveoffice-provider.jar from serveru2019s InstallDrive:\program files\business objects\Tomcat\webapps\dswsbobje\WEB-INF\lib to your computer.
    3.     Rename the file just copied to dsws-liveoffice-provider.jar.zip (add.zip to end of filename)
    4.     Create folder in root of InstallDrive: named META-INF (case sensitive), in InstallDrive:\META-INF named BusinessObjects (case sensitive) and in InstallDrive:\META-INF\BusinessObjects named DSWS (case sensitive)
    5.     Using WinZip or WinRAR, unzip the file named liveoffice_config.properties from the dsws-liveoffice-ws.jar.zip file copied from the server. Place this file in InstallDrive:\META-INF\BusinessObjects\DSWS.
    6.     Edit the liveoffice_config.properties file and find the following section:
    #max number of range rows and range columns to return
    maxRowCount=512
    maxColumnCount=512
    7.     Edit the maxRowCount entry to the value youu2019d like to use
    8.     Save the file as liveoffice_config.properties (same filename)
    9.     Using winRAR or WinZip add the new liveoffice_config.properties file back to dsws-liveoffice-ws.jar.zip, making sure to use the "use absolute path" option.
    10.     Stop Apache Tomcat service on BO server
    11.     Copy dsws-liveoffice-ws.jar.zip to serveru2019s InstallDrive:\program files\business objects\Tomcat\webapps\dswsbobje\WEB-INF\lib.
    12.     Rename dsws-liveoffice-provider.jar in serveru2019s InstallDrive:\program files\business objects\Tomcat\webapps\dswsbobje\WEB-INF\lib directory to dsws-liveoffice-provider.jar.old.
    13.     Rename dsws-liveoffice-provider.jar.zip in serveru2019s c:\program files\business objects\Tomcat\webapps\dswsbobje\WEB-INF\lib directory to dsws-liveoffice-provider.jar
    14.      Empty the Tomcat cache by deleting the content of the folder <<C:\Program Files\Business Objects\Tomcat55\work>>
    15.     Restart Apache Tomcat on server
    This should increase the number of rows fetched by LiveOffice, however it may happen that changing the number of rows in the liveoffice_config.properties many times may result in liveoffice picking the data from the cache. Hence deleting the cache (C:\Program Files\Business Objects\Tomcat55\work) is necessary. Incase deleting the cache also doesn't work, we may have to redeploy the dswsbobje folder.
    To redeploy, follow the steps given below:
    1.     Go to C:\Program Files\Business Objects\Tomcat55\webapps and keep a backup of the dswsbobje folder.
    2.     Now delete this folder and restart Tomcat.
    3.     Restarting Tomcat will recreate the dswsbobje folder but will again default the number of rows fetched by LiveOffice to 512.
    4.     We will again have to follow the steps mentioned in the start to increase the number of rows from 512 to the desired value.
    5.     Restart Tomcat again for the changes to take place.
    Note: Increasing the number to large values might cause inconsistency in the behavior or instability.

  • Help with Radio Buttons & Combo Box for Flash Form that sends email

    I'm having a bit of a hard time with a Flash form that I'm working on.
    I've got the basic text fields working fine, but I'm not sure how to retrieve the values from the Radio Button and Menu List components.
    The PHP script pulls the values from the text fields with:
    $contact_name = $_POST['name'];
    $contact_email = $_POST['email'];
    $contact_subject = $_POST['subject'];
    but using
    $radioGroup = $_POST['radioGroup'];
    doesn't retrieve the selected radio button value.
    The radio buttons have a groupName of "radioGroup". The combo box component doesn't even show up in the HTML version, but does in the .swf.
    Can anyone point me in the correct direction to pull these values from these components and get them passed to the PHP form? The native .FLA and the php file are here for reference:
    http://dl.getdropbox.com/u/21984/flashform.zip
    My solution needs to be ActionScript 2.
    Thanks!

    again, you assign a variable.  the selected radiobutton's data and/or label isn't going to magically be sent to the php file.
    for example, if you have sendLV and receiveLV loadvars instances, you can use:
    sendLV.rbData=yourradiogroup.selection.data;
    sendLV.yourothervariables=yourothervariables;
    sendLV.sendAndLoad("yourphp.php",receiveLV,"POST");

  • Combo-box format static

    I tryed posting this question before with no success, so I
    thought I would
    re-explain.
    i am using a combo box component (using flash mx 2004 pro)
    and have been
    able to customize the fonts, colour, etc. of the list once
    the user clicks
    on the combo box, but can not figure out how to make the
    initial combox
    box text use the embedded font. Any suggestions?
    You can see the combo box in question at :
    63.134.206.80/FRAM-email.html
    thank you
    Tim

    Thanks, that worked great! one more quick question, is there
    a way to
    actionscript the component so that the comboc box doesn't
    have rounded
    corners when it's not selected?
    In article <f2955i$7q1$[email protected]>,
    "proPingu"
    <[email protected]> wrote:
    > _global.style.setStyle("color", 0x0000FF);
    > _global.style.setStyle("themeColor", 0xFFCC00);
    > _global.style.setStyle("fontSize",12);
    > _global.style.setStyle("fontFamily" , "Century Gothic");

  • Combo Box doesn't persist data insertion settings

    Hi,
    I'm simply trying to setup a combo box that places the selected label into a destination table cell. I've tried about every combination possible to simply add a data insertion series. Please note, I AM clicking the plus button to add it to the list shown to the left of the settings. Unfortunately, everytime I have the series added and I click away from the selected combo box it loses the settings I just provided.
    Has anybody else had these frustrating issues with the combo box component?
    Thank you.

    Greg,
    The combo box component can be a bit fiddly at times. It would help if you let me know which version of Xcelsius you are using.
    In any case if you are simply trying to insert the label to a destination you dont need to bother with the series at all. Try it in this order:
    1) Drag a combo box component
    2) In combo box properties pane and click on the range select button beside Labels
    3) Select the range in your excel sheet that has the labels and click OK
    4) Go back to the properties pane and choose Insertion Type: Label
    5) Click the range select button beside Destination and select a cell
    6) To test it drag a Text -> Label compoent in and point it to the destination cell you selected in step 5.
    7) Preview to see if all is in order
    Let me know how you get on.
    Cheers,
    Ryan

  • Locating on a location on GMap using combo box using SDK

    Hi All,
    I have a requirement to locate a city on google map using combo box. I want name of cities to appear in combo box and on selecting a city, map should be able to locate that city. This combo box will be visible on map itself. Combo box can be a component of either Xcelsius or Flex Builder.
    I think combo box dragged from Xcelsius component panel not able to communicate with google map which is embedded in form of swf through manage and packager.
    So, I tried with Flex Builder combo box component, but not able to done it. I am not getting the flow how to communicate between combo box and google map.
    I can locate a particular city giving a latitude and longitude through propertysheet.
    Please, if anyone could help me out asap.
    Thanks in advance!

    Hi Monammed,
    The said functionality should work. Please check your logic one more time. Also, try using some spreadsheet components mapped to the cells in question and understand how the data is flowing during run-time. This will help you test things. Delete spreadsheets when you are done with identifying the issue.
    Lets check the combo box mapping one more time : Map the source of the combo to the entire range; labels in the combo box ONLY to the country column in the source range(typically this may be the left most column in the range); selected item should be mapped to the cell that has the destination for the icon and the type for default selection may be dynamic. Well, if there is any hard-coding of values involved anywhere, do check the spellings and other trivial things.
    Do let me know if this was helpful and if you need any more help.
    Thanks,
    Prasanna

  • Combo box bug

    When I make a selection in my combo box component the opened
    selection box closes however the border of the selection box
    remains visible.
    How can I resolve this?

    After troubleshooting I noticed that this only happens when I
    have deselected the "export in first frame" checkbox in the
    combobox linkage identifier. (had to uncheck this box to set up my
    preloader)
    It would be fantastic if someone could tell me whats going on

  • Resetting a combo box

    I have added a combo box to the invoice form and populated the validvalues collection with a list of warehouses for the user to choose from.  This only appears in Add mode. 
    Everything works well except after adding an invoice, when all the SAP fields are reset to blanks or their default values,  the combo box still has the value that the user selected from the previous invoice.  I would like to have the box be empty (as it is when the form is first displayed).
    Does anyone know how to do this?  SBO 2005  - Thanks in advance!

    Hi John Chadwick 
    You can try the following
    try
           If oCombo.ValidValues.Count > 0 Then
                    oCombo.ValidValues.Add("", "")
                    oCombo.Select(oCombo.ValidValues.Count - 1, SAPbouiCOM.BoSearchKey.psk_Index)
                    For i = 0 To oCombo.ValidValues.Count - 1
                        oCombo.ValidValues.Remove(0, SAPbouiCOM.BoSearchKey.psk_Index)
                    Next i
                End If
    catch ex as exception
    'leave blank
    end try
    Hope this helps

  • Problem with combo boxes and the reset button in certain situations

    Hi Everyone,
    i have a problem to make the reset-button function properly in an what-if analysis dashboard.
    The dashboard uses two combo boxes that are not visible at the same time. In my application the second combo box only appears when a dedicated menu (label based menu button) has been activated.
    So i have combo box 1 when menu A is active an dand combo box 2 when menu 2 is active.
    After starting the dashboard initial values are fine. If you then directly change to menu 2 (seeing combo box 2 with
    the correct default value) and press the reset button, the dashboard returns to the initial view, showing
    the menu 1 with the correct default value. If you now switch back  to menu 2, you will see, that the combo box 2
    is empty (i.e. nothing selected).
    I also tracked the destination cells for the combo box value results as well as the source cells for the "selected item" and the
    destination cells for the "Insert Selected Item". All this values seem to be correct. Therefore i assume that
    this is an issue of event handling. Maybe the combo box 2 does not refresh its selected value because it is already
    invisible when the values are restored.
    This case can easily be simulated by placing two combo boxes and a push button (that changes the visibility of
    the combo boxes) and the reset button on the canvas.
    Maybe someone can help. I am able to provide a test xlf, if neccessary.
    Thanks,
    Oliver
    P.S. I am using Xcelsius SP4 (Version 5.4.0.0)

    Hello Debjit_Singha_86,
    thank you for your support. At the moment i have the following setting:
    label based menu
    - General: Insertion Type "value" from a list of ID's for the menu-items to a dedicated cell (current menu ID, say tab1!$A$1)
    - Behavior: Selected item (position) fixted to item 1
    hidden combo box
    - General: Insertion Type "position" to a dedicated cell with the current choice (say tab1!$B$1)
    - Behavior: Selected item (position) to the same cell (tab1!$B$1)
    Can you give me a hint on how to connect the two components according to your solution, so that the label based menu sets the default for the hidden combox box only in case, that the reset button is pressed?
    Thanks,
    Oliver

  • Combo Box in Portal Form resets after query

    Hello all,
    I have a portal form based on Stored Procedure. In it I have a Location combo box and Query button in addition to few text items. Users can select location from the drop down list and hit Query button to view the values in for the text items. The query part is working fine. But after query the Location resets to Null (as the LOV which feeds the combo box can have Null). We would like to keep the location they chose to query up even after the query results. Any help is appreciated.
    The Location item is in the parameters of the Stored Procedure. Initially it was IN, later I changed to IN OUT but there is no change in functionality.
    I also removed the ability to accept NULL for the LOV which feeds Location Combo box but now it is displaying the first location on the list after the query, which is even worse.
    Thanks in advance,
    Manohar

    You're catching Exceptions in empty catch() blocks. There might have been an exception, but you won't know if the catch block doesn't do anything.
    Try something like this:
    catch(SQLException e){
        System.err.println( "Problem with db query"+e.getMessage() );
        e.printStackTrace( System.err );
    }in order to see what's going wrong with your code.

Maybe you are looking for

  • Sign in to icloud error

    com.apple.appleaccounterror 403. i m getting this error please ive me a satisfactory answer so that i can sign in to icloud sucessfully

  • SQL: group by some data

    Hi expert I have a table with the column FIRST and LAST as per example > FIRST;LAST FIRST1;LAST1 FIRST2;LAST2 FIRST3;LAST3 FIRST4;LAST4 FIRST5;LAST5 FIRST6;LAST6 FIRST7;LAST7 FIRST8;LAST8 FIRST9;LAST9 FIRST10;LAST10 FIRST11;LAST11 FIRST12;LAST12 > I'

  • Missing tabs with page information on iWeb '08

    In my iWeb '08 version (in Dutch), all of a sudden I am missing the information of the pages, on the left side of te screen. Where you can see the different pages you have created and where you can change the order of the pages, the names etc. I trie

  • Just downloaded Premeire Pro, it will not open

    I just downloaded premeire pro to use the trial for 30 days. Every time I click on it to open, it starts to load and then says "Adobe Premeire Pro CC has stopped working" "A problem caused the program to stop working correctly. Windows will close the

  • How to redo the Google Maps demo?

    Hi there, I would like to setup a scenario similar to the US popuplation count with google maps as seen on the experiencesaphana page. I'm having no problems reading the data from my HANA tables, but how to I get the information from google maps abou