ComboBox inside datagrid

Hi All,
Let me start with this issue again, maybe someone else can
help me.
I have a comboBox inside a datagrid, preview here in this
group somebody
show me how to create an event in my datagrid to do my
calculations
automatic.
My problem is that after select an Item in the comboBox I
have to click
somewhere else to fire the event.
Anybody have an idea or sugestion in how to fix this???
I will include my code below... tks in advance.
JFB
public function setDataPrice(event:DataGridEvent):void{
if(event.dataField == "serviceItemID") {
// Disable copying data back to the control.
event.preventDefault();
var chosenItem:Object =
ComboBox(event.currentTarget.itemEditorInstance.dataService_cb).selectedItem;
var chosenId:int = chosenItem.id;
acData[data_dg.selectedIndex].serviceItemID =
Number(chosenId);
acData[data_dg.selectedIndex].price =
chosenItem.serviceItemPrice;
acData[data_dg.selectedIndex].rate1000 =
chosenItem.serviceItemRate;
acData.refresh();
// Close the cell editor.
data_dg.destroyItemEditor();
// Notify the list control to update its display.
data_dg.dataProvider.notifyItemUpdate(data_dg.editedItemRenderer);
if(event.dataField == "qty") {
if (event.currentTarget.itemEditorInstance.text != ""){
acData[data_dg.selectedIndex].qty =
Number(event.currentTarget.itemEditorInstance.text);
acData.refresh();
<mx:DataGrid id="price_dg"
itemEditEnd="calculateRateTotal(event)" x="10"
y="32" width="590" height="147" editable="true">
<mx:columns>
<mx:DataGridColumn headerText="Quantity" dataField="qty"
labelFunction="formatNumber"/>
<mx:DataGridColumn headerText="Rate Type" dataField="id"
rendererIsEditor="true" editorDataField="dummy"
width="120">
<mx:itemRenderer>
<mx:Component>
<mx:VBox>
<mx:ComboBox id="rate_cb"
dataProvider="{outerDocument.acRate}"
labelField="label" width="120"/>
</mx:VBox>
</mx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>

Anybody else can help me with this.
Tks
JFB
"JFB" <[email protected]> wrote in message
news:[email protected]...
> Hi All,
> Let me start with this issue again, maybe someone else
can help me.
> I have a comboBox inside a datagrid, preview here in
this group somebody
> show me how to create an event in my datagrid to do my
calculations
> automatic.
> My problem is that after select an Item in the comboBox
I have to click
> somewhere else to fire the event.
> Anybody have an idea or sugestion in how to fix this???
> I will include my code below... tks in advance.
>
> JFB
>
> public function setDataPrice(event:DataGridEvent):void{
> if(event.dataField == "serviceItemID") {
> // Disable copying data back to the control.
> event.preventDefault();
>
> var chosenItem:Object =
>
ComboBox(event.currentTarget.itemEditorInstance.dataService_cb).selectedItem;
> var chosenId:int = chosenItem.id;
>
> acData[data_dg.selectedIndex].serviceItemID =
> Number(chosenId);
> acData[data_dg.selectedIndex].price =
> chosenItem.serviceItemPrice;
> acData[data_dg.selectedIndex].rate1000 =
> chosenItem.serviceItemRate;
> acData.refresh();
> //
>
> // Close the cell editor.
> data_dg.destroyItemEditor();
>
> // Notify the list control to update its display.
>
>
data_dg.dataProvider.notifyItemUpdate(data_dg.editedItemRenderer);
> }
>
> if(event.dataField == "qty") {
> if (event.currentTarget.itemEditorInstance.text != ""){
> acData[data_dg.selectedIndex].qty =
> Number(event.currentTarget.itemEditorInstance.text);
> acData.refresh();
> }
> }
>
> }
>
> <mx:DataGrid id="price_dg"
itemEditEnd="calculateRateTotal(event)" x="10"
> y="32" width="590" height="147" editable="true">
> <mx:columns>
> <mx:DataGridColumn headerText="Quantity"
dataField="qty"
> labelFunction="formatNumber"/>
> <mx:DataGridColumn headerText="Rate Type"
dataField="id"
> rendererIsEditor="true" editorDataField="dummy"
width="120">
> <mx:itemRenderer>
> <mx:Component>
> <mx:VBox>
> <mx:ComboBox id="rate_cb"
dataProvider="{outerDocument.acRate}"
> labelField="label" width="120"/>
> </mx:VBox>
> </mx:Component>
> </mx:itemRenderer>
> </mx:DataGridColumn>
>

Similar Messages

  • ComboBox inside a datagrid

    Hi all,
    How can I put a comboBox inside a datagrid?
    I want to set the comboBox with their own dataprovider and
    the id should
    pass to the datagrid fill at the save time.
    I try this but doesnt let me to include a dataprovider.
    Any links??
    please help and thank you in advance.
    JFB
    <mx:DataGridColumn headerText="Rate" dataField="rate"
    editable="false">
    <mx:itemRenderer>
    <mx:Component>
    <mx:VBox>
    <mx:ComboBox id="rate_cb"></mx:ComboBox>
    </mx:VBox>
    </mx:Component>
    </mx:itemRenderer>
    </mx:DataGridColumn>

    Hi,
    I think you need to declared your array public at the
    begining of the page
    like
    [Bindable]
    public var dataArray = new ArrayCollection();
    You need to use outerDocument.
    <mx:ComboBox activate="true" labelField="TEXT"
    dataProvider="{outerDocument.dataArray}" />
    I discover that the components are case sensitive also.
    I hope this help.
    JFB
    "MLK_SS" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hi All,
    >
    > I am having a problem displaying data into a combo box
    inside a data grid.
    >
    > I am getting data from a webservice and storing the data
    into a Array
    > Collection variable and trying to pass the var as the
    data provider for
    > the
    > combo box.
    >
    > If I try an individual combo box it works fine.
    >
    > But, when trying to integrate into a datagrid it gives
    an error saying
    > Access
    > of undefined property. I tried using outerDocument as
    mentioned above, the
    > error doesnot show up but the output does not show up
    with the data inside
    > the
    > Data grid Combo box.
    >
    > <mx:DataGrid id="fav" x="10" y="332"
    headerColors="[#C3D3AA, #C3D3AA]"
    > enabled="true" editable="true"
    textDecoration="underline">
    > <mx:columns>
    > <mx:DataGridColumn width="120" headerWordWrap="true"
    > headerText="Fav./Del./ Copy/Edit" fontWeight="bold"
    editable="false"
    > dataTipField="Favourites" activate="true" >
    > <mx:itemRenderer>
    > <mx:Component>
    > <mx:VBox>
    > <mx:ComboBox activate="true" labelField="TEXT"
    > dataProvider="{dataArray}" />
    >
    > </mx:VBox>
    >
    > </mx:Component>
    > </mx:itemRenderer>
    > </mx:DataGridColumn>
    > </mx:columns>
    > </mx:DataGrid>
    >
    > the function that handles the data result is :
    >
    > public function handleResult(event:ResultEvent):void{
    >
    > dataArray = new ArrayCollection();
    >
    > tasktypeArray = new ArrayCollection();
    > var myXML:XML = new XML(event.result);
    > var kf:XMLList = myXML.child("WORKLIST");
    >
    > var tasktype:XMLList = myXML.child("TASKTYPE");
    > a = kf.item;
    > b= kf.item[0].TEXT;
    >
    > textarea1.text = myXML.toXMLString();
    > textarea3.text = myXML.child("TEMPLATE");
    > trace(kf.child("TEXT").length());
    > for (var x:int = 0; x < 25; x++) {
    > var resultObj:Object = new Object ();
    >
    > resultObj.TEXT
    > =tasktype.descendants("item")[x].TEXT.valueOf();
    > dataArray.addItem(resultObj);
    >
    > }
    >
    > Please let me know where I am going wrong
    >
    > Thanks,
    >
    >

  • Dynamic binding of a DataGridTemplateColumn with a ComboBox inside

    Hi all and thank you in advance.
    I wish you could help me 'cause I'm quite a newbye in this world (C# and WPF).
    I need to bind a ComboBox field inside a DataGrid with some data.
    The DataGrid is filled with a collection.
    I need that one or more data from one field (or more) of this collection is bound with data from another DataSet (and collection).
    I need this binding as DYNAMIC and not STATIC:
    if I add a record in the second collection I need this record is avaible in the other collection (DataGrid "collection" before)
    Any suggestion?
    Edit:
    obviously with "if I add" I mean:
    if I add one record in the table I need this record in the ComboBox content of the ComboBox field inside the DataGrid filled with the other collection...

    Ummm... obviously is not a word I would use there mate.
    It's Friday evening and been a tiring week but I'm a bit confused by your explanation.
    I'm guessing you're kind of OK with an observablecollection bound to itemssource of your datagrid.
    If not bind a.... ditto.
    Observablecollection tells you + and - to that collection but not properties.
    You have to implement inotifypropertychanged to do that.
    Then add some notification from your setters on each property.
    kinda like
    using GalaSoft.MvvmLight;
    namespace wpf1
    public class Class1 : ViewModelBase
    private int myVar;
    public int MyProperty
    get
    return myVar;
    set
    myVar = value;
    RaisePropertyChanged();
    Binding comboboxes in datagrids is tricky.
    You have several options.
    You mention datasets and collections.
    I'm going with collection here.
    The thing to realise about the wpf datagrid is datacontext.
    The datacontext of the row is an item in the collection the itemscollection is bound to.
    If you bind a collection of customer then it's in customer it looks for any binding.
    It has to use a bit of weird notation to get to the datacontext of the window.
    That's one route to your data.
    Another is to have an observable collection as a resource.
    http://social.technet.microsoft.com/wiki/contents/articles/26347.wpf-combobox-binding-in-datagrid.aspx
    http://social.technet.microsoft.com/wiki/contents/articles/26200.wpf-dynamicresource-observablecollection.aspx
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

  • Combobox in Datagrid

    How do I get the combobox that is a renderer in a datagrid's
    column to show the value that correlates to the datagrid's
    dataprovider data?
    Here is the XML for the dataProvider of the datagrid:
    <items>
    <item>
    <productnumber>1</productnumber>
    <color>red</color>
    <price>12.00</price>
    </item>
    <item>
    <productnumber>2</productnumber>
    <color>blue</color>
    <price>15.00</price>
    </item>
    <item>
    <productnumber>3</productnumber>
    <color>white</color>
    <price>10.00</price>
    </item>
    </items>
    Here is the XML of the dataProvider for the combobox:
    <colors>
    <color>black</color>
    <color>green</color>
    <color>blue</color>
    <color>yellow</color>
    <color>white</color>
    <color>red</color>
    <color>gray</color>
    </colors>
    So in other words, the datagrid will show a row for each
    <item>, and the column that shows <color> is a
    combobox, and I want the combobox to be showing the correct
    <color> in the list of <colors>. I do know that the
    datagrid column for the combobox is an itemRenderer, but how do I
    get the combobox to set the right <color> with the
    dataProvider=<colors> ?
    Can someone please give me an example or point me to one?
    Thanks.

    "happybrowndog" <[email protected]> wrote in
    message
    news:gchuu5$e5a$[email protected]..
    > How do I get the combobox that is a renderer in a
    datagrid's column to
    > show the
    > value that correlates to the datagrid's dataprovider
    data?
    http://shigeru-nakagaki.com/index.cfm/2007/8/22/20070822-ComboBox-for-DataGrid-ItemEditor

  • Unable to view ComboBox inside AdvancedDataGridColumn

    Hello,
    First I ahve to say that I am a beginner in Flex domain.
    I am trying to show options in combobox inside an AdvancedDataGridColumn. In total I have two columns. One is a regular data column and the other is a ComboBox. I am able to see the first column but not the combobox one. Below is the code snippet.
    I am not sure whats missing. Any help is really appreciated. I tried to lookup other examples but could not figureout whats missing.
    <mx:AdvancedDataGrid 
    id="assignmentDataGrid" alternatingItemColors="[#EEEEFF,#EEEEFF]" dataProvider="
    {filteredAvailableReports}" width="100%" rowCount="10">
    <mx:columns>
    <mx:AdvancedDataGridColumn id="reportName" headerText="Report Name" dataField="
    name" labelFunction="reportsListLabelFunction"/>
    <mx:AdvancedDataGridColumn id="ftpConnCol" headerText="FTP Options" editable="true" editorDataField="value">
    <mx:itemEditor>
    <mx:Component>
    <mx:ComboBox editable="true">
    <mx:dataProvider>
    <mx:ArrayCollection>
    <mx:String>User1</mx:String>
    <mx:String>User2</mx:String>
    <mx:String>User3</mx:String>
    <mx:String>User4</mx:String>
    </mx:ArrayCollection>
    </mx:dataProvider>
    </mx:ComboBox>
    </mx:Component>  
    </mx:itemEditor>
    </mx:AdvancedDataGridColumn>
    </mx:columns>
    </mx:AdvancedDataGrid>

    Check where you are generating to in your SSL properties. The chances are you are not generating to the SSL folder.

  • Combo Box inside dataGrid

    I have looked everywhere and I am having a hard time finding
    a good example of how to use a combo box in a datagrid. I want to
    use a dataprovider for my datagird but as soon as I get inside my
    itemRenderer it throws an error saying Access of undefined property
    model even though it is defined above. Can someone please help me.
    I may be way off??
    <mx:DataGrid x="10" y="10" width="840" height="120"
    dataProvider="{model.acProducts}">
    <mx:columns>
    <mx:DataGridColumn dataField="UPC Number">
    <mx:itemRenderer>
    <mx:Component>
    <mx:ComboBox
    dataProvider="{model.acProducts}"/>
    </mx:Component>
    </mx:itemRenderer>
    </mx:DataGridColumn>
    <mx:DataGridColumn dataField="proddesc"
    headerText="Product Name" />
    <mx:DataGridColumn headerText="Lot Number" />
    <mx:DataGridColumn headerText="Product Category" />
    <mx:DataGridColumn headerText="EPA" />
    <mx:DataGridColumn headerText="AE Count">
    <mx:itemRenderer>
    <mx:Component>
    <mx:HBox horizontalAlign="center">
    <mx:Script>
    <![CDATA[
    [Bindable]
    public var selected:Boolean;
    ]]>
    </mx:Script>
    <mx:CheckBox id="displayCheckBox" click="selected =
    displayCheckBox.selected"/>
    </mx:HBox>
    </mx:Component>
    </mx:itemRenderer>
    </mx:DataGridColumn>
    </mx:columns>
    </mx:DataGrid>

    i got it. Heres the code for everyone who is wondering
    <mx:DataGrid x="10" y="10" width="840" height="120"
    dataProvider="{model.acProducts}" ro>
    <mx:columns>
    <mx:DataGridColumn dataField="UPC Number">
    <mx:itemRenderer>
    <mx:Component>
    <mx:HBox>
    <mx:Script>
    <![CDATA[
    import
    com.serg.reportingTool.model.SergReportingToolModelLocator;
    [Bindable] private var model:SergReportingToolModelLocator =
    SergReportingToolModelLocator.getInstance();
    ]]>
    </mx:Script>
    <mx:ComboBox
    id="occurenceCode"
    labelField="OccurrenceCode"
    dataProvider="{model.acOccurrences}"
    />
    </mx:HBox>
    </mx:Component>
    </mx:itemRenderer>
    </mx:DataGridColumn>
    <mx:DataGridColumn dataField="proddesc"
    headerText="Product Name" />
    <mx:DataGridColumn headerText="Lot Number" />
    <mx:DataGridColumn headerText="Product Category" />
    <mx:DataGridColumn headerText="EPA" />
    <mx:DataGridColumn headerText="AE Count">
    <mx:itemRenderer>
    <mx:Component>
    <mx:HBox horizontalAlign="center">
    <mx:Script>
    <![CDATA[
    [Bindable]
    public var selected:Boolean;
    ]]>
    </mx:Script>
    <mx:CheckBox id="displayCheckBox" click="selected =
    displayCheckBox.selected"/>
    </mx:HBox>
    </mx:Component>
    </mx:itemRenderer>
    </mx:DataGridColumn>
    </mx:columns>
    </mx:DataGrid>

  • Problem In Rendreing combobox in DataGrid

    Hi
         i am making a datagrid in which i am rendring a combobox and data provider of my data grid is xml type.The real trick is getting the XML file to be updated when changes to the itemRenderer(combobox) occurred.i am unable to reflect the changes on itemRendrer(combox) from updated xml dynamically.
    can any body guides me how to implement that feature.
    Thanks and regards
       Vineet Osho 

    hi
         i am attaching the code.it will updating the xml.on runtime i just want how to update the combobox when call the service again.for this i need id of combobx.so my problem is that i cant access my rendrer(combobox) from this.
    <root>
    <data>
      <expirationdate>10/13/2010</expirationdate>
      <ldfID>4292</ldfID>
      <effectivedate>10/13/2009</effectivedate>
      <customerpolicyID>1018</customerpolicyID>
      <priorcarriername>m</priorcarriername>
      <lastupdatetimestamp>02/11/2011</lastupdatetimestamp>
      <lossevaluationdate>10/13/2006</lossevaluationdate>
      <lastupdateuserID>13</lastupdateuserID>
      <noopen>no</noopen>
    </data>
    <data>
      <expirationdate>10/13/2009</expirationdate>
      <ldfID>4293</ldfID>
      <effectivedate>10/13/2008</effectivedate>
      <customerpolicyID>1018</customerpolicyID>
      <priorcarriername>m</priorcarriername>
      <lastupdatetimestamp>02/11/2011</lastupdatetimestamp>
      <lossevaluationdate>10/13/2006</lossevaluationdate>
      <lastupdateuserID>13</lastupdateuserID>
      <noopen>yes</noopen>
    </data>
    <data>
      <expirationdate>10/13/2008</expirationdate>
      <ldfID>4294</ldfID>
      <effectivedate>10/13/2007</effectivedate>
      <customerpolicyID>1018</customerpolicyID>
      <priorcarriername>m</priorcarriername>
      <lastupdatetimestamp>02/11/2011</lastupdatetimestamp>
      <lossevaluationdate>10/13/2006</lossevaluationdate>
      <lastupdateuserID>13</lastupdateuserID>
      <noopen>yes</noopen>
    </data>
    <data>
      <expirationdate>10/13/2007</expirationdate>
      <ldfID>4295</ldfID>
      <effectivedate>10/13/2006</effectivedate>
      <customerpolicyID>1018</customerpolicyID>
      <priorcarriername>m</priorcarriername>
      <lastupdatetimestamp>02/11/2011</lastupdatetimestamp>
      <lossevaluationdate>10/13/2006</lossevaluationdate>
      <lastupdateuserID>13</lastupdateuserID>
      <noopen>no</noopen>
    </data>
    <data>
      <expirationdate>10/13/2006</expirationdate>
      <ldfID>4296</ldfID>
      <effectivedate>10/13/2005</effectivedate>
      <customerpolicyID>1018</customerpolicyID>
      <priorcarriername>m</priorcarriername>
      <lastupdatetimestamp>02/11/2011</lastupdatetimestamp>
      <lossevaluationdate>10/13/2006</lossevaluationdate>
      <lastupdateuserID>13</lastupdateuserID>
      <noopen>yes</noopen>
    </data>
    </root>
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
                   creationComplete="init()" xmlns:local="*">
            <mx:DataGrid id="dgTest" editable="true"  y = "30"
                dataProvider = "{gridData.data}" width = "100%">
                <mx:columns>
                    <mx:DataGridColumn dataField = "lastupdateuserID" width = "80" headerText = "first"
                        sortable="false">
                        <mx:itemRenderer>
                            <fx:Component>
                                <mx:TextInput  width = "100"/>
                            </fx:Component>
                        </mx:itemRenderer>
                    </mx:DataGridColumn>
                    <mx:DataGridColumn  width = "80" headerText = "second" editable="false">
                        <mx:itemRenderer>
                            <fx:Component>
                                <mx:Box>
                                    <fx:Script>
                                        <![CDATA[
                                            import mx.controls.Alert;
                                            public function populateArray(str:String):void{
                                                outerDocument.arrTemp[outerDocument.dgTest.selectedIndex] = str;
                                                outerDocument.xmlGenrate();
                                            public function onCreate():void{
                                                cmbChange.dataProvider = outerDocument.xml.node;
                                        ]]>
                                    </fx:Script>
                                    <mx:ComboBox  id="cmbChange" height="50%" width="50%"
                                        creationComplete="onCreate()"
                                          change="populateArray(cmbChange.selectedItem+'')">
                                    </mx:ComboBox>
                                </mx:Box>
                            </fx:Component>
                        </mx:itemRenderer>
                    </mx:DataGridColumn>
                </mx:columns>
            </mx:DataGrid> 
        <s:Button id="btnSave" label="Save" click="test()"/>
        <fx:Declarations>
            <s:HTTPService id="httpTest" resultFormat="e4x" result="resulthandler(event)" fault=";"/>
        </fx:Declarations>
        <fx:Script>
            <![CDATA[
                import mx.collections.ArrayCollection;
                import mx.events.ChildExistenceChangedEvent;
                import mx.controls.Alert;
                import mx.controls.CheckBox;
                import mx.events.ListEvent;
                import mx.rpc.events.ResultEvent;
                import mx.utils.ObjectUtil;
                import spark.components.ComboBox;
                import spark.components.TextInput;
                import spark.components.supportClasses.ItemRenderer;
                [Bindable]
                public var xml:XML = new XML(<root>
                                        <node>yes</node>
                                        <node>no</node>
                                        </root>);
                [Bindable]
                public var arrTemp:Array =[];
                private var req_XML:XML;
                [Bindable]
                private var gridData:XML;
                private function endHandler(ev:DataEvent):void{
                    Alert.show("Hello");
                public function xmlGenrate():void{
                    var obj:XML = gridData;
                    var temp:XMLList = obj.data.children();
                        var i :int = 0;
                        for(var a:int=0;a < temp.length(); a++){
                            var str1:String = temp[a].localName();
                                var str:XML=createXml(i);
                                if(str1 == 'noopen'){
                                    delete gridData.data.noopen[i];
                                    gridData.data[i].insertChildAfter(gridData.data.lastupdateuserID[i],str);
                                    if(i==gridData.data.length()-1){
                                        return ;
                                    else{
                                        i++;
                                if(obj.data[i].toString().indexOf('noopen')==-1){
                                    gridData.data[i].insertChildAfter(gridData.data.lastupdateuserID[i],str);
                                    if(i==gridData.data.length()-1){
                                        return ;
                                    else{
                                        i++;
                private function createXml(i:int):XML{
                    if(arrTemp[i] == 'null'){
                        req_XML = <noopen></noopen>;
                    else{
                        req_XML = <noopen>{arrTemp[i].toString()}</noopen>;
                    return req_XML;
                private function init():void{
                    httpTest.url = 'data.xml';
                    httpTest.send();
                private function resulthandler(ev:ResultEvent):void{
                    gridData = ev.result as XML;
                    for(var i:int =0;i<gridData.data.length();i++){
                        arrTemp[i] = gridData.data[i].noopen;
                public function test():void{
                    Alert.show(gridData.data+'');
            ]]>
        </fx:Script>
    </s:Application>

  • Combobox as Datagrid Item editor

    Hi there, i'm trying to use a combobox as an itemEditor for a datagridcolumn, and i'm having some difficulties in doing this.
    I'm using the code below to define the column, so far so good the itemeditor appears and selects the item accordingly to the value of the datafield.
    My problem is, if I open the combobox and do not choose none of the items, the value that passes to the datagrid is 0, but i want to pass the old value. So that the value remains the same.
    the dataprodiver for the combobox is this one (rows from database)
    id description
    1     xxxxx
    2     yyyyy
    the datafield banda_horaria_id holds an integer witch match one of the values above.
    Can anyone help me, and tell me what should i do to maintain the value if none of the combobox items is selected.
    Thanks in advance.
    PlumbSoldier
    <mx:DataGridColumn headerText="Banda Horária" dataField="banda_horaria_id" id="bandaHoraria"
                            rendererIsEditor="false" editorDataField="selectedItem" >
                            <mx:itemEditor>
                                <mx:Component>
                                    <mx:ComboBox initialize="outerDocument.cbBandaHoraria(event)"
                                            fontWeight="normal" labelField="descricao"  >
                                        <mx:Script>
                                            <![CDATA[
                                            import mx.controls.DataGrid;
                                            private var columnDataField:String;
                                            private var dtGrid:DataGrid;
                                                 override public function set data(value:Object):void
                                                    dtGrid=listData.owner as DataGrid;
                                                    columnDataField=dtGrid.columns[listData.columnIndex].dataField;
                                                    super.data = value;
                                                    if (value != null)
                                                        var len:int = this.dataProvider.length;
                                                        for (var i:int = 0; i < len; i++)
                                                            if (this.dataProvider[i].id == value[columnDataField])
                                                                this.selectedIndex = i;
                                                                break;
                                                public function onChange():void
                                                    var index:int = this.selectedIndex;
                                                    if (index !=-1){
                                                    id = this.dataProvider[index].id;
                                                    }  else{
                                                        var len:int = this.dataProvider.length;
                                                        for (var i:int = 0; i < len; i++)
                                                            if (this.dataProvider[i].id == data[columnDataField])
                                                                this.selectedIndex = i;
                                                                break;
                                            ]]>
                                        </mx:Script>
                                    </mx:ComboBox>
                                </mx:Component>
                            </mx:itemEditor>
                        </mx:DataGridColumn>

    Thanks for your help rgadiparthi , but that didn't helped me.
    But i managed to solve my problem.

  • Help with Comboboxes inside a repeater

    Hi, I have a problem that I really need some help, if anyone knows how to do it.
    I have to make in flex a dynamic form that has X questions and each question can be answered 3 times by sellecting Y options in a combobox. As you can Imagine the number of questions and answers can change.
    Something like this:
    QUESTION                          FIRST ANSWER   2nd ANSWER      3rd ANSWER
    1- Which option do you like?  Combobox: A      Combobox: C        CB: A
    2- Second Question?             Combobox: B      Combobox: C        CB: D
    3- Third Question?                 Combobox: A      Combobox: Blank  CB: B
    (CB: means Combobox - I just made it shorter so it could fit the window)
    I managed to correctly using a repeater show all the questions and each combobox has all the right options inside. All I want now is to get the data from those comboboxes.
    This is a Simplified code (I removed all the non-essencial stuff) so you can get an idea:
    <mx:Repeater id="rp">
    <mx:VBox label="{rp.currentItem.nome}"
    width="100%">
    <mx:Repeater id="qt"
    dataProvider="{rp.currentItem.tbdavaliacao_pergunta}">
    <mx:HBox width="100%"
    verticalAlign="middle"
    horizontalAlign="center">
    <!-- This is the question text -->
    <mx:Text text="{String(qt.currentItem.nome)}"
    textAlign="center"/>
    <!-- Next, are the 3 comboboxes that are repeated X times -->
                                            <mx:ComboBox dataProvider="{grau}"
                                                           id="auto"
                                                           textAlign="center">
                                             </mx:ComboBox>
                                            <mx:ComboBox dataProvider="{grau}"
                                                           id="superior"
                                                           textAlign="center">
                                            </mx:ComboBox>
                                            <mx:ComboBox dataProvider="{grau}"
                                                           id="resultado"
                                                           textAlign="center">
                                            </mx:ComboBox>
    </mx:HBox>
    </mx:Repeater>
    </mx:VBox>
    </mx:Repeater>
    Anyone has an idea of how can I get all the answers from all my dynamic comboboxes?
    The perfect AND ideal solution would be having X Dynamic objects with the question id + the combobox id storing the answer sellected.
    So I would know that the question 32 has the answers A, B and A for an example.
    qt.currentitem.id + combobox.id = selectedLabel
    (question ID) + (combobox id) = (selectedLabel)
    32auto = 'A'
    32superior = 'B'
    32resultado = 'A'
    Or just one arraycollection with all the answers...
    At this point, I would accept any answer or idea or sollution...
    Thanks a lot!!

    I've looked at the HR schema to provide an example
    From the EMPLOYEES table I would like to return the EMPLOYEE_IDs of the employees with the highest SALARY per JOB_ID. When considering the employees that have the same JOB_ID, if any of the employees have a MANAGER_ID of x then no employee is returned for that group of employees with the same JOB_ID. x will be passed in as a parameter to my procedure.
    Example
    MANAGER_ID of 99 passed in
    All of the EMPLOYEE_IDs with the max SALARY per JOB_ID returned - no one has a manager with MANAGER_ID of 99
    MANAGER_ID of 101 passed in
    101 returned - Neena has the max salary of all the AD_VPs and neither of the AD_VPs has a MANAGER_ID of 101 (ok I know this isn't true about the salary!)
    102 returned - Alexander has the max salary of all IT_PROGs and none of them has MANAGER_ID of 101
    (108 not returned as Nancy has MANAGER_ID of 101)
    109 returned - Daniel has the max salary of all the FI_ACCOUNTs and none of them has MANAGER_ID of 101
    etc... for all JOB_IDs
    MANAGER_ID of 102 passed in
    101 returned - Neena has the max salary of all the AD_VPs and neither of the AD_VPs has a MANAGER_ID of 102 (ok I know this isn't true about the salary!)
    (no IT_PROGs returned as Alexander has MANAGER_ID of 102)
    108 returned - Nancy has max SALARY and not a MANAGER_ID of 102
    109 returned - Daniel has the max salary of all the FI_ACCOUNTs and none of them has MANAGER_ID of 102
    etc... for all JOB_IDs
    MANAGER_ID of 103 passed in
    101 returned - Neena has the max salary of all the AD_VPs and neither of the AD_VPs has a MANAGER_ID of 103 (ok I know this isn't true about the salary!)
    (no IT_PROGs returned as several have MANAGER_ID of 103)
    108 returned - Nancy has max SALARY and not a MANAGER_ID of 103
    109 returned - Daniel has the max salary of all the FI_ACCOUNTs and none of them has MANAGER_ID of 103
    etc... for all JOB_IDs
    Hope this helps to explain things, and thanks to anyone that can help
    Rob

  • Combobox in Datagrid with different values

    Hi All,
    I have a datagrid. One of the columns in the datagrid is set
    to display a combobox as the ItemRenderer. Now, the data for the
    combobox is different for each row. How do I set up the data
    provider for the combobox in such a scenario.
    For example : I have a collection of Shirt objects.
    public class Shirt {
    public String id;
    public String type;
    public String[] color; //this is an array
    This should be displayed in the datagrid, with the Color
    column rendered as a combobox. The colors will be different for
    each shirt.
    Thanks
    CS

    Yes. Some more detail:
    in the function,
    override public function set data(value:Object): void {
    the "value" parameter will contain a refernce to an entire
    "Shirt" instance.
    So you can assign the comboBox.dataProvider=value.color;
    Now, It is more complicated than this, because you will want
    the combobox to show the correct value for each row, right?
    For this to happen, you will need a selectedColor property on
    Shirt. When the user chooses a color, you will need to update this
    property with the selection.
    Next, your renderer must read the value of selectedColor and
    set the comboBox.selectedIndex.
    If selectedColor contains the *index* of the color then you
    have it easy. If it contains the color name itself, then you will
    have to for-loop over the color array until yom match the
    selectedColor. then you will have the index and can set
    selectedIndex.
    ComboBox does not support setting the value directly. It is
    pretty easy to extend combo to do this. There are several examples
    out there. I posted a link to one on CFLEX.net
    Tracy

  • Inbuilt Item Rendering inside DataGrid .

    Hi ,
    Please find the screen shot attached with this Thread .
    The data is been populated into the Datagrid from DataBase using ArrayCollection as DataProvider .
    Now i want to have Radio Buttons displayed at the begning of the each row of Names Column .
    When i tried to use , inbuilt itemRenderer as mx.controls.RadioButton ,  inside DataGridColumn  of 'Names' Column of DataGrid   , the Data appeared in such a way that all the Data inside the Names Column is repalced by showing only RadioButtons .
    Please tell me if this is possible using Inbuilt Item Rendering itself??(As Custom Rendering seems tough for me rigjt now )
    Or suggest me an easy approach , basically my requirement  is that i want to get the Selected Value Object into a function for doing Upadate and Delete facility .
    Please help
    Thanks in advance .

    Thanks for the reply , sorry for th
    late reply as i dont have Flex at my Work place .
    This is my code :
                <mx:DataGrid  id="MyDG" height="100%" width="100%"
                     dataProvider="{flightList}" change="GetTheValue()">
                <mx:columns>
                    <mx:DataGridColumn headerText="Names" dataField="uname">
            <mx:itemRenderer>
    mx.controls.RadioButton
    </mx:itemRenderer>
                    </mx:DataGridColumn>
    <mx:DataGridColumn headerText="Pwds" dataField="pass" >
                    </mx:DataGridColumn>
                </mx:columns>
                            </mx:DataGrid>
    This is the screen shot earlier and now afeter adding Item Rendering , Any help .
    Please find the screen shots attached

  • Can we have a dataGrid inside dataGrid

    This is my code...
    <netui-data:dataGrid dataSource="pageInput.accountGroup" name="accountDetail" tagId="accountDetail" style="display:none;" width="100%" cellSpacing="0" cellPadding="0" style="color:#333333;" >
                   <netui-data:configurePager disableDefaultPager="true" defaultPageSize="${pageScope.size}" />
                   <netui-data:header >
                   <netui-data:row styleClass="header">
                        <netui-data:templateCell > </netui-data:templateCell >
                        <netui-data:templateCell >Account Group</netui-data:templateCell >
                        <netui-data:templateCell >Account Name</netui-data:templateCell >
                        <netui-data:templateCell >Bank/State ID</netui-data:templateCell >
                        <netui-data:templateCell >Account/Obligor Number</netui-data:templateCell >
                   </netui-data:row>
                        <netui-data:row ><netui-data:templateCell > </netui-data:templateCell ></netui-data:row>
                   </netui-data:header>
                   <netui-data:rows tagId="account" style="background-color:#EEEEEE;">
                   <netui-data:row >
                        <netui-data:imageCell style="cursor:hand;" src="plus.gif" tagId="plus" onclick="displayRows(this)" ></netui-data:imageCell>
                        <netui-data:templateCell >${container.item}</netui-data:templateCell>
                   </netui-data:row>
                   <netui-data:row >
                        <netui-data:templateCell >
                             <netui-data:dataGrid name="accountDetail" dataSource="pageScope.accList" tagId="accountDetail" >
                                  <netui-data:rows >
                                            <netui-data:templateCell > </netui-data:templateCell >
                                            <netui-data:templateCell > </netui-data:templateCell >     
                                            <netui-data:spanCell cellTagId="accountName" value="${container.item.accountName}"></netui-data:spanCell >
                                            <netui-data:spanCell cellTagId="bankId" value="${container.item.bankID}"></netui-data:spanCell >
                                            <netui-data:spanCell cellTagId="accountNumber" value="${container.item.accountNumber}"></netui-data:spanCell >
                                  </netui-data:rows>
                             </netui-data:dataGrid>
                        </netui-data:templateCell>
                   </netui-data:row>
                   </netui-data:rows>
              </netui-data:dataGrid>
    And i am getting this error....................
    javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.servlet.jsp.JspException: Unable to find a dataGridModel in the JspContext
         at weblogic.servlet.jsp.PageContextImpl.handlePageException(PageContextImpl.java:420)
         at jsp_servlet._portlets._accountgroups.__accountgorupmain._jspService(__accountgorupmain.java:317)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at org.apache.beehive.netui.pageflow.PageFlowPageFilter.runPage(PageFlowPageFilter.java:385)
         at org.apache.beehive.netui.pageflow.PageFlowPageFilter.doFilter(PageFlowPageFilter.java:284)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:526)
         at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:454)
         at org.apache.beehive.netui.pageflow.scoping.internal.ScopedRequestDispatcher.include(ScopedRequestDispatcher.java:119)
         at com.bea.netuix.servlets.controls.content.JspContent.beginRender(JspContent.java:551)
         at com.bea.netuix.servlets.controls.content.NetuiContent.beginRender(NetuiContent.java:363)
         at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:483)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:375)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:341)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:332)
         at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:306)
         at com.bea.netuix.nf.UIControl.render(UIControl.java:578)
         at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:482)
         at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:146)
         at com.bea.netuix.servlets.jsp.taglib.RenderChild.doStartTag(RenderChild.java:62)
         at jsp_servlet._framework._skeletons._default.__flowlayout._jspService(__flowlayout.java:285)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:528)
         at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:454)
         at com.bea.netuix.servlets.controls.application.laf.JspTools.renderJsp(JspTools.java:123)
         at com.bea.netuix.servlets.controls.application.laf.JspControlRenderer.beginRender(JspControlRenderer.java:72)
         at com.bea.netuix.servlets.controls.application.laf.PresentationControlRenderer.beginRender(PresentationControlRenderer.java:65)
         at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:479)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:375)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:341)
         at com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:188)
         at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:148)
         at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:377)
         at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:253)
         at com.bea.netuix.servlets.manager.UIServlet.doGet(UIServlet.java:206)
         at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:191)
         at com.bea.netuix.servlets.manager.SingleFileServlet.service(SingleFileServlet.java:266)
         at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:656)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at com.bea.portal.tools.servlet.http.HttpContextFilter.doFilter(HttpContextFilter.java:60)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:315)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3393)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    Caused by: javax.servlet.jsp.JspException: javax.servlet.jsp.JspException: Unable to find a dataGridModel in the JspContext
         at jsp_servlet._portlets._accountgroups.__accountgorupmain$JspFragmentHelper.invoke(__accountgorupmain.java:835)
         at org.apache.beehive.netui.tags.databinding.datagrid.Rows.doTag(Rows.java:438)
         at jsp_servlet._portlets._accountgroups.__accountgorupmain$JspFragmentHelper.invoke1(__accountgorupmain.java:439)
         at jsp_servlet._portlets._accountgroups.__accountgorupmain$JspFragmentHelper.invoke(__accountgorupmain.java:775)
         at org.apache.beehive.netui.tags.databinding.datagrid.DataGrid.doTag(DataGrid.java:884)
         at jsp_servlet._portlets._accountgroups.__accountgorupmain._jspService(__accountgorupmain.java:286)
         ... 81 more
    Caused by: javax.servlet.jsp.JspException: Unable to find a dataGridModel in the JspContext
         at org.apache.beehive.netui.tags.databinding.datagrid.Row.doTag(Row.java:349)
         at jsp_servlet._portlets._accountgroups.__accountgorupmain$JspFragmentHelper.invoke3(__accountgorupmain.java:486)
         at jsp_servlet._portlets._accountgroups.__accountgorupmain$JspFragmentHelper.invoke(__accountgorupmain.java:781)
         ... 86 more
    Caused by:
    javax.servlet.jsp.JspException: javax.servlet.jsp.JspException: Unable to find a dataGridModel in the JspContext
         at jsp_servlet._portlets._accountgroups.__accountgorupmain$JspFragmentHelper.invoke(__accountgorupmain.java:835)
         at org.apache.beehive.netui.tags.databinding.datagrid.Rows.doTag(Rows.java:438)
         at jsp_servlet._portlets._accountgroups.__accountgorupmain$JspFragmentHelper.invoke1(__accountgorupmain.java:439)
         at jsp_servlet._portlets._accountgroups.__accountgorupmain$JspFragmentHelper.invoke(__accountgorupmain.java:775)
         at org.apache.beehive.netui.tags.databinding.datagrid.DataGrid.doTag(DataGrid.java:884)
         at jsp_servlet._portlets._accountgroups.__accountgorupmain._jspService(__accountgorupmain.java:286)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at org.apache.beehive.netui.pageflow.PageFlowPageFilter.runPage(PageFlowPageFilter.java:385)
         at org.apache.beehive.netui.pageflow.PageFlowPageFilter.doFilter(PageFlowPageFilter.java:284)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:526)
         at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:454)
         at org.apache.beehive.netui.pageflow.scoping.internal.ScopedRequestDispatcher.include(ScopedRequestDispatcher.java:119)
         at com.bea.netuix.servlets.controls.content.JspContent.beginRender(JspContent.java:551)
         at com.bea.netuix.servlets.controls.content.NetuiContent.beginRender(NetuiContent.java:363)
         at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:483)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:375)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:341)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:332)
         at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:306)
         at com.bea.netuix.nf.UIControl.render(UIControl.java:578)
         at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:482)
         at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:146)
         at com.bea.netuix.servlets.jsp.taglib.RenderChild.doStartTag(RenderChild.java:62)
         at jsp_servlet._framework._skeletons._default.__flowlayout._jspService(__flowlayout.java:285)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:528)
         at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:454)
         at com.bea.netuix.servlets.controls.application.laf.JspTools.renderJsp(JspTools.java:123)
         at com.bea.netuix.servlets.controls.application.laf.JspControlRenderer.beginRender(JspControlRenderer.java:72)
         at com.bea.netuix.servlets.controls.application.laf.PresentationControlRenderer.beginRender(PresentationControlRenderer.java:65)
         at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:479)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:375)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:341)
         at com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:188)
         at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:148)
         at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:377)
         at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:253)
         at com.bea.netuix.servlets.manager.UIServlet.doGet(UIServlet.java:206)
         at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:191)
         at com.bea.netuix.servlets.manager.SingleFileServlet.service(SingleFileServlet.java:266)
         at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:656)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at com.bea.portal.tools.servlet.http.HttpContextFilter.doFilter(HttpContextFilter.java:60)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:315)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3393)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    Caused by: javax.servlet.jsp.JspException: Unable to find a dataGridModel in the JspContext
         at org.apache.beehive.netui.tags.databinding.datagrid.Row.doTag(Row.java:349)
         at jsp_servlet._portlets._accountgroups.__accountgorupmain$JspFragmentHelper.invoke3(__accountgorupmain.java:486)
         at jsp_servlet._portlets._accountgroups.__accountgorupmain$JspFragmentHelper.invoke(__accountgorupmain.java:781)
         ... 86 more
    Can anyone plz help me...

    Thanks for the reply.
    Encephalopathic wrote:
    nirvan wrote:
    When I run the application, I see no tabs and only JPanel2 is loaded.
    Then you've got a bug, but where it's impossible to guess. I recommend that you show us the smallest compilable > program possible that demonstrates your problem, an [SSCCE.|http://sscce.org] Please click on the link to see > how to create this. Best of luck.
    Intially, I just wanted to be sure whether the containment hierarchy is allowed or not. Hence I didn't post SSCCE. Anyways, you were right that there was a simple bug in the program. I have resolved it.
    regards,
    nirvan

  • ComboBox inside an ItemRenderer keeps going back to initial selectedIndex

    Hi,
         Thanks for taking a minute to help me solve this problem. I have the following component, what I want to do, is to save the selectedIndex on the data.selectedIndice variable. I have no trouble with that. The variable saves the correct new selected Index number, but the problem is that, for instance, if the initial selectedIndex was 0, and the user selects the third item of the ComboBox, the ComboBox will go back to selecting the 0 index (the new one was 3) even though that the seleccion.selectedIndex shows that 3 is selected (that's why data.selectedIndice saves 3)
    <mx:HorizontalList
            bottom="0"
            backgroundAlpha="0.0"
            id="catalogoOpciones"
            columnCount="3"
            height="80"
            hideEffect="{esconderse}"
            horizontalScrollPolicy="on"
            selectable="false"
            showEffect="{mostrarse}"
            width="100%">
            <mx:itemRenderer>
               <mx:Component>
                   <mx:VBox  height="100%" verticalGap="0" horizontalAlign="center" creationComplete="init()">
                       <mx:Label id="titulo" text="{data.nombre}"  textAlign="center" styleName="nombreOpcionDetallePlato" />
                       <mx:ComboBox id="seleccion" dataProvider="{data.opciones}" labelField="label"                          labelFunction="funcionLabelComboBox"  styleName="comboOpcionDetallePlato" change="changeHandler(event)" />
                        <mx:Script>
                            <![CDATA[
                                import menucomponents.clases.OpcionesEvent;
                                import mx.events.ListEvent;
                                import mx.controls.Alert;                                                       
                                public function init():void {
                                public function changeHandler(event:ListEvent):void {        
                                       Alert.show(seleccion.selectedIndex.toString);               //this shows the correct new index selected                                                             data.selectedIndice = seleccion.selectedIndex;               //at the beginning data.selectedIndice was 0, and when I                                                                                                                          change the selectedIdex, data.selectedIndice saves  1                             }                                                                                             correct value, but the ComboBox shows on the screen that                                                                                                                          the selected item is the first one (index 0) and not the                                                                                                                          second one (index 1) AS IT'S SUPPOSED TO                           
                                public function funcionLabelComboBox(item:Object):String {
                                        return item.label + ", $" + item.precio;
                            ]]>
                        </mx:Script>
                    </mx:VBox>               
                </mx:Component>
           </mx:itemRenderer>
        </mx:HorizontalList>
    Thanks for the help
    Sebastián Toro O

    selectedIndice is public. What's funny is that if I don't use the selectedIndex="{data.selectedIndice}" and I comment the line:
    data.selectedIndice = seleccion.selectedIndex
    Then the CombBox works just fine. It doesn't go back to the initial selectedIndex. I´m going to solve this using Events and an external Array (Array.length = ComboBox.dataProvider.length) to save the selectedIndex, it's a very un-elegant solution but i think it's going to work. Also I might add, that if I send an Event and catch it outside the List, and try to modify the data.selectedIndice, from the particular ComboBox that I changed, the ComboBox still changes automatically it's selectedIndex.
    Thanks for your help.
    If some day you think how to solve this, I would really appreciate if you post it here.
    Sebastián Toro O.

  • Move focus from one to another itemRenderer inside DataGrid itemRenderer

    I have a mx: DataGrid with 4 columns that have a itemRenderer with the following settings:
    - Mx:DataGrid:
    <code>
    <mx:DataGrid id="itensPedidoCompraList"
          width="100%"
    height="120"   
    dataProvider="{ model.pedidoCompra.itens }"
    editable="true"
    itemEditEnd="itensPedidoCompraList_itemEditEndHandler(event)">
    </code>
    - Mx:DataGridColumn:
    <code>
    <mx:DataGridColumn headerText="{resourceManager.getString('cadastroPedidoCompra', 'ident.PercentualDesconto') }"
                       width="60"
                       textAlign="right"
                       rendererIsEditor="true"
                                          editorDataField="data">
          <mx:itemRenderer>
                     <fx:Component>
                           <mx:Canvas>
                                     <input:NumberInput width="55"                                                                number="@{ data.percentualDesconto }"/>
                           </mx:Canvas>
                </fx:Component>
          </mx:itemRenderer>
      </mx:DataGridColumn>
    </code>
    The user clicks on the line of the grid and click on the column to edit.
    After him change or add value, ENTER key and have to move the focus to another column in the same line.
    The way I'm doing, is moving to the column below.
    What is the best way to do to move to the right column?
    thank you

    Try adding a capture phase event listener to DataGrid for keyDown and changing the key from ENTER to TAB

  • CheckBox inside DataGrid

    I create a data grid with check boxes inside the cells of a certain column named "CheckColumn".
    In the class that implements the ICellRenderer are the code:
    public class CheckCellClass extends CheckBox implements ICellRenderer {
         .... stufffs....
         .... stufffs....
         public function set data(d:Object):void {
                _data = d;
                _selected = _data["CheckColumn"];
                label = "";
    PROBLEM: This metod works, but this make necessary a new class for each column wich uses checkboxes, cause of the column name in the statement: _selected = _data["CheckColumn"];
    So, I need a workaround to the label in the object. In AS2 this was CellRenderer.getDataLabel() function what are the equivalent in AS3?

    Hi
    Have a look at this post
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=585&threadid=1364035&fo rumid=60
    David

Maybe you are looking for

  • A pop-up window in Java

    Hello I have a neat little Java applet menu and would like a link from the menu to open up a pop up window in another frame. I know this can be done in Java, but is there any information anywhere which I could read to show me how to do it? Basically,

  • HT4692 Ok.  Now how to I get the garageband file BACK onto my iPad?

    Ok.  I have successfully transferred garageband files from my ipad to my itunes into file sharing and then saved them onto my mac in a file.  Now, the question is.... how do I (after deleting garageband files off of my ipad) put them BACK on??? My iP

  • [svn] 4261: Fix Eclipse project files for BlazeDS/trunk.

    Revision: 4261 Author: [email protected] Date: 2008-12-09 05:51:20 -0800 (Tue, 09 Dec 2008) Log Message: Fix Eclipse project files for BlazeDS/trunk. There were a number of problems. The classpath for the Java projects still included references to th

  • Android device synching with iCloud Cal, Contacts & To-Do's?

    NOTE: I am also looking on Android-specific websites/forums for answers, but there must be thousands of Mac users who are also Android users, and who have had similar questions. I have an iMac, iPad(3), and iPhone G3. The iMac and iPad are synched vi

  • Pros & Cons of CS5.5 vs CS5 for DPS???

    Hi, I believe this is my 1st pover EVER on the ADOBE forums, despite using it for years as a source of invaluable knoweldge. My thanks to all of the contributors, past and present. I'm assuming CS5.5 offers advantages over CS5 in the DPS workflow, bu