Create combo box from another

I currently have a combo box in my movie. The selections are 1, 2, 3,  and 4. I would like to generate another X combo boxes of the same structure based on that number. I.e. Someone choose 2 in ComboBoxA. So 2 of ComboxB's are generated below that.
Can someone help with the syntax?
Thanks,
Brandon

import mx.controls.ComboBox;
var tl:MovieClip = this;
var lo:Object = new Object();
lo.close = function(eobj:Object) {
    for (var i = 0; i<eobj.target.selectedItem.label; i++) {
        var cba:ComboBox = tl.createClassObject(mx.controls.ComboBox,"cb_"+i,i);
        cba._x = cb._x;
        cba._y = cb._y+(i+1)*cba._height;
        cba.dataProvider = [whatever];
cb.addEventListener("close",lo);

Similar Messages

  • Load Combo Box from MS Access

    Me and a co-worker are trying to learn the Designer for a proof of concept (yes, that means newbies). We are currently struggling with loading a dropdown combo box from a table in an MS Access database. We have the connection set up and the field assigned to the control. It populates with the first record from the table, but clicking on the dropdown button does nothing. Is it only populating with one record? Is there a property on the control that is not allowing the list to expand?
    I saw another thread in this forum on this topic and the last entry in the thread included the phrase "I GAVE UP" - not very encouraging. This functionality is a must-have and seems pretty basic.
    Any advice?

    I have been trying this using a Data Drop-down List and I cannot get it work. I have a data connection set up and instead of selecting Table from the choice I used an SQL query to select only one column in the table. There are three lines in the script some of which are confusing to me.<br /><br />var sDataConnectionName = "DataConnection"; //I got this one. it was easy<br />var sColHiddenValue = "<value>";<br />var sColDisplayText = "<value>";<br /><br />The last two I'm really not sure what to put there. I tried putting the name of the table column in place of each of "<value>". but it doesn't work.<br /><br />What else do I need to do to get it to work?

  • In a tubular form: how do you make one combo box reflect another

    For example:
    if there are two fields, one with combo box with bread, meat, juice and I select juice, I and the contents of another combo box in another field to say Orange, grape, lemon.
    field one field two
    bread orange
    meat grape
    juice lemon
    in field one there is just those 3 but in the table representing two there are many such as types of bread and meat and juice, all three.
    Hope you can understand this example. Thanks for your help.

    Your description is not very clear but looks like you want cascading select lists, where 2nd select list is populated based on value selected in the first select list.
    AJAX is a good solution if you are comfortable with it. Since I'm not very familiar with that, I end up using pl/sql.
    Someone had asked similar question few days back, and i had provided a detailed answer. You can check it out at:
    Re: select menu depends from selection
    Hope this helps.

  • Create a table from another table

    I have Windows XP with 10g 10.2.0.1.0
    I need to create a table from another table to re-arrange the table column order and add the following statement at the end of creation.
    PCTFREE 10 PCTUSED 0 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE
    INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT
    TABLESPACE "TAB_DATA"
    Below iis my SQL statement, but it doesn't work. Please help.
    create table my_table as (select t1, t5, t2, t3, t4 from orig_table
    PCTFREE 10 PCTUSED 0 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE
    INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT
    TABLESPACE "TAB_DATA"
    *);*

    Kee Kee wrote:
    I have Windows XP with 10g 10.2.0.1.0
    I need to create a table from another table to re-arrange the table column order Why? Column order has no meaning. The individual SELECT statement specifies the column order that particular statement wants, which may be different from the needs of some other SELECT statement.
    and add the following statement at the end of creation.
    PCTFREE 10 PCTUSED 0 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE
    INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT
    TABLESPACE "TAB_DATA"
    Below iis my SQL statement, but it doesn't work. Please help.
    create table my_table as (select t1, t5, t2, t3, t4 from orig_table
    PCTFREE 10 PCTUSED 0 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE
    INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT
    TABLESPACE "TAB_DATA"

  • Can I update a blog created in iWeb from another computer?

    Hello Forum,
    While I am away from my office base, I would like to update my blog (created using iWeb) from another computer. I have a dotmac account.
    I thought doing this should pose no problems, but I simply can't figure it out.....
    Hope someone can help me out on this one.
    Many thanks in advance,
    Greg

    When you go to .mac and log in, you should see stories there regarding the features of .mac. One of the recent ones (should still be on the front page) is Tech note: Using iWeb on more than one Mac
    Underneath this header, you'll find
    "All you need to do is quit iWeb (if it’s open), locate the domain.sites file (Users/<username>/Library/Application Support/iWeb/domain.sites), and move it to wherever you’re going to use it. Then double-click the file in its new location. iWeb will launch, and you’re done. From then on, iWeb will automatically save your work in the new location, and you’ll be able to publish your site from any Mac that has access to it.
    So, if your domain.sites is small enough to fit on your iDisk, you could keep a copy there and use it from any computer that has iWeb 1.1 or later installed to update your blog.

  • Creating Combo Box or Pop list

    I created list of values.But i never used combo box and poplist.I created a item and in itemtype i changed to listitems and functionality nodes changed to combo box.How to generate value in the list through programatically.Can any one help me .
    Thanks

    You can create both static values and also
    values based on record group .
    I think you know how to create static values.
    (for static just give the values in "Element List" property of list item)
    Using Record group. see this example.
    Declare
    Rg_Id RecordGroup;
    Rg_Name varchar2(20) := 'Type';
    List_Id Item;
    Temp Number;
    Rowcount Number;
    Begin
    Rg_Id := Find_Group('Type');
    If Not Id_Null(Rg_Id) Then
    Delete_Group(Rg_Id);
    End If;
    Rg_Id := Create_Group_From_Query('Type','select empno,'
    &#0124; &#0124;'empno'
    &#0124; &#0124;' from emp ');
    List_Id := Find_Item('CTRL_BLOCK.IT_LIST');
    Temp := populate_Group(Rg_Id);
    Populate_List(List_Id,Rg_Id);
    End;
    In the selection you must give two columns one for label and another one for value.
    Try this and let me know if you have any problem.
    Regards,
    viji.
    null

  • Populate Combo box  from recordgroup

    I made a procedure to Get the values for a combo box these procedure send the values to another procedure that create a recordgroup and populate the recordgroup and the list. I'm not having errors at compilation time but the list is empty and I have values entered. What would it be.

    Eunice,
    did you call populate_list('<user_list>',<recordgroup>) ?
    Please provide code snippets.
    Frank

  • Not able to create Service Contract from another svc.contract as followup

    Hi,
    I am trying to create a service contract from another service contract as folllow up document as a part of contract renewal process. However, when I click on follow up button, in the popup, not able to the option Service Contract. Hence I am unable to create.
    Could you please let me know, what needs to be done such that Service Contract also will be shown in the popup.
    Thanks for all the replies.
    Thanks,
    Sandeep

    Hello Sandeep,
    It is not possible to create a follow up service contract (BUS2000112) for another service contract (BUS2000112).
    I do not know your business scenario, you can debug method GET_FOLLOWUP_CUST of class CL_CRM_UIU_BT_GET_PROCTYPES and see where the follow-up transaction types are filtered out.
    I met similar case before, the solution provided at that time was
    - modify FM CRM_UBB_FILTER_SUC_PROC_TYPE in line 49. You can comment out the following line:
    delete ct_suc_proc_type where process_type = ls_suc_proc_type-process_type.
    Hope this could be helpful.
    Best regards,
    Maggie

  • How to create an image from another one with midp1.0 as in midp 2.0

    hi:
    we can create an image from part of another one in midp2.0 width the following method
    createImage(Image image, int x,int y,int width,int height,int transform)
    but have to work with midp1.0, then how?
    regards

    but i have six icons in one picture, (tow row ,three column, each size 14*14)
    it's ok to get the top-left icon with the following code
    Image image = Image.createImage("/myicon.png");
    Image tmp = Image.createImage(14, 14);
    Graphics g = tmp.getGraphics();
    g.drawImage(image, 0, 0, Graphics.TOP|Graphics.LEFT);
    but how to get other icon?
    regards

  • Using execute immediate creating a table from another

    hi friend i wanted to create a table from a select statement in a pl sql procedure. i am using execute immediate but getting problems with it pls can anyone help me.
    here is the query i am using
    EXECUTE IMMEDIATE 'CREATE TABLE table_name AS  (SELECT * FROM  a_view   WHERE column_name LIKE '%some_string%');
    i need to know if this can be done and if yes how. pls help me its bit urgent too. the schema name is same and the privileges are available to create tables too.

    Your syntax is wrong.
    If you would use a syntax higlighted editor, it would show.
    Yout try to execute a string where another string is embedded. Please use two times single quote or use the 'q' function:
    This one is correct:
    EXECUTE IMMEDIATE 'CREATE TABLE table_name AS (SELECT * FROM  a_view WHERE column_name LIKE ''%some_string%'')';
    or this one:
    EXECUTE IMMEDIATE q'|CREATE TABLE table_name AS (SELECT * FROM  a_view WHERE column_name LIKE '%some_string%')|';
    good luck

  • Create a transport from another

    how to create a transport request no from another one

    Hi,
      I am not sure how to create a transport request no from another one.. But follow the steps to create a new Transport..
      GO to SE09.
    Press create button (F7)..
    Choose the work bench request if you are going to modify/create any programs.
    Choose the customizing request if you are going to modify/create any table entries..
    Press enter..
    Give the description..
    Press enter..
    Thanks,
    Naren
    Thanks,
    Naren

  • How to display data in combo box from xml file.

    Hi All,
            I have the data in xml file.
      <jukebox>
        <song>
            <title>When the Levee Breaks</title>
            <artist>Kansas Joe and Memphis Minnie</artist>
            <url>delhi601(www.songs.pk).mp3</url>
        </song>
        <song>
            <title>Better Leave that Stuff Alone</title>
            <artist>Will Shade</artist>
            <url>delhi601(www.songs.pk).mp3</url>
        </song>
        <song>
            <title>Walk Right In</title>
            <artist>Cannon's Jug Stompers</artist>
            <url>delhi601(www.songs.pk).mp3</url>
        </song>
    </jukebox>
    and i want to display the only url in combo box list. for that how can load this xml file and how can i show.
    Can any one help me.
    thanks
    Raghu.

    Raghuvasa,
    Get the XML file data into an XML variable in your code, say var jukebox: xml. Then do
    combo.dataProvider = jukebox.song.url
    or as a shortcut
    combo.dataProvider = jukebox.descendants("url")
    The latter will pull out elements with tag name url at any depth in the xml structure, so sometimes you have to be careful, but in your case there should be no problem.
    Richard

  • How can i create proxy service from another proxy on different domain

    i have a demo webservice. it has many operations on proxy service's message flow. How can i create proxy service from demo's wsdl on different domain
    Edited by: fresh man on Jul 1, 2012 11:17 PM

    You can either export the WSDL in a sbconfig.jar and then import this sbconfig.jar in the new domain. Then you can create a new Proxy in new domain based on the WSDL you imported.
    Alternatively, you can open the WSDL in the old domain, copy the text content of WSDL, then open new domain sbconsole and create a new WSDL type resource and paste the content you copied from old domain WSDL here. Then you can create a new Proxy Service based on this WSDL resource you created.
    Although, may I ask why do you need to create this new Proxy Service on a different domain? If you want to create a service similar to existing Proxy Service on different domain, then you can export the existing proxy service along with any dependencies to a sbconfig.jar and them import them in any other domain.
    If you want your new Proxy Service to invoke the existing Proxy on different domain, then you need to create a Business Service in the new domain (calling domain) which can invoke your existing Proxy service in other domain.

  • Create User Object from another User

    I have a user in Personal Oracle , and i want create the same tables and views for this user to another user

    Suppose u are sitting in your account. you want to copy the DEPT Table which owned by Scott.
    U can write this
    Create table dept as
    select * from scott.dept;
    But keep in mind , It can't copy the constraints like Primary key.....
    You again enforce the constraints manually.
    null

  • Creating Recovery Disk from another Windows

    Hello everyone, my laptop is HP Pavilion dv6 7040-tx and Product NumberB8N04PA#ACJ. It came with Windows 7 Home Premium which is also, in the recovery partition. I removed Windows 7 Home Premium and installed Windows 7 Ultimate. Now I want to create recovery disks for the Windows 7 Home Premium from the Recovery Partition. But I don't have HP Backup and Recovery Manager installed in Windows 7 Ultimate. Can any one tell me how to do this without doing recovery or removing my current Windows 7 Ultimate installation??

    You must burn the Recovery Disks before installing another OS. You can call HP to order a set.Choose your country here>> Contact HP
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

Maybe you are looking for

  • Unable to install Oracle 9.0.1 on Linux RedHat

    Hi, I am unable to install Oracle 9.0.1 on Linux RedHat, tried many times. While installing i get following errors- "Error in invoking target install of makefile /usr/oracle/9.0.1/plsql/lib/ins-plsql.mk" "error in invoking target ioracle of makefile

  • My iPad air touchscreen is non responsive. What do I do?

    My iPad air touchscreen is not responsive. I tried rebooting with no success.

  • Can I use Skype for my business?

    Hi, I have a SKype number and been using it for my business for a year already. Today I've received an email from Skype saying that I can't use Skype for commercial purpose. I'm confused because I've seen so many people saying that they use Skype for

  • BPEL PM Stand alone designer for bpelz_0.0.96

    I wish to operate the BPEL PM designer on a different machine than server. I found an example for the same at www.oracle.com/technology/products/ ias/bpel/htdocs/orabpel_technotes.tn005.html but that was for an older version bpelz_0.0.8. I want the s

  • Built in iSight Camera dark

    My built in iSight camera stays dark even though every light in the room is on.Is there anything I can do to fix this?