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>

Similar Messages

  • 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

  • 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.

  • 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>
    >

  • Problems with linked ComboBoxes

    Hi everyone, and thanks to those who will reply
    It's been 3 days since i'm having the same problem :
    I have 2 comboboxes in a JPanel, and the things to be displayed in the second one depends on the first (for example selecting 'Hewlett-Packard' in the first combo box display all HP model in the second one)
    When i select a item in the first combobox, an actionPerformed is fired, and i can populate the second combobox. Unfortunately, the combobox disappear in my panel, but if i click on the place where it used to be, the popup list display correctly... !
    I just want to know hox can i make it visible anyway. I've tried combobox2.repaint() method within the actionperformed method (combobox2 is the name of my second combo box as you've guessed), but it doesnt work...
    Something else too : in my first list, if i select another vendor, the list in the second is not removed, but the list of workstation of the second-select manufacturer is appended... I've tried here the combobox2.removeall() method, but here again, no results....
    this is my code :
    public class DocPCConfig extends JFrame implements ActionListener, WindowListener
    /** D�clare les variables utilis�es **/
    JComboBox comboConstructeurs, comboMachines;
    private JPanel imagePanel, panelConstructeur, panelMachines;
    * DocPCConfig()
    * Constructeur par d�faut
    * - But : Initialise les composants Swing de la fen�tre principale
    * - E : -/-
    * - S : -/-
    public DocPCConfig()
    /** Ajoute les composants dans l'onglet **/
    ajoutCompoCstr();
    /** Ajoute un �couteur d'�v�nement de fen�tre **/
    addWindowListener(this);
    * main()
    * - But : Point d'entr�e de l'application
    * - E : String args[] : Tableau de param�tres
    * - S : -/-
    public static void main(String args[])
    System.out.println("Lancement de l'application de configuration");
    new BdD();
    mainFrame = new DocPCConfig();
    mainFrame.setSize(1024,738);
    mainFrame.setTitle("DocPCConfig");
    mainFrame.setVisible(true);
    * ajoutCompoCstr()
    * - But : Ajoute les composants pour le panel de s�lection constructeur/machine (1er onglet)
    * - E : -/-
    * - S : -/-
    public void ajoutCompoCstr()
    java.awt.GridBagConstraints gridBagConstraints1;
    /** Cr�e le vecteur stockant les r�sultats provenant de la BdD **/
    Vector listeConstructeurs = new Vector(10,5);
    /** Se connecte � la BdD **/
    BdD.connecteBdD();
    /** R�cup�re la liste des constructeurs depuis la BdD **/
    listeConstructeurs = BdD.getConstructeurs();
    DefaultComboBoxModel comboModele = new DefaultComboBoxModel(listeConstructeurs);
    BdD.deconnecteBdD();
    /** Lance le constructeur pour la liste d�roulante avec le vecteur de liste
    comme param�tre **/
    comboConstructeurs = new JComboBox(comboModele);
    /** R�gle les param�tres suppl�mentaires **/
    comboConstructeurs.setMaximumSize(new Dimension(5,5));
    comboConstructeurs.setSelectedIndex(-1);
    // comboConstructeurs.setEditable(true);
    /** Ajoute les contraintes graphiques pour la liste des constructeurs **/
    gridBagConstraints1 = new GridBagConstraints();
    gridBagConstraints1.gridx = 1;
    gridBagConstraints1.gridy = 1;
    gridBagConstraints1.insets = new Insets(10, 10, 10, 10);
    panelConstructeur.add(comboConstructeurs, gridBagConstraints1);
    comboConstructeurs.addActionListener(this);
    /** Cr�e les �l�ments de la liste d�roulante **/
    String[] listeMachines = { "                             " };
    comboMachines = new JComboBox(listeMachines);
    comboMachines.setSelectedIndex(0);
    /** Ajoute les contraintes graphiques pour la liste des machines **/
    gridBagConstraints1 = new GridBagConstraints();
    gridBagConstraints1.gridx = 1;
    gridBagConstraints1.gridy = 2;
    gridBagConstraints1.insets = new Insets(10, 10, 10, 10);
    panelConstructeur.add(comboMachines, gridBagConstraints1);
    * actionPerformed(ActionEvent ae)
    * - But : Traiter les op�ration quand une action est effectu�e sur les boutons
    * de l'interface de la fen�tre principale.
    * - E : ActionEvent ae : Un pointeur sur l'action courante.
    * - S :-/-
    public void actionPerformed(ActionEvent ae)
    Object source = ae.getSource();
    /** Liste d�roulante des constructeurs **/
    if (source == comboConstructeurs)
    /** R�cup�re la ligne s�lectionn�e dans la liste **/
    String constructeur = (String)comboConstructeurs.getSelectedItem();
    /** Creation des �l�ments de la liste d�roulante **/
    Vector listeMachines = new Vector(50,1);
    /** Se connecte � la BdD **/
    BdD.connecteBdD();
    listeMachines = BdD.getMachines(constructeur);
    /** Se d�connecte de la BdD **/
    BdD.deconnecteBdD();
    /** Supprime toutes les pr�c�dentes entr�es de la liste des machines **/
    comboMachines.removeAll();
    int i = 0;
    System.out.println(listeMachines.size());
    /** Tant que la liste n'a pas �t� parcourue **/
    while(i < listeMachines.size())
    /** Copie l'�l�ment du vecteur et l'ajoute dans la liste d�roulante **/
    comboMachines.addItem(listeMachines.elementAt(i).toString());
    i++;
    comboMachines.repaint();
    I've removed all the things I found useless, but maybe i've removed too much ;-) I hope that this code is enough.
    Thanks for your help (can you send a copy of your answers at : [email protected] - if you're too lazy to do this that's not a matter, but i don't know how i can find my post in all these posts... so that'd be cool ;-)

    Thanks Martin
    that makes sense now was driving me mad as I couldnt find anything saying it wasnt supported, makes sense seeing as its a flash server. Annoyning thing was it was playing in the content viewer locally when I previewd the folio you would think that would not be the case if it was not supported. Im going to try the rtmp links in a player in a web page and view it on the ipad out of curiosity and ill let you know. Out of interest have you done anyting with imported html into indesign as part of your folios ? I havent as yet but am curious to know how it holds up ?
    Thanks again
    Neil

  • Problem with userdefined combobox selection

    Hi guys,
    Have an "AutoSearchComboBox" as follows for searching the combolist fast.Have some problems with the selection in the AutoSearchComboBox.
    *public class AutoSearchComboBox extends JComboBox {*
    private static final long serialVersionUID = 1L;
    *public AutoSearchComboBox(){*
    setEditable(true);
    setModel(new AutoSearchComboBoxModel());
    setEditor(new MyComboBoxEditor());
    public class AutoSearchComboBoxModel extends AbstractListModel
    *implements MutableComboBoxModel{*
    private static final long serialVersionUID = 1L;
    private Vector items,filteredItems;
    private Filter filter;
    private Object selectedItem;
    *public AutoSearchComboBoxModel(){*
    this.items = new Vector();
    this.filteredItems = new Vector();
    this.filter = null;
    updateFilteredItems();
    *public void addElement(Object obj) {*
    items.add(obj);
    updateFilteredItems();
    public void insertElementAt(Object obj, int index) {}
    *public void removeElement(Object obj) {*
    items.remove(obj);
    updateFilteredItems();
    *public void removeElementAt(int index) {*
    items.remove(index);
    updateFilteredItems();
    *public Object getSelectedItem() {*
    return selectedItem;
    *public void setSelectedItem(Object anItem) {*
    if ((selectedItem==null) && (anItem==null))
    return;
    if ((selectedItem != null) && (selectedItem.equals(anItem)))
    return;
    if(anItem!= null && anItem.equals(selectedItem))
    return;
    selectedItem = anItem;
    fireContentsChanged(this, -1,-1);
    *public Object getElementAt(int index) {*
    return filteredItems.get(index);
    *public int getSize() {*
    return filteredItems.size();
    *public void setFilter(Filter filter){*
    this.filter = filter;
    updateFilteredItems();
    *public void updateFilteredItems(){*
    fireIntervalRemoved(this,0,filteredItems.size());
    filteredItems.clear();
    if(filter==null)
    filteredItems.addAll(items);
    else
    *for(Iterator iter = items.iterator(); iter.hasNext();){*
    Object item = iter.next();
    if (filter.accept(item))
    filteredItems.add(item);
    fireIntervalAdded(this,0, filteredItems.size());
    *public static interface Filter{*
    public boolean accept(Object obj);
    *class FilterItems implements Filter{*
    private String prefix;
    *public FilterItems(String prefix){*
    this.prefix = prefix;
    *public boolean accept(Object obj){*
    return doesStartsWithThePrefix(obj.toString(),prefix);
    *private boolean doesStartsWithThePrefix(String str1,String str2){*
    return str1.toUpperCase().startsWith(str2.toUpperCase());
    *public class MyComboBoxEditor implements ComboBoxEditor,DocumentListener{*
    private JTextField text;
    private volatile boolean filtering = false;
    private volatile boolean setting = false;
    *public MyComboBoxEditor(){*
    text = new JTextField(15);
    text.getDocument().addDocumentListener(this);
    *public void addActionListener(ActionListener l) {*
    *// TODO Auto-generated method stub*
    *public void removeActionListener(ActionListener l) {*
    *// TODO Auto-generated method stub*
    *public Component getEditorComponent() {*
    return text;
    *public void setItem(Object anObject) {*
    if(filtering)
    return;
    setting = true;
    String newText = (anObject==null)? "":anObject.toString();
    text.setText(newText);
    setting = false;
    *public Object getItem() {*
    return text.getText();
    *public void selectAll() {*
    text.selectAll();
    *public void changedUpdate(DocumentEvent e) {*
    *// TODO Auto-generated method stub*
    *public void insertUpdate(DocumentEvent e) {*
    handleChange();
    *public void removeUpdate(DocumentEvent e) {*
    handleChange();
    *public void handleChange(){*
    if(setting)
    return;
    filtering = true;
    Filter filter = null;
    if(text.getText().length()>0)
    filter = new FilterItems(text.getText());
    *((AutoSearchComboBoxModel)getModel()).setFilter(filter);*
    setPopupVisible(false);
    if (getModel().getSize()>0)
    setPopupVisible(true);
    filtering = false;
    Iam creating the combo boxes as follows from another source file.
    private AutoSearchComboBox indexTagCombo,indexValueCombo
    //The following function is called for loading the comboBoxes.
    private void loadInitialIndexTagValues()
    indexTagCombo.removeAllItems();
    //Getting values to be fiiled in the comboBox.
    Set tags = this.model.getAvailableIndexTags();
    // Iterating over the elements in the set
    Iterator tagIter = tags.iterator();
    while (tagIter.hasNext()) {
    indexTagCombo.addItem(tagIter.next());
    //Loading index values.
    String currTag = (String)indexTagCombo.getSelectedItem(); //Selection problem 1
    The statement above returns me null & the follwing code doesnt fill the other comboBox.
    Set values = model.getAllValues(currTag);
    indexValueCombo.removeAllItems();
    Iterator valIter = values.iterator();
    while (valIter.hasNext()) {
    indexValueCombo.addItem(valIter.next());
    Have added an "itemListener" to the indexTagCombo as follows:
    indexTagCombo.addItemListener(new ItemListener(){
    public void itemStateChanged(ItemEvent e)
    indexTagSelection(e);
    private void indexTagSelection(ItemEvent e) {
    if (e.getStateChange() == ItemEvent.SELECTED)
    //The "getStateChange" is never ItemEvent.SELECTED,so that it never gets in to this loop.//Another problem
    //code goes Here
    There is some problem with the defined "AutoSearchComboBox" with selection.When I change the privately defined "AutoSearchComboBox" to JComboBox and make it editable,all the selection problems are gone.
    In short all the "getSelectedItem" from the "AutoSearchComboBox" and the "itemstate" events defined are not going to the "ItemEvent.SELECTED"
    What should I fix in the "AutoSearchComboBox" so that the selections work.
    Any help is greatly appreciated.
    Thanks
    P

    Hi Smita,
    When you create the Transaction code either thru Se80 or thru Se93... please see that you are giving the screen number asked there as 1000, which is the default screen number for the selection screen.
    Also, please see if the checkboxes for the GUI Support are ticked. I think it iwll solve you problem.
    Regards,
    Jayant

  • Facing problem while adding combobox using gridbaglayout

    HI, I have used gridbaglayout in my panel. after adding the gridbaglayout, if i select long value combobox does't display all the value of the selected value. Why?
    This is my code
    cboPrioritySearchValue = new JComboBox();
    cboPrioritySearchValue.setBackground(Color.white);
    cboPrioritySearchValue.addItem("ALL");
    cboPrioritySearchValue.addItem(Priority.NOT.getValue());
    cboPrioritySearchValue.addItem(Priority.ONE.getValue());
    cboPrioritySearchValue.addItem(Priority.TWO.getValue());
    cboPrioritySearchValue.addItem(Priority.THREE.getValue());
    cboPrioritySearchValue.addItem(Priority.FOUR.getValue());
    setConstraints(gbc,gbc.WEST,gbc.NONE,2,1,2,8,new Insets(2,5,5,5),0,0,0,0);
    gbl.setConstraints(cboPrioritySearchValue,gbc);
    panel.add(cboPrioritySearchValue);This is my setConstraints method,
    public GridBagConstraints setConstraints(GridBagConstraints gbc, int anchor,int fill,
                                                 int gridw, int gridh, int gridx, int gridy,
                                                 Insets insets, int ipadx, int ipady,
                                                 int weightx, int weighty)
            gbc.anchor     = anchor;
            gbc.fill       = fill;
            gbc.gridwidth  = gridw;
            gbc.gridheight = gridh;
            gbc.gridx      = gridx;
            gbc.gridy      = gridy;
            gbc.insets     = insets;
            gbc.ipadx      = ipadx;
            gbc.ipady      = ipady;
            gbc.weightx    = weightx;
            gbc.weighty    = weighty;
            return gbc;
        }Edited by: JavaHeroPrince on May 13, 2010 6:58 AM

    Thanks Pete, hopefully its only a temporary problem.Short answer: It is (well ... hopefully).
    Long answer: My server's dying regularly because all the connections fill up in CLOSE_WAIT states. This doesn't seem to have the same root cause as the reported bugs that I can find (issues with older JDKs) so I'm interested in investigating it beyond just upgrading everything to the latest and crossing my fingers. Unfortunately that will take time and I'm a bit pressed for spare time at the moment - so: my apologies; the domain is likely to be down until after the weekend at least.
    After the weekend I'll re-target sscce.org (and .com and .net which I acquired a little while back) to a different server that's not suffering from the problem. Or if Andrew prefers I'll target a server under his control.

  • Problem with InfoSwing comboboxes

    I posted a message earlier concerning JDeveloper 2.0's InfoSwing
    ComboBoxControl. I have a little more information that might
    help someone who has used JDeveloper figure the problem out. The
    problem is that I place the combobox controls on my form and set
    the dataItemName and dataItemNameForUpdate properties but when I
    run the applet and click on the combobox, the list doesn't show
    up. In fact, I get the following error:
    java.lang.NullPointerException
    at javax.swing.JComboBox.getSelectedIndex(Compiled Code)
    at
    javax.swing.plaf.basic.BasicComboPopup.syncListSelectionWithCombo
    BoxSelection(Compiled Code)
    at javax.swing.plaf.basic.BasicComboPopup.show(Compiled
    Code)
    at
    javax.swing.plaf.basic.BasicComboPopup.togglePopup(Compiled Code)
    at
    javax.swing.plaf.basic.BasicComboPopup$InvocationMouseHandler.mou
    sePressed(Compiled Code)
    at java.awt.AWTEventMulticaster.mousePressed(Compiled
    Code)
    at java.awt.Component.processMouseEvent(Compiled Code)
    at java.awt.Component.processEvent(Compiled Code)
    at java.awt.Container.processEvent(Compiled Code)
    at java.awt.Component.dispatchEventImpl(Compiled Code)
    at java.awt.Container.dispatchEventImpl(Compiled Code)
    at java.awt.Component.dispatchEvent(Compiled Code)
    at
    java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:
    1739)
    at
    java.awt.LightweightDispatcher.processMouseEvent(Container.java:1
    533)
    at
    java.awt.LightweightDispatcher.dispatchEvent(Container.java:1453)
    at java.awt.Container.dispatchEventImpl(Compiled Code)
    at java.awt.Component.dispatchEvent(Compiled Code)
    at
    java.awt.EventDispatchThread.run(EventDispatchThread.java:79)
    Can someone please help me? I am desperate!
    Thanks in advance,
    Joel
    null

    No Joel,
    it seems that the JDev Team is unable to give a proper support
    for their product. I wouldn't have been able too if I had
    released a product with a bugs like that (e.g. combo boxes not
    been able to populate). May be this is the reason Oracle is in
    such a hurry trying to release JDeveloper 3.0. Well, let's hope
    the bugs in the new version will decrease rather than increase.
    For now I would suggest to you to try Symantec's Visual Cafe or
    even Borland's JBuilder may suit what you need.
    BTW, I left the ideas to finish my project using Java and went
    back to the more stable combination Perl/CGI/HTML.
    Mitko
    JDev Team (guest) wrote:
    : The ComboBoxControl is a composite control that uses the
    : JComboBox so if it isn't working then the ComboBoxControl won't
    : work. You need to resolve the issue with JComboBox first.
    : - PSW
    : Joel (guest) wrote:
    : : They were bound to the same db table column, but I thought
    that
    : : might be wrong, so I added another rowSetInfo to my
    : sessionInfo,
    : : and had the query look for all distinct values in the column
    : that
    : : I want to populate my combobox with. I tied the DataItemName
    : to
    : : the new rowSetInfo (only had one column), and the
    : : DataItemNameForUpdate to the same column name, but on the
    first
    : : rowSetInfo. So I have one sessionInfo component, and two
    : : rowSetInfo components. I did all this using the property
    : : editor.
    : : Just one more note: In desperation, I created a new project
    : and
    : : placed a regular Jcombobox on a form and added some items to
    it
    : : programatically, and could not get the combobox's popup list
    to
    : : show up. I could move through each item in the ComboBox by
    : using
    : : the arrow keys on the keyboard, but not with the mouse. Do
    you
    : : think this could be related to the problem I am having with
    the
    : : InfoSwing components?
    : : Thank you for your time,
    : : Joel
    : : JDev Team (guest) wrote:
    : : : Are the DataItemName and DataItemNameForUpdate properties
    : bound
    : : : to the same db table column? How did you do the binding -
    : using
    : : : the property editor or programmatically?
    : : : - PSW
    : : : Joel (guest) wrote:
    : : : : So far I haven't even had the chance to try my applet
    on
    : a
    : : : : browser. I have been running it on my local computer
    (not
    : : from
    : : : a
    : : : : web server). I have been using JDeveloper's Applet
    Viewer,
    : : and
    : : : : the data from the Oracle table shows up, so I'm pretty
    sure
    : : : it's
    : : : : having no problem connecting to the Oracle table, but the
    : : : : comboboxes won't show the list of choices.
    : : : : Thank you,
    : : : : Joel
    : : : : Jdev Team (guest) wrote:
    : : : : : What version of the Java Plug-in are you using? What
    : : browser
    : : : : and
    : : : : : version?
    : : : : : - PSW
    : : : : : Joel (guest) wrote:
    : : : : : : I posted a message earlier concerning JDeveloper
    2.0's
    : : : : : InfoSwing
    : : : : : : ComboBoxControl. I have a little more information
    that
    : : : might
    : : : : : : help someone who has used JDeveloper figure the
    problem
    : : : out.
    : : : : : The
    : : : : : : problem is that I place the combobox controls on my
    : form
    : : : and
    : : : : : set
    : : : : : : the dataItemName and dataItemNameForUpdate properties
    : but
    : : : : when
    : : : : : I
    : : : : : : run the applet and click on the combobox, the list
    : : doesn't
    : : : : show
    : : : : : : up. In fact, I get the following error:
    : : : : : : java.lang.NullPointerException
    : : : : : : at
    : : javax.swing.JComboBox.getSelectedIndex(Compiled Code)
    : : : : : : at
    javax.swing.plaf.basic.BasicComboPopup.syncListSelectionWithCombo
    : : : : : : BoxSelection(Compiled Code)
    : : : : : : at
    : : javax.swing.plaf.basic.BasicComboPopup.show(Compiled
    : : : : : : Code)
    : : : : : : at
    : : javax.swing.plaf.basic.BasicComboPopup.togglePopup(Compiled
    : : : : : Code)
    : : : : : : at
    javax.swing.plaf.basic.BasicComboPopup$InvocationMouseHandler.mou
    : : : : : : sePressed(Compiled Code)
    : : : : : : at
    : : java.awt.AWTEventMulticaster.mousePressed(Compiled
    : : : : : : Code)
    : : : : : : at java.awt.Component.processMouseEvent(Compiled
    : : Code)
    : : : : : : at java.awt.Component.processEvent(Compiled Code)
    : : : : : : at java.awt.Container.processEvent(Compiled Code)
    : : : : : : at java.awt.Component.dispatchEventImpl(Compiled
    : : Code)
    : : : : : : at java.awt.Container.dispatchEventImpl(Compiled
    : : Code)
    : : : : : : at java.awt.Component.dispatchEvent(Compiled
    : : Code)
    : : : : : : at
    java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:
    : : : : : : 1739)
    : : : : : : at
    java.awt.LightweightDispatcher.processMouseEvent(Container.java:1
    : : : : : : 533)
    : : : : : : at
    java.awt.LightweightDispatcher.dispatchEvent(Container.java:1453)
    : : : : : : at java.awt.Container.dispatchEventImpl(Compiled
    : : Code)
    : : : : : : at java.awt.Component.dispatchEvent(Compiled
    : : Code)
    : : : : : : at
    java.awt.EventDispatchThread.run(EventDispatchThread.java:79)
    : : : : : : Can someone please help me? I am desperate!
    : : : : : : Thanks in advance,
    : : : : : : Joel
    null

  • 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

  • Problem in popultating combobox based on input from another combobox

    i have there combo boxes when i select the first combobox ,based on the input given it must populate the second and based on the input in second combo box it must populate the third one.1->2->3.
    Actually i am having a javascript when i select the data in first combo box the information is sent to specified jsp page with parameter using onchange function and the second combo box is poplated based on the first but the third combo box in not populating based on the second.
    here is my code:
    jsp:
    <select name="recrClient" class="selectBox" id="recrClient" onchange="htmlData('BSTSRecuritmentContacts.jsp', 'client='+this.value);">
    javascript
    function stateChanged()
    if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
    document.getElementById("contacts").innerHTML= xmlHttp.responseText;
    else
    //alert(xmlHttp.status);
    // Will populate data based on input
    function htmlData(url, qStr)
    if (url.length==0)
    document.getElementById("contacts").innerHTML="";
    return;
    xmlHttp=GetXmlHttpObject()
    if (xmlHttp==null)
    alert ("Browser does not support HTTP Request");
    return;
    if (url=="BSTSRecuritmentContacts.jsp")
    url=url+"?"+qStr;
    url=url+"&sid="+Math.random();
    xmlHttp.onreadystatechange=stateChanged;
    xmlHttp.open("GET",url,true) ;
    xmlHttp.send(null);
    if i use the same method populating the third combo box, this is not working
    please reply me and thanks in advance

    Hi there,
    What about this:
    Create a multicube with 0PA_C01 and 0PE_C01 and then you create one key figure with the total of employes (that comes from 0PA_C01) and another key figure with the total number of employes that had training (that comes from 0PE_C01) and finally you create a calculated key figure at query level that subtracts the first key figure by the second, i.e., the total number of employees - the employees that had training.
    Diogo.

  • Problem with my ComboBox

    Hi,
    I have a demo containing many sections. At the end of each
    section a clip is loaded from the library that has a bunch of links
    and a comboBox in it that lists all the other sections. Everything
    is working as it should except that when you open the comboBox the
    list appears behind everything else in the clip.
    Why why why?
    Also, is there a way to embed fonts in to the fields of the
    list as with dynamic text fields so that alpha effect etc can be
    applied to the CB (the movie it is in fades up from alpha 0 but the
    CB text just appears)
    Thanks for any help

    Here's how I'm proceeding :
    I click one time on the ComboBox to open the item list. Then, the list appears.
    So, I click a second time on the wanted item. Then, the list disappears (it's normal !) but the wanted item is not selected !
    I've tried to put "System.out.println" everywhere in my code and I saw that it seems that both item events and action events (depending on the case) are not captured !
    Caro

  • Problems skinning/styling ComboBox component

    So the first image is the design brief, and below it is my attempt so far. Some ways to go, and the limitations and scarce documentation of this process is getting to me. So i'm putting a call out to see if anyone's well across this process and could assist, or step me through it?
    been a while since i skinned a component in AS2, and I remember I prefered to write my own components rather than go through this process at the time. but i am hoping to use the built-in Flash component this time.
    So what I need help with is:
    Adjust scrollbar scrubber and track width, hopefully add padding around scrubber, and hopefully this would resolve the issue of losing the scrubber's black border on the right.
    Resolve issues with the combo-button (what's that white border doing there?)
    Style font correctly in combo-button
    Increase list row height
    Add dotted line between list rows
    (I'm ignoring the blue numbers)
    If anyone can help with even just one of those issues, i'd love to hear from you.
    Info about my attempt so far:
    I have skinned several clips, such as scrollThumb*, scrollUpArrow*, scrollDownArrow*, comboDownArrow*, etc.
    I have styled with the following:
    comboBox.setStyle("backgroundColor", 0x504C4B);
    comboBox.dropdown.setStyle("backgroundColor", 0x504C4B);
    comboBox.setStyle("themeColor", 0x1F90AE);
    comboBox.setStyle("color", 0xC4C0BF);
    comboBox.setStyle("textSelectedColor", 0xC4C0BF);
    comboBox.setStyle("textRollOverColor", 0xC4C0BF);
    comboBox.setStyle("alternatingRowColors", [0x504C4B, 0x504C4B]);
    comboBox.setStyle("borderStyle", 'none');
    I have attached the fla I've worked with so far in a zip.
    Thanks for your help!

    Well I resolved this merely by lowering my expectations!
    Leaving this unanswered because I am hoping there must be answers to these issues out there for future reference.
    But for now, my comboBox looks like this:
    And i achieve this by skinning some clips, and adjusting my styling code:
    combo.setStyle("backgroundColor", 0x504C4B);
    combo.dropdown.setStyle("backgroundColor", 0x504C4B);
    combo.setStyle("themeColor", 0x1F90AE);
    combo.setStyle("rollOverColor", 0x46bbda);
    combo.setStyle("color", 0xC4C0BF);
    combo.setStyle("textSelectedColor", 0xFFFFFF);
    combo.setStyle("textRollOverColor", 0xFFFFFF);
    combo.setStyle("alternatingRowColors", [0x504C4B, 0x504C4B]);
    combo.setStyle("borderStyle", 'none');
    combo.text_mc.setStyle("borderStyle","none");
    combo.text_mc.setStyle("themeColor", 0x00FF99);
    combo.text_mc.setStyle("borderColor",0xFFFFFF);
    combo.text_mc.setStyle("color",0xC4C0BF);
    combo.dropdown.setStyle("color",0xC4C0BF);

  • Problem of selecting combobox in JTable!!

    I click comboBox in jtable and choose one item
    then move mouse away
    and then click the comboBox again
    It turns out to be strange:
    the selectedItem of the comboBox changes the first item at once
    I refered to the demo "TableRenderDemo.java" in http://java.sun.com/docs/books/tutorial/uiswing/components/example-swing/TableRenderDemo.java
    I just wanna do things like that
    but for some unknown reasons,I fail
    I compared two codes but found nothing

    here I'm giving a simple sample code. Refer this..
    import javax.swing.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    import javax.swing.table.*;
    import java.awt.*;
    public class Class1 extends JFrame {
    JScrollPane jScrollPane1 = new JScrollPane();
    JTable editableTable1 = new JTable(3, 3);     
    public Class1() {
    try {          
    JComboBox c = new JComboBox();
    c.setEditable(true);
    c.addItem("a");
    c.addItem("b");
    DefaultCellEditor cellEditor = new DefaultCellEditor(c);
    TableColumn tc = editableTable1.getColumnModel().getColumn(0);
    tc.setCellEditor(cellEditor);
    this.getContentPane().setLayout(null);
    jScrollPane1.setBounds(new Rectangle(25, 19, 330, 180));
    this.getContentPane().add(jScrollPane1, null);
    jScrollPane1.getViewport().add(editableTable1, null);
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent we) {
    System.exit(0);
    } catch(Exception e) {
    System.out.println("Exception in Class1:"+e);
    public static void main(String[] args) {
    Class1 class1 = new Class1();
    class1.setSize(400, 400);
    class1.setVisible(true);

  • WIN 8 IE11 problem in DropdownList (combobox) click event

    In Windows 7 IE11 everything worked as expected, but in Windows 8 using IE11, the list items can't be clicked and only the keyboard arrows working.
    What could be the reason?
    Thanks

    Hi Gbonaert,
    This kind of issue might be caused by incompatible add-ons or corruption during update.
    Reset Internet Explorer then check the issue again.
    http://windows.microsoft.com/en-us/internet-explorer/reset-ie-settings#ie=ie-11
    If the issue still persists
    Try disable/removing add-ons in your Internet Explorer, or you also could start Internet Explorer under no add-on mode.
    http://windows.microsoft.com/en-us/internet-explorer/manage-add-ons#ie=ie-11
    Regards,
    D. Wu
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Combobox and datagrid

    Hi all !
    I have a proplem which i don't solve .
    Can You help me ?and
    Could you rewritten code for me ?
      oItem = oForm.Items.Add("MyGrid", SAPbouiCOM.BoFormItemTypes.it_GRID)
            ' Set the grid dimentions and position
            oItem.Left = 20
            oItem.Top = 60
            oItem.Width = 650
            oItem.Height = 300
            oGrid = oItem.Specific
            oForm.DataSources.DataTables.Add("MyDataTable")
    oForm.DataSources.DataTables.Item(0).ExecuteQuery("select U_NameChild,U_Birthdate,U_*** from OHEM where EmpID='" & EmplID & "'")
            oGrid.DataTable = oForm.DataSources.DataTables.Item("MyDataTable")
            oGrid.Columns.Item(0).Width = 50
            oGrid.Columns.Item(1).Width = 60
            oGrid.Columns.Item(2).Width = 130
            oGrid = oGrid.Columns.Item("U_***")
            oGrid.Type = SAPbouiCOM.BoGridColumnType.gct_ComboBox
            Dim oComboBoxColumn As SAPbouiCOM.ComboBoxColumn
            oComboBoxColumn = New SAPbouiCOM.ComboBoxColumn
            oComboBoxColumn = oGrid.Columns.Item("U_***")
            oComboBoxColumn.ValidValues.Add("1", "Nam")
            oComboBoxColumn.ValidValues.Add("2", "Nu")
    URL=http://imageshack.usIMGhttp://img101.imageshack.us/img101/3803/huynhade1.png[/IMG][/url]

    Dear Nguyen,
    my sample code is as follows, and has been tested, works well.
            oItem = oFirstForm.Items.Add("MyGrid", SAPbouiCOM.BoFormItemTypes.it_GRID)
            ' Set the grid dimentions and position
            oItem.Left = 20
            oItem.Top = 60
            oItem.Width = 650
            oItem.Height = 300
            oGrid = oItem.Specific
            oFirstForm.DataSources.DataTables.Add("MyDataTable")
            oFirstForm.DataSources.DataTables.Item(0).ExecuteQuery("select CardCode, CardType, u_sdn from OCRD")
            oGrid.DataTable = oFirstForm.DataSources.DataTables.Item("MyDataTable")
            oGrid.Columns.Item(0).Width = 50
            oGrid.Columns.Item(1).Width = 60
            oGrid.Columns.Item(2).Width = 60
            oGrid.Columns.Item(2).Type = SAPbouiCOM.BoGridColumnType.gct_ComboBox
            Dim oComboBoxColumn As SAPbouiCOM.ComboBoxColumn
            oComboBoxColumn = oGrid.Columns.Item(2)
            oComboBoxColumn.ValidValues.Add("1", "today")
            oComboBoxColumn.ValidValues.Add("2", "tommorrow")

Maybe you are looking for

  • File opening from jsp

    Hello, I have a file in the server's hard disk. A I have jsp with the link to the file. I'd like to file be opend with the standard windows application after clicking on the link. How could I realize this? What kind of file link I need? Thanks, Ljosi

  • Doubt in graphical mapping

    Hello, I have a source structure like this: Source (1.. unbounded)      Item ident      structure (0..unbounded)           Sub item And I need to convert onto a target structure like:           Target (1.. unbounded)      Item ident      Sub item How

  • How can you take off the volume limit?, How can you take off the volume limit?

    How can you take off the volume  limit on iPod touch ?

  • Motu Ultralite not working in PowerMac G5 any OS

    I have a Motu Ultralite that is recognized in Audio Desk and Reason but does not produce any sound. When used as an output for iTunes it produces sound for about 1:45 then turnes to noise. I have tried most OS's from 10.4.1 to 10.4.10 with pretty muc

  • Need help in installing language in R11i-11.5.10.2

    Dear Team, We are in the process of installing few languages in R11i - 11.5.10.2. Currently it has American English and Italian. Please help us with your expertise in getting the NLS language packages, steps to be followed, any hiccups if any in impl