Using an hierarchical dataProvider for a TileList

Hey guys,
I am working on a Flex3 project and do have a viewStack holding two components: an AdvancedDataGrid and a TileList
Both of these are supposed to be based on the same dataprovider and due to the nature of the viewstack easily switchable.
The AdvancedDataGrid is already implemented and uses HierarchicalData as dataProvider (I only have two levels, where the second level is given by an attribute with the type ArrayCollection in the first level).
Now I have to tell my TileList somehow to transform this hierarchical data into plain data by simply flatting it (i.e. Level1, Level1.1, Level1.2, Level 1.3, ..., Level 2, Level 2.1, ...Level3 , ...).
I already thought about using an ICollectionView interface and to use some form of other adapter. But I could not really manage to get something working....so any hints/ideas?
cheers a lot and happy new year!!

nobody got a hint?

Similar Messages

  • Using xml as dataProvider for chart

    I am trying to use a loaded xml as the dataProvider for a pie chart like this
    <mx:PieChart id="pieChart"
                         dataProvider="{get_xml.lastResult.AssetAllocationFunds.fund[0].target_allocation}">
    This works, but gives a warning that
    "Data binding will not be able to detect changes when using the square bracket operator. For Array, please use ArrayCollection.getItemAt() instead."
    Can someone give me some direction on how to implement this.
    Thanks.

    So that solution I posted up wasn't going to work for what I needed.
    Basically, the "itemRollOver" and "itemClick" that work for the pie chart when hard coded on the main application don't work when embedded in a custom class that extends the PieChart. I haven't been able to figure out why.
    However, I did get the syntax for targeting ArrayCollection.getItemAt() worked out.
    Here is a simple example.
    Hope it helps others.
    Mark
    <?xml version="1.0" encoding="utf-8"?>
    <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"
        >
        <fx:Script>
            <![CDATA[
                import mx.charts.events.ChartEvent;
                import mx.charts.events.ChartItemEvent;
                import mx.charts.series.items.PieSeriesItem;
                import mx.collections.ArrayCollection;
                import mx.events.FlexEvent;
                import mx.rpc.events.ResultEvent;
                import mx.charts.series.PieSeries;
                private function pieChart_itemRoll(evt:ChartItemEvent):void {
                    var psi:PieSeriesItem = evt.hitData.chartItem as PieSeriesItem;
                    myTextArea.text += "\rtarget: "+psi.item.target;
                    trace(psi.item.target);
                private function pieChartClick(event:ChartItemEvent, pieName:String):void{   
                    myTextArea.text += "\rid: "+pieName;
                [Bindable]
                private var chartData:ArrayCollection = new ArrayCollection(
                    [[{target:"Target A0",percent:40},
                        {target:"Target A1",percent:30},
                        {target:"Target A2",percent:20},
                        {target:"Target A3",percent:10}],
                        [{target:"Target B0",percent:45},
                            {target:"Target B1",percent:22},
                            {target:"Target B2",percent:17},
                            {target:"Target B3",percent:8}]]);
            ]]>
        </fx:Script>
        <s:VGroup>
            <s:HGroup id="myGroup">
                <mx:PieChart
                    dataProvider="{chartData.getItemAt(0)}"
                    itemRollOver="pieChart_itemRoll(event);"
                    itemClick="pieChartClick(event, 'pie 0');"
                    showDataTips="false"
                    height="210"
                    width="210">
                    <mx:series>
                        <mx:PieSeries
                            field="percent"
                            nameField="target"
                            labelPosition="inside"
                            >
                        </mx:PieSeries>
                    </mx:series>
                </mx:PieChart>
                <mx:PieChart
                    dataProvider="{chartData.getItemAt(1)}"
                    itemRollOver="pieChart_itemRoll(event);"
                    itemClick="pieChartClick(event, 'pie 1');"
                    showDataTips="false"
                    height="210"
                    width="210">
                    <mx:series>
                        <mx:PieSeries
                            field="percent"
                            nameField="target"
                            labelPosition="inside"
                            >
                        </mx:PieSeries>
                    </mx:series>
                </mx:PieChart>
            </s:HGroup>
            <s:TextArea id="myTextArea"  width="550" height="220" />
        </s:VGroup>
    </s:Application>

  • Using HTML component Images within a tilelist

    I have a very complicated problem and I'm not sure it's even within my ability to achieve if at all but basically in my AIR application I currently have a tilelist populated by a data provider of images which are essentially thumbnail snapshots I've made of websites. When each of these images is clicked within the tilelist they take the user to that specific site. I now however want these images to be live i.e. they change as the site changes.
    I've decided to use html components for all of these sites to get these images but I now want these images to be set up as a dataprovider for a tilelist. It's hard to explain so to show what I mean I've made the following code. Basically I want the 2 images/displays that are displayed within the 2 html components to be static i.e. the user can't interact with the sites through them but can simply click on them to go to the site and to be put within a dataprovider somehow that will act as the dataprovider for the imageDisplay tilelist Complicated I know but the guy I'm making the app for wants the images of sites to update themselves and this is the easiest way to do it I've heard :-
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication 
    xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Canvas width="100%" height="100%">
    <mx:HTML id="content1" location="http://www.adobe.com/" width="300" height="300"/>
    <mx:HTML id="content2" location="http://www.google.com/" x="308" width="300" height="300"/>  
    <mx:TileList x="0" y="308" width="772" height="300" id="imageDisplay"></mx:TileList>
    </mx:Canvas>
    </mx:WindowedApplication>

    To show you what I mean better here is a partial bit of my code from my existing app in which I've just used static images in the tilelists. The real app is much more advanced but this is to just give you an idea. Users can drag site icons displayed in a tilelist into their own tilelist and then click the save button so these icons will still be in their tilelist when they restart the app. I used the shared object method for this to get it to save these details. As you can see in my code starting at around line 33 I've used an array collection for this. What I need is to somehow get these html live images into that array collection as opposed to the static jpgs I have at the moment.
    <?xml version="1.0" encoding="utf-8"?><mx:WindowedApplication  xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="initprofile1NewsAndSportSO();">
     <mx:Script>
    <![CDATA[
    [Bindable][
    Embed(source="assets/images/bbcnews_small.png")] 
    public var image5:Class; 
    Bindable][
    Embed(source="assets/images/itv_small.png")] 
    public var image7:Class; 
    Bindable][
    Embed(source="assets/images/skynews_small.png")] 
    public var image10:Class; 
    ]]>
    </mx:Script>
     <mx:Script>
    <![CDATA[
     private function profile1NewsAndSportAddButtonClickHandler():void{ 
    for each(var a:uint in profile1NewsAndSportAddLinksTilelist.selectedIndices){ 
    if(profile1NewsAndSportLinkChoice.dataProvider != null){ 
    if(!ArrayCollection(profile1NewsAndSportLinkChoice.dataProvider).contains(ArrayCollection(pr ofile1NewsAndSportAddLinksTilelist.dataProvider).getItemAt(a))){ArrayCollection(profile1NewsAndSportLinkChoice.dataProvider).addItem(ArrayCollection(profi le1NewsAndSportAddLinksTilelist.dataProvider).getItemAt(a));
    ArrayCollection(profile1NewsAndSportAddLinksTilelist.dataProvider).removeItemAt (a);
    else{profile1NewsAndSportLinkChoice.dataProvider.addItem(ArrayCollection(profile1NewsAndSportAd dLinksTilelist.dataProvider).getItemAt(a));
    ArrayCollection(profile1NewsAndSportAddLinksTilelist.dataProvider).removeItemAt(a);
    private function profile1NewsAndSportRemoveButtonClickHandler():void{ 
    for each(var a:uint in profile1NewsAndSportLinkChoice.selectedIndices){ArrayCollection(profile1NewsAndSportAddLinksTilelist.dataProvider).addItem(ArrayCollection (profile1NewsAndSportLinkChoice.dataProvider).getItemAt(a));
    ArrayCollection(profile1NewsAndSportLinkChoice.dataProvider).removeItemAt(a);
    ]]>
    </mx:Script>
     <mx:Script>
    <![CDATA[
     import mx.collections.*; 
    import flash.net.SharedObject; 
    public var profile1NewsAndSportSO:SharedObject; 
    private var profile1NewsAndSportaddLinksFullAC:ArrayCollection = new ArrayCollection([{link:
    "www.bbcnews.com", label:"BBC News", icon:"image7", largeImage:"assets/images/bbcnews_small.png", title:"BBC News", description:"BBC News description will go here"},{link:
    "www.itv.com/", label:"ITV", icon:"image5", largeImage:"assets/images/itv_small.png", title:"ITV", description:"ITV Description will go here"},{link:
    "www.skynews.com", label:"Sky News", icon:"image10", largeImage:"assets/images/skynews_small.png", title:"Sky News", description:"Sky News Description will go here"}]);
    private var profile1NewsAndSportaddLinksAC:ArrayCollection = new ArrayCollection([{link:
    "www.bbcnews.com", label:"BBC News"},{link:
    "www.itv.com/", label:"ITV"},{link:
    "www.skynews.com", label:"Sky News"}]);
    private function profile1NewsAndSportReset():void{resetprofile1NewsAndSportAC();
    profile1NewsAndSportAddLinksTilelist.dataProvider
    = profile1NewsAndSportaddLinksAC;
    profile1NewsAndSportLinkChoice.dataProvider =
    new ArrayCollection([]);}
    private function resetprofile1NewsAndSportAC():void{profile1NewsAndSportaddLinksAC.removeAll();
    for each(var obj:Object in profile1NewsAndSportaddLinksFullAC){profile1NewsAndSportaddLinksAC.addItem(obj);
    private function initprofile1NewsAndSportSO():void{profile1NewsAndSportLinkChoice.dataProvider =
    new ArrayCollection();profile1NewsAndSportAddLinksTilelist.dataProvider =
    new ArrayCollection();profile1NewsAndSportSO = SharedObject.getLocal(
    "profile1NewsAndSport"); 
    if(profile1NewsAndSportSO.size > 0){ 
    if(profile1NewsAndSportSO.data.profile1NewsAndSportaddList){ 
    if(profile1NewsAndSportSO.data.profile1NewsAndSportaddList != "empty"){ 
    var profile1NewsAndSportaddList:Array = profile1NewsAndSportSO.data.profile1NewsAndSportaddList.split(","); 
    var profile1NewsAndSporttempAC1:ArrayCollection = new ArrayCollection(); 
    for each(var str:String in profile1NewsAndSportaddList){ 
    for each(var obj1:Object in profile1NewsAndSportaddLinksAC){ 
    if(str == obj1.label){profile1NewsAndSporttempAC1.addItem(obj1);
    continue;}
    if(profile1NewsAndSporttempAC1.length > 0){profile1NewsAndSportAddLinksTilelist.dataProvider = profile1NewsAndSporttempAC1;
    if(profile1NewsAndSportSO.data.profile1NewsAndSportchoiceList){ 
    var profile1NewsAndSportchoiceList:Array = profile1NewsAndSportSO.data.profile1NewsAndSportchoiceList.split(","); 
    var profile1NewsAndSporttempAC2:ArrayCollection = new ArrayCollection(); 
    for each(var str2:String in profile1NewsAndSportchoiceList){ 
    for each(var obj2:Object in profile1NewsAndSportaddLinksAC){ 
    if(str2 == obj2.label){profile1NewsAndSporttempAC2.addItem(obj2);
    continue;}
    if(profile1NewsAndSporttempAC2.length > 0){profile1NewsAndSportLinkChoice.dataProvider = profile1NewsAndSporttempAC2;
    else{profile1NewsAndSportReset();
    private function saveprofile1NewsAndSport(event:MouseEvent):void{ 
    var profile1NewsAndSportaddList:String = ""; 
    if(profile1NewsAndSportAddLinksTilelist.dataProvider){ 
    if(ArrayCollection(profile1NewsAndSportAddLinksTilelist.dataProvider).length > 0){ 
    for each(var obj1:Object inprofile1NewsAndSportAddLinksTilelist.dataProvider){
    profile1NewsAndSportaddList += obj1.label +
    else{profile1NewsAndSportaddList =
    "empty";}
    profile1NewsAndSportSO.data.profile1NewsAndSportaddList = profile1NewsAndSportaddList;
    var profile1NewsAndSportchoiceList:String = ""; 
    for each(var obj2:Object inprofile1NewsAndSportLinkChoice.dataProvider){
    profile1NewsAndSportchoiceList += obj2.label +
    profile1NewsAndSportSO.data.profile1NewsAndSportchoiceList = profile1NewsAndSportchoiceList;
    profile1NewsAndSportSO.flush();
    ]]>
    </mx:Script>
     <mx:Button click="profile1NewsAndSportReset()" id="reset" label="
    Reset" y="5" height="25" x="5"/>
     <mx:TileList id="profile1NewsAndSportLinkChoice" fontWeight="bold" dragEnabled="
    true" dragMoveEnabled="true" dropEnabled="true" height="129" width="
    650" top="10" left="519" columnCount="5" rowHeight="145" columnWidth="
    125" backgroundColor="#000000" color="#FFFFFF"creationComplete="profile1NewsAndSportLinkChoice.selectedIndex=0"
    />
     <mx:TileList id="profile1NewsAndSportAddLinksTilelist" fontWeight="bold" dragEnabled="
    true" dragMoveEnabled="true" dropEnabled="true" height="129" width="
    385" top="10" left="126" columnCount="3" rowHeight="145" columnWidth="125" backgroundColor="
    #000000" color="#FFFFFF"creationComplete="profile1NewsAndSportAddLinksTilelist.selectedIndex=0"
    />
     <mx:Button click="saveprofile1NewsAndSport(event)" id="save" label="Save Changes" x="
    5" y="38" width="113" height="25.5"/>
     <mx:Button x="126" y="147" label="Add" id="profile1NewsAndSportAddSelectedLinkButton" click="profile1NewsAndSportAddButtonClickHandler()"/>
     <mx:Button x="519" y="147" label="Remove" id="profile1NewsAndSportRemoveSelectedLinkButton" click="profile1NewsAndSportRemoveButtonClickHandler()"/>
     </mx:WindowedApplication>

  • How to use multiple hierarchies for a single char in single query

    Hi,
    Is there any way that we can use multiple hierarchies for a single char in single query. I tried and it just allows me to select one hierarchy even if I use hierarchy variable.
    I have a requirement where user wants to see information related to a cost center with different cost center groups in different hierarchies (every year has different cost center group hierarchies).
    Suppose I want to see information related to a cost center from year 2001-2004.in these four year cost center may have been associated to different groups depending upon that year hierarchy. How can I do that?
    Thanks
    Jona

    Nope. Now way to do this.
    There is always just one hierarchy assigned to a characteristic. And even if the hierarchy was time dependent, it only reads it for one key date and not according to transaction data.
    Regards,
    Beat

  • Changing totals value in hierarchical alv for a particular level/row

    Hi,
    I am displaying a hierarchical ALV having 4 levels.
    Using field catalog, totals for all dynamic columns are found out.
    I have a requirement not to display totals value for first and second levels.
    And if possible, to display another value.
    Tried using CL_GUI_ALV_TREE->change_node.
    But it not updating.
    Please suggest a solution.
    Thanks,
    Nisha Vengal.

    Hi Ten Mariga,
                     I wonder why the second select Query is needed at all instead you can use
    ---> Not Needed
    FORM DATA_RETRIEVAL1.
    SELECT * FROM zcontact INTO TABLE it_zcontact WHERE id EQ wa_zcontact-id.
    ENDFORM.
    ----> Instead you can do
       READ TABLE it_zcontact INTO wa_zcontact INDEX p_seltab-tabindex.
      Append wa_zcontact to Second_table.
    And you can use the Second_table to display the second ALV. The second Select Query will affect the performance too.
    Cheers,
    Krishnakumar B.

  • Selecting/highlighting a node in Flex Tree using HierarchicalCollectionView as DataProvider

    Hi,
    I am using GroupingCollection2 as the dataprovider for HierarchicalCollectionView. The GroupingCollection2 takes its data from an ArrayCollection. And finally I have a Tree whose dataprovider is the HierarchicalCollectionView . I want to acheive 2 things:
    1) I want to programatically select/highlight a node in this tree. Using expandItem and passing the Object from the arraycollection is not working.
    2) Refresh the tree if there is a change in the arrayCollection.
    For the second task, I have a Java Layer that gives me the ArrayCollection  (dp for GroupingCollection2) when I fire a CairngormEvent. But the problem is that every node in the tree is duplicated. I can clearly see that say there are 8 items in the array collection but still the tree shows 16 items ( Each item duplicated as the node in the tree.)
    I have been trying to figure this out for many days now without any luck. Any sort of suggestion would be appreciated.
    Thank u in advance.

    I got the refreshing of the tree part by myself. One needs to call the refresh method on the GroupingCollection2 and HierarchicalCollectionView objects when the arraycollection has just arrived from the database.
    But I still havent been able to figure out how to highlight or open a tree node programatically. I am repeating that using (calling / setting) tree.expandItem() and tree.openItems is not helping me. Plz somebody help.

  • Hierarchical Query for Chart of Account

    Hellow all
    I have one Table which is for chart of account
    The Column in this Table is
    Acc_id and Acc_name
    I Insert data in This chart of account
    Insert into COA
    values
    *(01,'ASSETS');*
    values
    *(01001,'Current Assets');*
    values
    *(01002,'Fixed Assets');*
    values
    *(010010001,'Banks');*
    values
    *(010010002,'Cash');*
    values
    *(01001000100001,'Metrol Politan Bank');*
    values
    *(01001000100002,'Royal Bank');*
    values
    *(01001000100003,'Stander Charted Bank');*
    values
    *(01001000200001,'Cash in Hand');*
    values
    *(01001000200002,'Patty Cash');*
    That's all my record now i need to create a Hierarchical tree
    Which look like this
    *01- Assets*
    ------010001 Current Assets+
    ----------010010001 Bank+
    --------------01001000100001 Metrol Politan Bank+
    --------------01001000100002 Royal Bank+
    --------------01001000100003 Stander Charted Bank+
    ----------010010002 Cash+
    --------------01001000200001 Cash in Hand+
    --------------01001000200002 Patty Cash+
    ------010002 Fixed Assets+
    ----------010020001 Machinery Assets+
    --------------01002000100001 Needle Machine+
    --------------01002000100002 GGT Machine+
    ----------010020002 Computer Assets+
    --------------01002000200001 Computer Server+
    --------------01002000200002 Computer other+
    Hope you guys understand i need the Hierarchical query for making this kind of Tree
    Regards
    Shahzaib

    In above posts you have solution to your problem but maybe you can think about changeing the design slightly.
    I would suggest using parent_id to find parent account, instead of operations on strings which can be slower in larger tables.
    SQL> create table t14(id int, account_code varchar2(16), account_name varchar2(32), parent_id int)
      2  /
    Table created.
    SQL> insert into t14 values(1,'01','Assets',null);
    1 row created.
    SQL> insert into t14 values(2,'01001','Current Assets',1);
    1 row created.
    SQL> insert into t14 values(3,'01002','Current Assets',1);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select * from t14;
            ID ACCOUNT_CODE     ACCOUNT_NAME                      PARENT_ID
             1 01               Assets
             2 01001            Current Assets                            1
             3 01002            Current Assets                            1
    SQL> select lpad(' ',2*(level-1)) || account_code as account_code, account_name
      2  from t14
      3  start with parent_id is null connect by prior id = parent_id
      4  /
    ACCOUNT_CODE                   ACCOUNT_NAME
    01                             Assets
      01001                        Current Assets
      01002                        Current AssetsWith kind regards
    Krystian Zieja

  • Problem in setting dataprovider for a dynamically generated datagrid

    Hi everybody
    I have a issue in flex, I am generating datagrids dynamically
    by using repeaters but i am unable to set a seperate dataprovider
    for each grid
    Grid1 might come with some set of data and grid 2 with some
    and so on so i want to set dataproviders at runtime for each grid
    how can i do that
    i have pasted my code for generating datagrid dynamically plz
    go thru that and find me some solution
    <mx:Repeater id="ProjectNames"
    dataProvider="{GetTimeSheetDetails.lastResult.NewDataSet.Table1}"
    >
    <mx:Canvas label="{ProjectNames.currentItem.ProjectName}"
    width="100%" height="251" id="CanvasTimeSheet"
    creationComplete="disablecanvas();">
    <mx:DataGrid x="10" y="10" width="864" height="206"
    editable="true"
    dataProvider="{GetTimeSheetDetails.lastResult.NewDataSet.Table}"
    id="dgTimeSheet">
    <mx:columns>
    <mx:DataGridColumn headerText="Task" dataField="TaskName"
    width="60" >
    </mx:DataGridColumn>
    <mx:DataGridColumn headerText="Task Description"
    dataField="TaskDescription" width="150" editable="true"/>
    <mx:DataGridColumn headerText="M" dataField="Monday"
    width="15" editable="true"/>
    <mx:DataGridColumn headerText="T" dataField="Tuesday"
    width="15" editable="true"/>
    <mx:DataGridColumn
    </mx:columns>
    </mx:DataGrid>
    <mx:Label x="564" y="222" text="0" width="35"
    textAlign="right" id="lblMonday" />
    <mx:Label x="602" y="222" text="0" width="33"
    textAlign="right" id="lblTuesday"/>
    </mx:Canvas>
    </mx:Repeater>
    </mx:TabNavigator>

    try this and say me if it works fine!!!
    <html>
    <head>
    <script>
    function fileds() {
         var myParent = document.getElementById('myDiv');
         var text = document.createElement('input');
         text.setAttribute('id', 'myText');
         myParent.appendChild(text);
         document.all.myText.focus();
    </script>
    </head>
    <body>
    <input type="button" onClick="javascript:fileds()" value="Create And Give Focus">
    <br>
    <div id="myDiv"></div>
    </body>
    </html>
    bye

  • What do I use the "webapi" field for?

    When I choose "start point" I get an entry list with available fields in the data provider. What can I use the field "webapi" for?

    The Web API field is used to use functionality from a BW system, the so called Command URL (aka Web API):
    http://help.sap.com/saphelp_nw04/helpdata/en/b4/0fa239cec06b40e10000000a11402f/content.htm
    This functionality is deprecated in BI 7.0 (NW 04s), but can still be used. E.g. in such an example:
    How To Model SAP BI Hierarchies in Visual Composer
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/4155b345-0a01-0010-ac9f-b3b2c34e993c

  • DataProvider for each DataGridColumn

    Hi, all
    How can I give a dataProvider for each DataGridColumn?
    Because I have an arrayCollection with arrays and each array will
    be assigned to one dataGridColumn. But the problem is the value of
    dataField are the same for all columns, so at the end I only got
    the values from the last array for the whole dataGrid. By the way
    the number of columns depends on the length of the arrayCollection
    and it is dynamic.
    How can I write a custom DataGridColumn for it?
    Anybody got any ideas?
    Thank you very much.

    I'm pasting the code I used. That's the best I can do for
    you.
    First is the main application:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    private function mouseIn( event:MouseEvent ) : void
    trace("In: target="+event.target+";
    current="+event.currentTarget+"; related="+event.relatedObject);
    if( event.relatedObject == box.parent ) {
    b1.visible = true;
    b2.visible = true;
    private function mouseOut( event:MouseEvent ) : void
    trace("out: target="+event.target+";
    current="+event.currentTarget+"; related="+event.relatedObject);
    if( event.relatedObject == box.parent ) {
    b1.visible = false;
    b2.visible = false;
    [Bindable] private var dp:ArrayCollection = new
    ArrayCollection(
    [ [1,2,3,4], [10,20,30,40], [100,200,300,400] ]);
    ]]>
    </mx:Script>
    <mx:VBox id="box" x="43" y="45" width="300" height="185"
    horizontalAlign="center"
    mouseOver="mouseIn(event)"
    mouseOut="mouseOut(event)"
    backgroundColor="#804040" verticalAlign="middle">
    <mx:Button width="127" height="97" />
    <mx:Button label="Button 1" id="b1" visible="false"/>
    <mx:Button label="Button 2" id="b2" visible="false"/>
    </mx:VBox>
    <mx:DateChooser
    selectableRange="{{rangeStart : new Date(2000,0,1),rangeEnd
    : new Date()}}"
    id="dateChoose" showToday="false"/>
    <mx:DataGrid x="163" y="292" height="179" width="326"
    dataProvider="{dp}">
    <mx:columns>
    <mx:DataGridColumn headerText="Column 1" dataField="col1"
    itemRenderer="components.forums.ArrayItemRenderer"/>
    <mx:DataGridColumn headerText="Column 2" dataField="col2"
    itemRenderer="components.forums.ArrayItemRenderer"/>
    <mx:DataGridColumn headerText="Column 3" dataField="col3"
    itemRenderer="components.forums.ArrayItemRenderer"/>
    </mx:columns>
    </mx:DataGrid>
    </mx:Application>
    This is the item renderer code:
    package components.forums
    import mx.controls.Text;
    import mx.collections.ArrayCollection;
    import mx.controls.DataGrid;
    public class ArrayItemRenderer extends Text
    public function ArrayItemRenderer()
    super();
    override protected function
    updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
    super.updateDisplayList(unscaledWidth, unscaledHeight);
    if( data )
    var dp:ArrayCollection = (listData.owner as
    DataGrid).dataProvider as ArrayCollection;
    var colIndex:int = listData.columnIndex;
    var rowIndex:int = listData.rowIndex;
    var colArray:Array = dp.getItemAt(colIndex) as Array;
    text = String(colArray[rowIndex-1]);
    else text = "";
    ----------------------------

  • HT204053 The entire family has used one itunes account for years. How do we all set up separate iCloud accounts now?

    The entire family has used one itunes account for years. How do we all set up separate iCloud accounts now? Or should we? 5 macbooks, 2 ipads, 4 iphones, 2 itouch, 2 imacs.   How does one decide what to sync, share and what not to? Green Jeans.

    You need to start by understanding the distinction between iTunes and iCloud - Apple confuse the issue by referring to 'iTunes Match' as part of iCloud. It isn't.
    You don't have to have the same login (Apple ID) for iTunes and iCloud; many people don't and there's no problem about it.
    Your iCloud ID gets you email, calendars, contacts, iWork documents and PhotoStream syncing between devices.
    Your iTunes ID gets you the iTunes Store, the App Store for iOS, the Mac App Store for OSX,, 'iTunes in the Cloud' (downloading of purchased items to any logged-in device) and 'iTunes Match' (uploading of songs not purchased in the iTunes Store).
    Your family members can easily each get their own iCloud account to keep email etc. separate - in each case they will need a different non-Apple email address (a free one from Yahoo etc. would do) to set up the ID. If they are sharing a Mac they need to be using a separate user account.
    They can have their own iCloud accounts and still all sign into the same iTunes account: or they can open their own iTunes accounts using their new iCloud Apple IDs.
    BUT they cannot transfer items purchased under the present iTunes ID to different iTunes IDs.

  • If we have 3 iPhones, and use the same iTunes for all content, should we use 3 Apple IDs and authorize for all 3 or just use 1 ID?

    I want to enable us to share all apps, music, videos and photos, but enable each phone to keep its contacts and history separate. If I use 1 ID, all new purchases will go on the same credit card, which I'm not sure is ideal, but not horrible. Since we use the same computer and iTunes using only 1 appleID, and the phones are new to the equation since it was only iPods before, what is the best way to handle a family with 3 phones that can share all entertainment content, but not all phone-related stuff? I saw that you can use one AppleID for purchases, but another for iCloud. That may be the best solution, but I don't know enough about this yet to move forward yet- migrating from Android...
    Appreciate the help.

    Thanks for the help, but a follow up question now.
    My iPhone won't arrive for a little while, but my wife already got hers and she wants to set it up now. Using my Apple ID for the purchases, if she starts setting hers up, can she change her iCloud ID to something else quickly? It keeps telling us that we have to sign in with the AppleID first.
    Should we just set up an iCloud account via normal internet before trying all this via iPhone?

  • How to use one email adress for multiple recipients

    Hello,
    I'd like to know how to use one email adress for multiple recipients. 
    this would be very useful or projects. for example;
    if i send one mail to [email protected], all people in this project get an email.
    I will add the people in this project myself. 
    I know it is possible, but I don't know how to do it ;-)
    please help me! 

    Hope this help.
    _http://technet.microsoft.com/en-us/library/cc164331(v=exchg.65) .aspx

  • [SOLVED] how to use diffrent iptables rules for different ppp account?

    x86 plantform run arch linux system , have two network interface etn1 eth0 .eth1 connect to internet. eth0 connect to other terminals through switch. want use different iptables rules for different pppoe account .also want to know how to forbidden more than one terminals established pppoe link use same account at the same time .
    Last edited by linuxsir (2013-09-26 06:48:01)

    (You establish PPPoE sessions over the local network to the Arch machine? Which then routes the traffic?)
    first question ,yes that is exactly what i am done. second question i also have a small  scripts on windows pc to solve routes traffic problem
    route -p delete 0.0.0.0
    route -p add 192.168.9.0 mask 255.255.255.0 192.168.9.1
    route -p add 0.0.0.0 mask 0.0.0.0 192.168.22.0
    but after a while i found scripts is not necessary because windows always attempt to use PPPoE sessions as default internet connection local connection is also ok
    and use  -i pppX in my iptables rules dose not  solve my problem , because same account start PPPoE session could be marked as ppp0 or ppp1. it is hard to identified which account start session.

  • How do I change the icloud account on my iphone? I want to use the same account for all my apple devices (macbook air and imac and iphone). I can't see where I can amend the iphone account because it is in grey?

    I want to use the same account for all my apple devices (macbook air, imac and iphone). I can't see how I can amend the iphone account because it is in grey? I also can't remember the password for this account so i can't even delete it and start again?
    Help!
    Thanks

    Deleting an iCloud account only deletes it from the Device, not from iCloud.  In iOS 8, the name of this setting changed to "Sign Out" as that is a better reflection of what actually happens.  Your iCloud data remains on the server, available to devices still signed into the account, but the device you sign out of the account on is disconnected from the account, and as a result, the iCloud data from that account is removed from the device.  It will redownload to the device should you sign back into the account.
    The only issue you'll run into when you switch between accounts is with my photo stream photos older than 30 days.  When you delete (or sign out of) and account, your photo stream photos are deleted along with the other data from the account in question.  However, unlike other data which remains on the server and can redownload to your device when you sign back in, my photo stream photos only remain in iCloud for 30 days.  When you sign back in, you will only get back my photo stream photos added in the last 30 days (as older photos are no longer in iCloud to redownload).  Like other account data, any my photo stream photos on your other devices signed into the account are unaffected by this.  If you want to keep older my photo stream photos on your device as you change iCloud accounts, save them to your camera roll before deleting (signing out of) the account.

Maybe you are looking for

  • Error 1003 when running .exe

    I am having a problem with error 1003 when I run a built application.  I have searched the forums and found many others with this problem, but they encounter the problem while building the application, not while running the built .exe. I have a top l

  • How do I encrypt a folder for email

    I'd like to encrypt, ideally compress and encrypt a series of pdfs and mail them to a Windows person. I know stuffit does that but it is cumbersome and I have an old version. Any ideas on a modern utility - or using OSX

  • JTable Column Headers

    I want to create a JTable so that the table doesn't have any column headers. Right now I am using my own implementation of the AbstractTableModel Class for use with the tables, but if I leave out the public String getColumnName(int col) method, it ma

  • OutOfMemoryError immediately after starting SOA Server

    Hi, I have installed SOA suite 11.1.1.5 and weblogic 10.3.5 on my Windiws 7 64 bit machine with 8GB Ram. I have set the system variables to the following: EXTRA_JAVA_PROPERTIES: -Xms512m -Xmx512m path : C:\Program Files\Java\jre7\bin I have started W

  • Error message when trying to download bootcamp.

    The disk cannot be partitioned because some files cannot be moved.Back up the disk and use Disk Utility to format it as a single Mac OS Extended (Journaled) volume. I am unskilled in this matter and would like a bit of assistance. Not to sure what I