Want to access the current index of the DataGroup component in the datagroup brood

Hello

I have 2 dimensional Arraycollection collection that contains the details of people. I want to view those using component Datagroup. because it is a dimentional 2 I use datagroup nestead. but I'm not able to access currentIndex (as Repeater, we have access to). Please help me how can I access

currentIndex.

example code:

<? XML version = "1.0"? >

<!-repeater\RefNestedComponents.mxml->

< s:Application

" = xmlns:fx 'http://ns.adobe.com/mxml/2009"" "

xmlns:mx = "library://ns.adobe.com/flex/mx".

xmlns:s = "library://ns.adobe.com/flex/spark" xmlns:local = "" * "creationComplete =" testd () ">"

< fx:Script >

<! [CDATA]

import mx.collections.ArrayCollection;

import mx.collections.ArrayList;

import mx.collections.IList;

[Bindable]

public var tests: ArrayCollection collection;

function public testd (): void {}

test = new ArrayCollection([)

{name: collection new ArrayCollection ([{name: "Wilma Carter", bats: "R", lance: "R", year: "So", home: "Redlands, CA"}])},

{name: collection new ArrayCollection ([{name: "Sue Pennypacker", bats: "L", lance: "R", year: "Fr", home: "Athens, GA"}])},

{name: collection new ArrayCollection ([{name: "Jill Smithfield", bats: "R", lance: "L", year: "Sr", home: "Spokane, WA"}])},

{name: collection new ArrayCollection ([{name: "Shirley Goth", bats: "R", lance: "R", year: "Sr", home: "Carson, NV"}])},

{name: collection new ArrayCollection ([{name: "Jennifer Dunbar", bats: "R", lance: "R", year: "Fr", home: "Seaside, CA"}])},

]);

}

public void change(e:Event):void {}

tests [1] .name = "test";

tests.refresh ();

}

]]>

< / fx:Script >

< s:layout >

< s:VerticalLayout / >

< / s:layout >

< s:DataGroup id = "datagroup" dataProvider = "{test}" >

< s:layout >

< s:VerticalLayout / >

< / s:layout >

< s:itemRenderer >

< fx:Component >

<!-< s:DataGroup dataProvider = "{outerDocument.tests [1] .name}" >-->

< s:DataGroup dataProvider = "{outerDocument.tests [INDEX] .name}" >

< s:itemRenderer >

< fx:Component >

< mx:Text text = "{data.name}" / >

< / fx:Component >

< / s:itemRenderer >

< / s:DataGroup >

< / fx:Component >

< / s:itemRenderer >

< / s:DataGroup >

< s:Button click = "Exchange (event)" label = "click to change" / > "

< / s:Application >

in the code above:

<!-< s:DataGroup dataProvider = "{outerDocument.tests [1] .name}" >-->

< s:DataGroup dataProvider = "{outerDocument.tests [INDEX] .name}" >

I want to get the INDEX value...

Please help me... Thank you

The ItemRenderer class should be in spark the root inside your fx:Component tags tag.  This class has a built-in itemIndex property.

Here is your code tweaked to show the itemIndex in the nested DataGroup and the external DataGroup:

"xmlns:FX ="http://ns.adobe.com/mxml/2009"

xmlns:MX = "library://ns.adobe.com/flex/mx".

"xmlns:s ="library://ns.adobe.com/flex/spark"xmlns:local =" "*" creationComplete = "testd ()" >

Import mx.collections.ArrayCollection;

Import mx.collections.ArrayList;

Import mx.collections.IList;

[Bindable]

public var tests: ArrayCollection collection;

public function testd (): void {}

testing = new ArrayCollection([)

{name: collection new ArrayCollection ([{name: "Wilma Carter", bats: "R", lance: "R", year: "So", home: "Redlands, CA"}])},

{name: collection new ArrayCollection ([{name: "Sue Pennypacker", bats: "L", lance: "R", year: "Fr", home: "Athens, GA"}])},

{name: collection new ArrayCollection ([{name: "Jill Smithfield", bats: "R", lance: "L", year: "Sr", home: "Spokane, WA"}])},

{name: collection new ArrayCollection ([{name: "Shirley Goth", bats: "R", lance: "R", year: "Sr", home: "Carson, NV"}])},

{name: collection new ArrayCollection ([{name: "Jennifer Dunbar", bats: "R", lance: "R", year: "Fr", home: "Seaside, CA"}])},

]);

}

public void change(e:Event):void {}

tests [1] .name = "testing";

tests. Refresh();

}

]]>

Tags: Flex

Similar Questions

  • I want to access the fan on my satellite A110-233

    Hello

    I have a satellite A110-233 and I want to access the fan I want to check it dust because he won the t-switch on and the last time he did it, it kept restarting so far. If someone can tell me step by step how to disassemble it, I d be very grateful.

    Thank you very much!

    (I ve checked the net but didn t have a chance at all)

    The fan is a big job. I think you need to remove the whole top cover and delicate cables.

    Your best option is to buy a can of compressed Air or use an air compressor to blow out the dust through the vent.

  • I want to access the adobe trial

    I want to access the adobe trial

    The next page, you should see would be a registration form.

    Please try to clear cookies, cache, or try using another browser.

  • Want to access the text file of ODI linux machine installed on windows

    Hi all

    I want to access the text file of ODI linux machine installed on windows computers.
    To do this, I created the server data files (physical schema) and;

    Host(Data Sever): IP address of the linux machine
    User: user of linux machine name
    Password: data

    Directory: / hyperian/Oracle/Middleware/user_projects/epmsystem1/EssbaseServer/essbaseserver1 / * application *.
    I shared the folder app in linux machine.
    When you try to run the interface using this file inside the folder app, its giving below error


    7000: null: java.sql.SQLException: file not found: /hyperian/Oracle/Middleware/user_projects/epmsystem1/EssbaseServer/essbaseserver1/app/STORAGE.csv
    java.sql.SQLException: file not found: / hyperian/Oracle/Middleware/user_projects/epmsystem1/EssbaseServer/essbaseserver1 /app/STORAGE.csv

    to com.sunopsis.jdbc.driver.file.x. < init > (x.java)

    at com.sunopsis.jdbc.driver.file.d.b.d.a (d.java)

    at com.sunopsis.jdbc.driver.file.g.a (g.java)

    at com.sunopsis.jdbc.driver.file.w.executeQuery (w.java)

    at com.sunopsis.sql.SnpsQuery.executeQuery (SnpsQuery.java)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execCollOrders (SnpSessTaskSql.java)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt (SnpSessTaskSql.java)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt (SnpSessTaskSqlC.java)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask (SnpSessTaskSql.java)

    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep (SnpSessStep.java)

    at com.sunopsis.dwg.dbobj.SnpSession.treatSession (SnpSession.java)

    at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand (DwgCommandSession.java)

    at com.sunopsis.dwg.cmd.DwgCommandBase.execute (DwgCommandBase.java)

    at com.sunopsis.dwg.cmd.e.k (e.java)

    at com.sunopsis.dwg.cmd.g.A (g.java)

    at com.sunopsis.dwg.cmd.e.run (e.java)

    at java.lang.Thread.run (unknown Source)


    One faces this question erlier? then helpme out.

    Hello

    1. If your files are located on a remote file system, you will need to copy one of your files to the computer that Designer ODI runs to allow ODI retrieve the metadata of the file information.
    2. in the topology to create a physical schema, the directory you enter data and the scheme of work must point to this local file.
    3. then set the file data store in the designer of the ODI. Enter a name, browse and select the file and fill each deposited the files tab.

    * If it's a fixed file, click on the network icon in the column into the columns tab and have checked auto adjustment.
    * If it is a delimited file, use the reverse button on the columns tab to reverse the columns.
    * Right-click on the Datastore folder select View Data, if you can view the data, which means that store file data has been correctly set.
    * If this is not the case, check each tab of the database file to make sure that everything is set correctly and try again.

    4. once the display data to be successful, now change you directories (data and the scheme of work in topology) to point to the remote file system. These directories must be accessible to the ODI Agent that will be used to perform transformations. The directory can be an absolute path (m:/public/data/files) or a parent in the ODI Agent startup directory (.. files/demo /). It is strongly recommended to use a UNC (regardless of the location of execution) name for the path. Executing transformations "agentless", the directory is relative to the directory where Oracle Data Integrator was installed.

    You must have an agent process running on the system that contains your source file.
    Then during the race, the odi interface choose this agent.

    Thank you
    Fati

  • Windows XP has been infected with a virus/trojan via the net and will pop up window wanting to access the app tray and Windows install wants to work.

    Original title: tray app

    I have a PC with Windows XP. He has been infected with a virus/trojan via the net. I can't access the net, but I have now access to readers of DVD and CD. On the screen is a window who want access to the application of the status bar. I don't have a restore date prior to infection. Installer Windows guard eager to work. How can I get going again and remove the virus/Trojan? I also have a laptop with windows vista. I can download MSE on my laptop for windows XP and copy it to a CD and then use it on the PC?

    Hi shanethornton,

    You can try to download Microsoft Security Essentials from the link below for a CD or a USB key and try to run it on the infected PC and check out them.

    See the link to download Microsoft Security Essentials:

    http://www.Microsoft.com/security_essentials/?WT.srch=1

    Hope this information is useful.

    Jeremy K
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Navigate in a pragmatic way. I want to access the fragment in the pragmatic workflow.

    I have a taskflow contains fragments, I want to navigate to fragment pragmatically.

    try using this:

    FacesContext fc = FacesContext.getCurrentInstance();
     fc.getApplication().getNavigationHandler().handleNavigation(fc, null, "outcome");// write the page outcome
    
  • the company calling and pretending that they are microsoft and you want to access the computer to install the licenses.

    I think that these people are completely false! 866-658-8142 is the phone number. Can someone verify that this is false.

    FTC STOPS MASSIVE TECH SUPPORT SCAMS:
    http://www.ftc.gov/opa/2012/10/Pecon.shtm

  • I have lightroom 3 and you want to install a second time on my new iMac desktop. How do I access the installation for this 2nd computer?

    I know this is an old version, so I can't help from adobe support, but I bought two installs and I want to access the installation for my 2nd computer

    Adobe - Lightroom: For Macintosh: Adobe Photoshop Lightroom 3.6

  • To access the names of the fields in the ArrayCollection collection

    Hello, this can seem like a n00b question, but, I have a collection of table that looks to the below:

    public var topFive:ArrayCollection = new ArrayCollection([)
    {Month: "GAME_Redemptions"},
    {Month: "TALLINK_Redemptions"},
    {Month: "YvesRocher_Redemptions"},
    {Month: "ETAM_Redemptions"}
    ]);

    With a loop, for example, if I want to access the value, I would type, topFive [i] .month. However, if I want to access domain name, what would be the code. IM assuming that it would be something like [i] topFive - but it does not return the desired result.

    Does anyone know how to do this? I wanted to avoid having to put the table in a datagrid control and then extract values from there.

    Help, please!

    Craig

    Your ArrayCollection collection contains five dynamic objects. If the expression 'topFive [i]' will give you the object at index 'i', rather than the Month of this object property. If you do not know the names of the properties of these objects then you need in order to access their properties a second loop:


    <>
    "xmlns:MX ="http://www.adobe.com/2006/mxml"
    Layout = "vertical" >
       
       
            Import mx.collections.ArrayCollection;
               
    private var topFive:ArrayCollection = new ArrayCollection([)
    {Month: "GAME_Redemptions"},
    {Month: "TALLINK_Redemptions"},
    {Month: "YvesRocher_Redemptions"},
    {Month: "ETAM_Redemptions"}
    ]);
               
    private void doLoop(): void
    {

    Loop through the objects in the collection
    for each (var item: object in topFive)
    {

    Loop in the properties of the current object.
    for (var property: String in object)
    {

    Display the name of the current property and the value it contains
    output. Text += property + ":"+ object [property] + '\n'; '.
    }
    }
    }
               
    ]]>
       
       
        <>
    label = 'Do Loop'
    Click = "doLoop ()" / > "
           
        <>
    Width = "200".
    Height = "300".
    ID = "output" / >
       

  • Server 2008 - adding the role of print server to access the tools of PrintBRM?

    Hello

    I have Windows Server 2008 with about 50 + printers currently installed. This server is configured to use Terminal Server services.

    I want to access the PrintBRM tool to export this configuration for the additional Terminal servers, but I don't have the active print server role.
    If I add the role of server printer so I can use PrintBRM, will this affect my configuration current impression? I will start adding printers through print management?
    I appreciate the help!

    Figured it out.

    Another server in 2008 with the role of print server already installed can remotely back up and restore a Server 2008 configuration of the printer using printbrm.
    Backup:
    %windir%\System32\Spool\Tools\PrintBRM s------nom_ordinateur_source b f filename.printerExport
     
    Restoration:
    %windir%\System32\Spool\Tools\PrintBRM s-nom_ordinateur_destination - r f filename.printerExport

     
    Help:
    %windir%\System32\Spool\Tools\PrintBRM /?

  • How to access the internal memory of Blackberry?

    Hello
    I am currently to access the file operation in the SD card. I want to access the file operation in the internal memory of Blackberry?

    To access the file on the internal memory operation use file:///store/home/user/filename

  • To access the values of the Atrributes VO at the bean object

    Scenario is,

    I have two attributes in the original Version, but I want to access the values of attributes, I can get the values of Vo using vo, getAtrribute (), but I want to access the values of the attributes when the user will enter new values, I want access to a new value to manage the bean to handle.

    I dropped VO as a form on the Page

    Version: Release 11g Jdev 2, 11.1.2.0.0

    Zaid

    You tell me that after 30 answers, it's not good

    and it is a totally different matter, then you need to open a new topic for each new question (ignore this time but remember)

    As you say that annual is the primary key in the primary table, then obviously you want to sink it is the current value in the child records, why you need the next sequence number to add detail records?

    Anyway check this box

    Immerse yourself in Oracle: get the next value in the sequence in ADF

    Ashish

  • To access the nodes in the XMLList

    I don't understand how I'm supposed to access specific nodes of an XMLList object.
    My XMLList object is created from a HTTPService lastResult. So I try to access a specific node, but none of the syntax, I tried works. I am able to use the syntax "for each in ' loop through all the nodes, so I know that XML is coming up in agreement.

    Here's the MXML I:
    < mx:HTTPService id = "feedRequest" url = "blahblahblah.html" useProxy = "false" resultFormat = "e4x" / > "
    < mx:XMLListCollection id = "xc" source="{feedRequest.lastResult.*}"/ >

    And the script:
    private function showSomething (): void {}
    mx.controls.Alert.show (xc.source.self.toString ());
    }

    where the XML looks like:
    <>node
    < free label = 'This one' nodeUid = '1.3' > < / auto >
    < / node >

    Currently the alert showSomething shows nothing. I want to access the node called "self". "How can I do?



    The result of the event is the root XML node. In the XML file you gave as an example, this is the node. So:

    XML (Event.Result) () .nodeName == 'node '.

    An XMLList is an object of type array of all nodes that meet the criteria. For example:

    var list: XMLList = event.result.self;

    It's all items that are immediate children of the root, . In your case, it must have a length of one:

    List.length () / / note this is a function, not a property

    So: list [0] should be the node. And list[0].@label must be 'This one' and so on.

    Your XMLListCollection is better formed by: source = "{feedRequest.lastResult.self}" because it requires a XMLList for the source. "

  • I use firefox and tried to access the list of favorites. no luck?

    Have always used Yahoo mail, but had to change browser for firefox as yahoo is no longer supported my IE9 for yahoo mail. I want to continue with email from yahoo that I like. Now I can get email yahoo thanks to firefox, which is great. I want to access the list of the favourites in the firefox toolbar, but not luck.
    Can someone advise please.
    Mary

    Hello

    This should be simple enough to change;

    1. Press Alt and clear view.
    2. In this menu, select Toolbars, followed by the bookmarks toolbar.

    You can then the user details in this article to help manage your bookmarks. Everything that you put in the folder "Personal bar" should appear along the toolbar in Firefox for easy access when browsing the web.

    I hope this helps, but if not please come back here and we can look at another solution for you.

  • Satellite A300-1MT - how do I access the hidden partition

    Hello

    I have the model Satellite A300-1MT and I don't know how to access the hidden partition.

    Hello

    Why you want to access the hidden partition?

    Do you know why this hidden partition has been created on the HARD drive?

    This hidden partition is created automatically by Vista and it contains backup files that are needed to repair the operating system if something will go wrong.

    It s not advised to access this partition or delete it!

Maybe you are looking for

  • How to access Google search on the mobile page tools?

    I use Firefox 23 for Android, and when I'm on the pages of Google search there is no search tool, so I'm not able to refine the search, or the location, time or adjust the results. How can I get this functionality without using the option "Ask Site D

  • Recovery BIOS; follow-up

    Hello to solve my problem with my h8-1020 for which I thought that the BIOS was dead, I bought a new motherboard and my machine is back now. I installed the new motherboard and all internal components, including the Hitachi hdd for which I was gettin

  • BlackBerry smartphones can not access browser settings!

    When I use the browser the Logo of Blackberry button doesn't seem to work. If I want I can go programs, but it will not open the menu where the options are. The button works fine with other applications! I tried to wipe the blackberry, but it is simp

  • Touch pad problems

    Its ti me or my touchpad? I never use the left clicker to click on links, I just double tap. Lately when I double tap the pointer moves to the right of the screen or click on a link that I have never intended to click or highlights everything. its so

  • How can I customize my computer and use transparency?

    original title: How can I make my apprence good pc? in my pc I have windows 7, but its does not work properly my pc task bar appearance is not good and it is not transferable look... Please help me