Boxes automatically generate DB?

Hey,.

I wonder if someone can point me in the right direction to automatically generate boxes in Flex. To give you an example of what I am trying to perform, consider that I have a table of database containing 100 records. Each of these records can be "checkbox" elements, so I would traditionally (e.g. in CF/PHP/etc) is simply loop through the values in the database and their output to the screen. Is there a way to do this in Flex? I would prefer not to have to throw every single box element (using the design view), unless absolutely necessary.

Right now I have my values of checkbox input in Flex via an ArrayCollection collection (and of course, a remote to my DB call).

If anyone can give me an example of what I should do with the ArrayCollection collection in order to accomplish the above articles (view all these elements as checkboxes on the page), it would be appreciated.

Thank you

Hello

The following code generates dynamically check boxes an arraycollection collection called myList with the 3 following fields

myList.description: string<==== use="" this="" for="" the="">

myList.checked: Boolean<==== use="" this="" for="" the="" checked="">

myList.cb: object<==== a="" pointer="" to="" the="">

protected function application1_creationCompleteHandler(event:FlexEvent):void

{

for (var i: int = 1; i<>

{

var cb:CheckBox = new CheckBox();

CB.x = 10;

CB.y = 25 * i + 10;

DBI Selected checked = myList [i];

DBI Label = myList [i] .description;

cbCanvas.addChild (cb);

.CB myList [i] = cb;

}

}

to access the values and update the table

private void getCheckBoxValues(): void

{

for (var i: int = 0; i<>

{

checked myList [i] = (myList [i] .cb as checkbox) .selected;

}

}

David

Tags: Flex

Similar Questions

  • Numbers: Automatically generate data in one worksheet to another worksheet.

    By the numbers, how can you (or is it possible to) automatically generate data in a spreadsheet that is manually entered in another sheet?  For example, I want to track customer information in sheets 2-10 and I want specific data of these sheets to automatically fill the sheet 1 box so I can create an overview of the specific data in any of my clients.  As a dashboard of sorts.

    The devil is in the details here. Can you give more details?

    In general, I would say it will be much easier to enter your data at a specific location and then consolidate that extracts the "views" or "reports" it for each customer, to enter data for each client separately.

    But both ways are possible.

    SG

  • How to automatically generate memories

    Upgrade to Mac OS Sierra, I decided the new updates of Photos of the evidence. But after you import a lot of images (which have been distributed in files) pictures has not created memories for these photos.

    So, how could I apply Photos to automatically generate memories for the library.

    Patience - give it time - it is an automatic process - you do not control it

    LN

  • Automatically generate color

    I need to create codes of different color (like colors of 10, 20 or even more depending on the number of parameters). That is to say for a number n of parameters I n different colors.
    Now in this example, I have only 4 colors (1,0,0, 0,1,0, 0,0,1 1.0.1) codes

    Is there a way to automatically generate the color codes? Or any other ideas?

    Thank you

    Hello

    I just tried something. check if it is suitable for you.

  • LabVIEW has an automatic generator of document API?

    Java's javadoc, which automatically generates the API documents.

    LabVIEW there equivalent or similar to that thing?

    The print files function can be called programmatically as well.  Pass a VI reference in an Invoke node and select printing > VI to function HTML to generate the HTML for the VI documentation.

  • automatically generate documentation of processes

    It is a silly question. I have 40 + process that I need to produce documents for AsciiDoc and I am basically manually copy and paste the names of variables, inputs, outputs and descriptions. All this is stored in the CPO process and I wonder if there is a way to access these variables on a per process basis?

    Our team relies heavily on CPO and we have dozens of processes today, hundreds of tomorrow. It would be super handy to have a way to automatically generate documentation based on existing information in the process. This will make it easier to update the documentation in the future because the processes are refined/changed/added.

    Example document that I am trying to achieve:

    > filename

    Description/Notes field >

    >

    >

    I love this idea! It does not already exist, but could be useful to raise a CDETS to the central team of CPO. I think that this could be done through content, but nothing exists for affecting still.

  • Jdev 12.2.1, automatically generate the password when creating a new user

    Hello

    Just by creating a new Admin user wants to automatically generate the password based on specific conditions and some mail users e-mail ID entered during creation.

    Please help me find the solution

    Nikhil

    Hi Timo,

    create new user with the username, userid, e-mail, etc. and the strength to change password to true by default. and the implimentation of security as capital letters, Lowwercase, number, at least one special character. There is no need of plu username. just something random.

  • In the form of sales_order, after booking, schedule_ship_date is automatically generated. On what basis he gets calculated?

    In the form of sales_order, after booking, schedule_ship_date is automatically generated. On what basis he gets calculated?

    And in my case, it's generated as 31 dec 2012 and I am unable to change it. How and where can I change it?

    Please tell me the navigation.

    Hello

    Please check the defaulting rules for SSD

    Thank you

    Ranga

  • By creating a form that has several text boxes to a single character on the same line, how can I get the cursor to go in the next text box automatically after inserting a character?

    By creating a form that has several text boxes to a single character on the same line, how can I get the cursor to go in the next text box automatically after inserting a character?

    Create a text field and use the option 'comb n characters.

  • I have a paid site (it wasn't a demo for a few months) but robots.txt has this "# this file is automatically generated that your site is being tested." To remove it and to allow search engine indexing, please move your site to a paid plan. »

    I have a paid site (it wasn't a demo for a few months) but robots.txt has this "# this file is automatically generated that your site is being tested." To remove it and to allow search engine indexing, please update your site to a paid plan. ». How can I fix it?

    You should be able to create and upload a new file robtos.txt. Create a txt file and call robots. Put the content in the robots.txt file:

    User-agent: *.

    Allow: /.

    Site map: http://www.your-domian-goes-here.com/sitemap.xml

    Once created, download the robots.txt file in the root of your site.

  • I'm doing an assessment and when I type my answer in the answer box automatically appears in the next box. When I erase it from that it removes the other. Sound like they are related?

    I'm doing an assessment and when I type my answer in the answer box automatically appears in the next box. When I erase it from that it removes the other. Sound like they are related?

    If the PDF file is created so that the boxes have identical names, then Yes: text will appear / disappear simultaneously in all mailboxes with the same name.

    You must ask the creator of the PDF file to fix it.

  • Disabling automatic generate captions in Simulation software

    How can I disable automatically generate captions in software simulation?

    Go in Edition > Preferences > recording > Mode and clear the checkbox add text captions.

    Anthony

  • Automatically generate a PDF file without clicking on the link and close the session

    Is there a way to change the configuration of the interview to automatically generate a PDF file instead of having to click on the link "click here for the pdf" at the end of an interview?

    Also after the interview and the generated PDF, can the session automatically close?

    Preferably, I would like to do this without JAVA.

    You can write a JavaScript code piece that going to click on the link of generation of document for you. With respect to the close of the interview, it is the same, use JavaScript to call the bond in the narrow section and then eventually to automatically submit the form of confirmation.

  • Incorrect hostname in automatically generated by WSDL

    I am moving some services to a new server-based CFC web.
    However, the auto-generated WSDL files (which work fine on the old server) are generated with an incorrect host name in the < location =... wsdlsoap:address > field. The host name that appears in the WSDL generated by the new server is a single host name INTERNAL clients cannot access. I think that this is due to the use of virtual servers by name based on the new server under IIS. On the old server, the host name that appears in the wsdl file is any hostname you entered in your browser to access the automatically generated WSDL.

    The last few lines of the WSDL file look like this.
    < binding = "" impl:criminals.cfcSoapBinding: Port "name =" xxxxxx.cfc ">"
    "< wsdlsoap:address location =" http://INTERNAL_HOSTNAME.DOMAIN.net/xxxxxx.cfc "/ > "
    < / wsdl: port >
    < / wsdl:service >
    < / wsdl:definitions >

    It is an IIS issue. Here are the details.
    http://support.Microsoft.com/kb/834141/

  • Keep the changes to the automatically generated html wrapper

    Hello

    In flex builder 3, I put in place of a wen app using an eternal interface to javascript.

    For dev and test that I just want to burst the JS generates functions on the page wrapper which Flex auto, but of course when I change the wrapper page get more written. How to stop the html page wrapper of regeneration each time.

    Thanks in advance
    Dean

    Thank you

    I also found that you can edit the index - template.html, inside the html-template folder. What you add to this template will be added to the automatically generated html wrapper.

    I added a few JS, iFrame and Flash Vars and they added for debugging and normal envelopes. Ideal for testing

    Thanks again

    Dean

Maybe you are looking for