Problem rendering a combo box in the data grid

Hi,
I am rendering a combo box in the data grid control using an
item renderer. When I click on it to select a value from the drop
down, the combo box immediately closes giving no time to even click
on the dropdown. This doesn’t happen every time the combo is
clicked, although it happens frequently. What I think is that the
problem arises because the data grid tries to refresh the renderers
and during this process, the existing combo is removed, thereby
getting closed automatically. Please let me know of a work around.
Thanks,
Cheree

hi hiwa,
i have to add combo box in datagrid dynamically.
it should append as and when i add the data in the above text boxes.
thanks in advance.

Similar Messages

  • Problem in showing combo box in the table

    Hello guys i just add up the combo box in the table but the problem is when i change the line in the table the combo disappear. i want it to be visible even if it is not in the selected row. i want that user can see the combo box in the table without clicking on it.
    Please help;

    http://java.sun.com/docs/books/tutorial/uiswing/components/table.html
    Look in the page bottom !

  • Creating "Control Combo Box " Relation with data block

    Hi all dears
    i am switching from C# to oracle developer for joining gulf net software house, i have a problem regarding master detail data
    the senerio is
    "List items" control Filled programatically as under shortly:-
    rg_id := create_group_from_query('myrg', 'select dname a, dname b from dept');
    populate_group(rg_id);
    populate_list('mylist', rg_id);
    using this i fill my combo box during new form instance trigger
    i have created a datablock emp through wizard which can show 10 record.
    now
    Problem 1
    i want to show records on form when user select any dept from combo box.
    Problem 2
    if i create group from query and in select statement is like this "select dname, dpetno from dept" the record group is created successfully but i am unable to populate_list due to different data type colums in record group how i will populate list so that List items Labels are department name and value is department no
    Thanks in advance for persual

    Hi dears all
    I have solved this problem my self
    1. select dept name form combo box and the data block shows the emp's of concern depat
    solution
    create a data block of emp table through wizard
    create its table view and show 10 records
    go to datablock i consider its name "emp" datablock properties
    in Where clause condition specify deptno = : my_combo_box;
    now go to combo box when item changed event
    go_bolck("emp);
    execute_query;

  • Combo Box with duplicate data

    Hello All,
    I am creating a form with a combo box but the data from the table is duplicating.  Can anyone provide guidance on how to make the combo box only display only two choices of the data?  For example, when the box is selected the drop down list
    will have multiple/group of  'Yes' and 'No'.  It appears that everytime a record is added to the table, it gets duplicated.  I think I'm overlooking something from working long on this and it maybe something simple/obvious.   Any
    help would be appreciated, thanks.
    Evin

    As Bruce said you can use the DISTINCT predicate to suppress duplicate rows, but if you are getting duplicates in a combo box's list it suggests that you are querying the wrong table as the Control's RowSource property.  If we take a simple example
    of a combo box to list states, then the following would return duplicates of the table contains rows for two or more cities in the same state:
    SELECT State
    FROM Cities
    ORDER BY State;
    You could suppress the duplicates with:
    SELECT DISTINCT State
    FROM Cities
    ORDER BY State;
    but the correct solution would be:
    SELECT State
    FROM States
    ORDER BY State;
    i.e.  in the Cities table State is a foreign key column referencing the primary key of States.  You might ask why have a States table at all as the values are already in Cities?  The answer is that by having a States table you can enforce referential
    integrity in the relationship between Cities and States, preventing the insertion of invalid State values into Cities.  Without protecting the integrity of the database in this way errors in data entry will sooner or later occur (Murphy's Law is infallible
    in this respect!).  I have personal experience which is testament to this, having once found three versions of my own name as author in a table of references to technical articles in my own field of work.  As far as the database is concerned this
    makes me three separate people!  The table should have referenced the key of an Authors table of course.
    Ken Sheridan, Stafford, England

  • Problem with combo boxes and the reset button in certain situations

    Hi Everyone,
    i have a problem to make the reset-button function properly in an what-if analysis dashboard.
    The dashboard uses two combo boxes that are not visible at the same time. In my application the second combo box only appears when a dedicated menu (label based menu button) has been activated.
    So i have combo box 1 when menu A is active an dand combo box 2 when menu 2 is active.
    After starting the dashboard initial values are fine. If you then directly change to menu 2 (seeing combo box 2 with
    the correct default value) and press the reset button, the dashboard returns to the initial view, showing
    the menu 1 with the correct default value. If you now switch back  to menu 2, you will see, that the combo box 2
    is empty (i.e. nothing selected).
    I also tracked the destination cells for the combo box value results as well as the source cells for the "selected item" and the
    destination cells for the "Insert Selected Item". All this values seem to be correct. Therefore i assume that
    this is an issue of event handling. Maybe the combo box 2 does not refresh its selected value because it is already
    invisible when the values are restored.
    This case can easily be simulated by placing two combo boxes and a push button (that changes the visibility of
    the combo boxes) and the reset button on the canvas.
    Maybe someone can help. I am able to provide a test xlf, if neccessary.
    Thanks,
    Oliver
    P.S. I am using Xcelsius SP4 (Version 5.4.0.0)

    Hello Debjit_Singha_86,
    thank you for your support. At the moment i have the following setting:
    label based menu
    - General: Insertion Type "value" from a list of ID's for the menu-items to a dedicated cell (current menu ID, say tab1!$A$1)
    - Behavior: Selected item (position) fixted to item 1
    hidden combo box
    - General: Insertion Type "position" to a dedicated cell with the current choice (say tab1!$B$1)
    - Behavior: Selected item (position) to the same cell (tab1!$B$1)
    Can you give me a hint on how to connect the two components according to your solution, so that the label based menu sets the default for the hidden combox box only in case, that the reset button is pressed?
    Thanks,
    Oliver

  • Using Combo box at the backend

    Hi,
    I am using combo box at the backend to filter rows to a particular destination.
    The problem is the labels are going to populate at the runtime and the selection of item in combo box is also going to populate at the run time. I have an icon which inserts eg: country in a cell, then this cells is used by combo box as a item selection(label) to filter rows from source. But unfortunately the comb box is not selecting any value i.e no item is selected dynamically. But if i manually drill down it is working but the label is not changing dynamically based on the changes in label by icon.
    For eg my data:
    Country and profit populate at run time
    Country          Profit
    India               5000
    Germany        4000
    Now i have icon which selects country (hard coded in excel) upon clicking the mouse on it and inserts in A1 suppose the value hardcoded is "India". Now this A1 is used as a "selected item" for combo box. the source to combo box is the above country and profit which populates at run time.
    Now when i execute the dashboard. The value is inserted in A1 after clicking the icon but it is not picked up by combo box as "item selected" and hence combo box does not filter any data.
    Can any pls help.
    Thank you. I will award full points for correct solution.

    Hi Monammed,
    The said functionality should work. Please check your logic one more time. Also, try using some spreadsheet components mapped to the cells in question and understand how the data is flowing during run-time. This will help you test things. Delete spreadsheets when you are done with identifying the issue.
    Lets check the combo box mapping one more time : Map the source of the combo to the entire range; labels in the combo box ONLY to the country column in the source range(typically this may be the left most column in the range); selected item should be mapped to the cell that has the destination for the icon and the type for default selection may be dynamic. Well, if there is any hard-coding of values involved anywhere, do check the spellings and other trivial things.
    Do let me know if this was helpful and if you need any more help.
    Thanks,
    Prasanna

  • How to disply the input text box when the data in the table is empty

    Hi,
    I m using JDeveloper 11g 5.1.1.1 : How to display the Input text box when the data in the table is empty or by using the dual table.
    Since there is no record in the table, screen is displying only the lable. not displying the Input text box.? Any property is there to enable?.
    One more case i tried by using dual (eg Select '0' as name from dual) created one view object and dragged in the JSF screen as input combo box with list of values.
    In this case also it is not displaying the combo box.Just displaying the Lable name and 0 only.
    Regards
    Bijesh K

    Hi,
    I didn,t get you.Could you please explain. I am not choosing the ADF table. Selecting and dragging ADF form only.
    Regards
    Bijesh K

  • Ring or combo box control of date

    Hi, I am developing a GUI with ring or combo box indicating possible date, i.e., month, day, and year. Or is there a way to create multiple items ran sequentially in a ring or combo box control.
    the time stamp is alright, but can't get rid of the current time display in the set time and date dialogue . thanks alot.

    Hi rookieprgmer,
    You will have to format the date into a string to create a ring that contains all the data for the month, date and year. One method for separating the date from a timestamp is to use the Get Date/Time String. You could then take the date string and use it in the ring or combo box. Attached is an example of how to use that function.
    What do you mean by running multiple items simultaneously in a ring or combo box?
    Hopefully I covered what you were asking about.
    Sappster
    Attachments:
    date.JPG ‏7 KB

  • Combo box in the system form

    HI
    We r assuming  " freezing = Absent"
    When we select " freezing" in the combo box in the system form, "Absent" should be displayed in the matrix for the particular  row in the user form.
    Freezing should be displayed as Absent
    Working should be  displayed as Present
    what is the coding for this process . can anyone help me...
    Regards
    Bhuvana
    Edited by: bhuvana eshwari on Jul 30, 2008 6:45 AM

    Hi Bhuvana,
    In the combo Select Event, get the user form and then get the matrix then set the value. The code sample is as follows.
    Case SAPbouiCOM.BoEventTypes.et_COMBO_SELECT
                                If oCmbBox.Selected.Value = Freezing Then
                                     oForm = getForm("UserFormID")      
                                     objMatrix = oForm.Items.Item("UID").Specific
                                       objedit = objMatrix.Columns.Item("V_14").Cells.Item(pVal.Row).Specific
    ObjEdit.String = Absent
    ElseIF oCmbBox.Selected.Value = Working
               'Use same logic
    EndIF
    Reward with points if helpful.
    Regards,
    Vasu Natari.

  • Populating the data grid

    OK I think that is resolved but I cannot pull the Data.
    The Grid does not populate with data......Just keeps trying to pull it.
    THE CFC FUNCTION:
    <cffunction name="comments" access="remote" returntype="struct">
      <cfargument name="page" required="true">
      <cfargument name="pageSize" required="true">
      <cfargument name="gridsortcolumn" required="true">
      <cfargument name="gridsortdirection" required="true">
       <cfquery name="selectAll" datasource="#dsn#" dbtype="#i#">
        SELECT autoid, CONVERT(VARCHAR(10), sDate, 101) as sDATE, DAGRSN, branch,
          DODAAC, clin, hours
        FROM reporting.DAGRSCRAPS
       </cfquery>
      <cfreturn queryconvertforgrid(selectAll,page,pagesize)/>
    </cffunction>
    THE DATA GRID ITSELF:
    <cfform name="myform" id="myformid">
    <cfgrid
    name = "myGrid"
    format="html"
    bindOnLoad="yes"
    bind="cfc:pdgps.admin.backoffice.components.Data.comments({cfgridpage },{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection})"
    pageSize="10"
    preservePageOnSort="true"
    selectMode="single"
    selectOnLoad="no"
    font="Verdana"
    fontsize="11"
    label="True"
    stripeRows="true"
    stripeRowColor="##D9CCFF"
    selectColor="##994FE6">
      <cfgridcolumn name="autoid" display="no" >
      <cfgridcolumn name="branch" header="SERVICE" type="string_noCase" >
      <cfgridcolumn name="DODAAC" header="DODAAC" type="string_noCase" >
      <cfgridcolumn name="DAGRSN" italic="yes" display="yes" header="DAGRSN">
      <cfgridcolumn name="sDATE" display="yes" header="Date" mask="EEE DD-MMM-YY H:NN A">
      <cfgridcolumn name="clin" width="35" display="yes" >
    </cfgrid>
    </cfform>

    <cfargument name="gridsortdirection" required="true">
    <cfset var selectAll = "">
    <!--- this 'var' scopes the selectAll variable to be local to this function --->
    <cfquery name="selectAll" datasource="#dsn#" dbtype="#i#">
    Also, where are the 'dsn' and 'i' variables defined.  They do not appear to be part of this function.  Using a CFC function remotely has a great effect on what variables scopes may or may not be accessed.

  • Hot to use the data grid to edit column objects

    I have a simple object type:
    CREATE OR REPLACE TYPE TIMESLICE AS OBJECT
    SINCE TIMESTAMP (6),
    UNTIL TIMESTAMP (6)
    And a simple table with one column containing objects of this type:
    CREATE TABLE TABLE1
    COLUMN1 TIMESLICE
    I can insert into the table:
    INSERT INTO SLICES VALUES (timeslice (NULL, NULL));
    But when I try to use the data grid and write there the same string "timeslice (NULL, NULL)" as value I get the following error during commit:
    One error saving changes to table "TABLE1":
    Row 1: ORA-06550: line 1, column 55:
    PL/SQL: ORA-00932: inconsistent datatypes: expected UDT got CHAR
    ORA-06550: line 1, column 7:
    PL/SQL: SQL Statement ignored
    The data grid interprets the value as characters instead of an expression.
    How do I have to enter the object in the data grid?

    Is it possible to access the cache datasource inside the script component which is available in the same data flow task??
    Thanks in advance,
    Saravanan

  • How can change the font in the script output and the data grid ?

    How can change the font in the script output and the data grid in Sql Developer?

    You can't easily unless you have the latest version (2.1.1).
    If you do have this version then changing the font in the Tools/Preferences menu under the code editor/fonts section will also change the font of the data grid.
    For details of changing the fonts in an earlier version then see Sue's post below.
    http://sueharper.blogspot.com/2010/03/back-to-basics-changing-font-setting-in.html

  • How to determine # of recs in the data grid - with filter being used

    Say I'm looking at table or view that has 10,000 rows. I put a filter on the filter line such as state = 'WA'. Let's say the data grid (where I see the data clicking the 'data' button) now has 2,500 rows with the filter in effect.
    So, how do I tell how many rows are in the data grid now? I can see how to retrieve the total number of rows for the table or view, but how when a filter is in effect.
    Thanks.

    Okay thanks.
    Sure would have preferred to see (dare I say ... like TOAD) where you can just right click in the data grid and choose record count.
    But thanks - I'll use the COUNT method (till of course it's added 8-)
    Russ

  • Extract all the data grids in one click

    Hi All,
    I need to download all the data forms that i have in the system.
    We have a fat hierarchy and i'm looking for a short way to extract all the data grids without extracting from every folder in the hierarchy separately.
    I don't care about the type of the file/files. it can be one long file...
    Do you know what action i can perform here?
    Thanks,
    Orit

    Hi,
    What operating system are you using?  What version of Excel are you using?  It's possible you are using a version of Excel we do not support.  Also, can you send me an email with your exported Excel file, so I can try opening it myself?  My email address is [email protected]
    Thanks,
    Todd

  • Problem w/"combo boxes" cause the user to double click for the dropdown menu, but not for everyone.

    I have created a form with Adobe Acrobad Pro 9.
    There are a few "drop-down" boxes for people to choose options from.  I created them with the "Combo box" option.  They work perfectly fine on my laptop (Lenovo T500 windows 7, with all updates up to date.)  I sent the file to another exact same computer and that's when the problem came up.  When you click on the drop-down, the list will quickly appear and then disappear.  Then if you click it again it will stay open so you can choose your option.  However this only happens on "some" computers but not everyone's.  I emailed the exact same form out to other people in my office and they do not have any problems with the form.  There is no need to double click the drop down, it will just open up properly for them.
    Has anyone come across this? And if so, is there maybe a setting on these specific laptops that is preventing the "combo box" to not work properly?  I need to use this specific laptop as a "Kiosk" like a "check out" station for users to fill out the form to check out equipment.  I will be running in Reader so people can not make changes to the form.  (both the Acrobat Pro 9 version and the (most up to date) Reader version of the PDF form does the same "double-click" problem)  I need a date drop down and an equipment type drop down.
    Any suggestions would be greatly appreciated !
    Thanks !

    I've got this kind of problem with a form of mine (designed with LCD) :
    - combo boxes with font-color changing event handlers on :enter
    - on Acrobat 9 Pro : no problem
    - on Reader 8.3 :
          - first click seems to execute the event handler but stops the combo's opening
          - second click does open the combo
    Do you have event handlers on combo:enter ?
    Could the difference between comps where it works and comps where it doesn't be Acrobat's version ?

Maybe you are looking for