Controlling the Grid Control

I am using a master detail, say in this example the dept-emp tables. In the gridControl i want to display the Commission column only for DEPT 10. How can I set a CommrowSetInfo3.setDisplayed(false) at runtime for deptno = 20 or 30? I tried using
String temp = textFieldControl2.getText(); to get the value of the deptno however i am unable to "un"-display the commission. Any help greatly appreciated...Thanks

The grid control is 'based on' a jtable.
I had to learn all about this, too, Sha725. If you're going to do much with Jtables, you need to know about the relationship between table models and tables and such.
I suggest the Core Java 2 Fundamentals Vol 1 and 2 from PTR/PH. You can also use HELP to find out about jtable and tablecolumnmodels and such... but, I found it very, very difficult without a general overview.
This isn't as much a JDev issue as a basic understanding of Swing components and how everything hangs together.
I could include lots of code here, but it would be very cryptic unless you have been through a manual on the stuff. ( OH... the stuff is NOT Oracle or JDEV specific ). Simply cutting and pasting code samples I've found, can be quite dangerous without understanding what is going on.
Sorry if this sounded evasive.
Good Luck!

Similar Messages

  • Hiding a column Attribute in the Grid Control in a DAC form.

    Hi,
    My RowsetInfo has a Image AttributeInfo and other kinds of AttributeInfo.I wanted to display the image in a seperate area in the form.The remaining Attributes would come in form as a detail grid.
    However, since I bind the Grid control to my rowsetInfo, and also since my rowsetinfo has an image AttributeInfo, I see an Image column there(which ofcourse contains references to these Image objects!!).
    I would want to hide this column in the grid.How do I go about it?Do I need to create a seperate rowsetinfo for the Image controlor there is a workaround for this?
    Any ideas??
    --Sandeep                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi,
    Going through the previous discussions in this forum, I had also tried the following :
    JTable table = detailGrid.getTable();
    TableColumnModel tableColumnModel =
    table.getColumnModel();
    table.removeColumn(tableColumnModel.
    getColumn(1));
    This doesnot seem to work.I get the following exception:
    java.lang.ArrayIndexOutOfBoundsException: 1 >= 0
    java.lang.Object java.util.Vector.elementAt(int)
    javax.swing.table.TableColumn
    javax.swing.table.DefaultTableColumnModel.getColumn(int)
    void DAC2Package.DAC2Frame.jbInit()
    void DAC2Package.DAC2Frame.<init>()
    void DAC2Package.DAC2Application.<init>()
    void DAC2Package.DAC2Application.main(java.lang.String[])
    Since I have quite a few number of columns in the GridControl, I shouldnot be getting this
    exception in the first place.
    Also, I donot understand why
    tableColumnModel.getColumnCount() prints zero in the console.
    Thanks in advance,
    Sandeep
    null

  • Error creating a user defined report in the grid control

    I am trying to create a simple User Defined report in the Grid OEM
    Under the 'Elements' tab I have a 'Type' - 'Database Table from SQL'
    And I have this 'Statement' - SELECT * FROM SYS.DBA_USERS
    When I Click the 'Preview' button I get this error.
    Error rendering element. Exception: ORA-00942: table or view does not exist
    I'm logged on as SYSTEM.
    Isn't the SYS.DBA_USERS table accessible by SYSTEM?
    Any advice on what I'm doing wrong/
    Edited by: bfee_sdc on Oct 19, 2010 9:12 AM

    What are the tricks?
    It has to be some what supported since I found this somewhere in an Oracle note...
    How to create custom reports on tables other than mgmt* views.
    To create reports on other tables, grant permissions to MGMT_VIEW user as MGMT_VIEW is responsible for creating reports in grid control
    SQL> GRANT SELECT on SYSMAN.<table_name> to MGMT_VIEW;
    And then create the reports in the reporting framework referencing SYSMAN.<table_name> in the query.
    I tried GRANT SELECT on SYS.DBA_USERS to MGNT_VIEW but this did not work.

  • Upgrading Management Agents after upgrading the Grid Control to 10.2..0.5

    Hello:
    I am pretty new to implementing Grid control. I have been assigned the task of upgrading the Grid control to 10.2.0.5. I successfully upgraded the GC to 10.2.0.5. Now the next task is to upgrade the Agents running on other Database nodes. I have 6 databases running on Solaris 9.0 , few of them running on RHEL 5.0 x86, a few of them on RHEL 5.0 86*64. I am looking to upgrade these agents in one shot. Is there any way I can accomplish this from Grid control. If it is the case, then do I have to download and upload the patchsets for 10.2.0.5 for various platforms into the Grid Control.
    I would be very happy if you could give me valid pointers which would help me to understand and move further.
    Regards,
    Bala

    Yes you can upgrade the agent at one shot.Refer the following OBE
    http://www.oracle.com/technology/obe/obe10gemgc_10204/agentpatch_upgrade.htm

  • Displaying Date types in the grid control

    I have a grid control and one of the column is displaying
    'Date' type data. I am able to see the Date values in the grid, if
    I define the return type of the getter function as String format.
    But the problem with this is, when I click on the Date column
    header, the grid is sorting the rows while treating the Date values
    as String values. And when I change the return type of the getter
    method as Date type (java.util.Date), I don't see any Date values
    in the grid. Do I need to do any additional coding to display the
    date values as Date types to display the data and then to be able
    to sort the grid on Date types.
    Please help.

    You should return Date values to the Flex application and
    store them in the dataProvider associated with that DataGrid. For
    Date-values you have a couple of choices:
    1. Actually store the time (a long Number - milliseconds
    since Jan 1970) and use a labelFunction on the column to format
    that values as a Date. This way sorting will treat the value as a
    number, but it will appear as a Date.
    2. Write your own Sort compare method for that column. Check
    the docs on Sort and SortField.

  • How can i confirm that i have the grid control ?

    Hi,
    I have oracle 10g database , we have dbconsole. But i don't know wherther we have the grid control or not ??? how can i check that ??
    And one more thing , i have the oracle 817 databases , in need to register that database into the GRID . Can any one send me the proper doc. for 817 to install into grid control db.
    $ emctl status dbconsole
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.3.0
    Copyright (c) 1996, 2006 Oracle Corporation. All rights reserved.
    http://prodgv1:1158/em/console/aboutApplication
    Oracle Enterprise Manager 10g is running.
    Logs are generated in

    I have oracle 10g database , we have dbconsole. But i
    don't know wherther we have the grid control or not
    ??? how can i check that ?? What are you looking for exactly? What does "do we have the grid control" mean?
    Did you download and install this?
    A "default" install comes with three Oracle homes, with directories db10g, oms10g and agent10g in the 'basedir'. Kinda hard to miss...
    With proper environment setup, you could try
    $ emctl status oms
    To manage Targets (as called in EM terms), you would install a Management Agent on each host to start monitoring hosts, listeners, databases, application servers, oc4j instances, and other types of targets. You "add hosts" via addition of agents.
    And one more thing , i have the oracle 817 databases
    , in need to register that database into the GRID .
    Can any one send me the proper doc. for 817 to
    install into grid control db.No need to send anything, the documentation is available here on OTN (look in the top menu "shortcuts", Documentation -> Enterprise Manager).
    There are several options (version dependent of course) available for deploying agents. But you need a OMS + Repository first.
    Further discussion probably belongs in the dedicated Enterprise Manager.
    Message was edited by:
    orafad

  • Access the gridview of the grid control

    Hi all
    It may seem a weird title, but this is exactly my problem.
    I am using winforms with devexpress tool in my application. I want to access the selected row of a grid view from another form. so I used the following code:
    foreach (XtraUserControl usrControl in splitContainerControl.Panel2.Controls)
                    if (usrControl is MY_USER_CONTROL_NAME)
                        foreach (Control grid_control in usrControl.Controls)
                            if (grid_control is GridControl)
                                //up to this point i must be able to access the grid control, and after that access the grid
    view by using
                                //the following statement as I found in other forum
                                GridView myView = grid_control.ViewCollection[0] as GridView;
    the problem is I cannot get this ViewCollection[] property of the grid control
    any help???

    Hi khidir,
    As far as I know, devexpress is not a Microsoft product, thus the issue of devexpress you could go to the official site of devexpress for professional support.
    The link might be useful to you:
    #How to get field value of selected Row Devexpress GridView?
    http://stackoverflow.com/questions/19206186/how-to-get-field-value-of-selected-row-devexpress-gridview
    The official site of devexpress as below:
    https://www.devexpress.com/
    If you have any further questions, please feel free to post in this forum.
    Best Regards,
    Leo

  • Overview of all the Grid Control Parts

    It's pretty basic how the Grid Control database (OMR), Web Services (OMS) and agent components work together.
    My questions is how these components use different tools such as PL/SQL, Java, OC4J, Application Express, XML and Perl to communicate and perform the work.
    Can anyone point me to documentation for a BIG picture? Describe a overview how this component talks to that component.
    What brings this up, is that I am doing an install. I see some Java errors and it is executing a perl script ConfigureGC.pl. What is really going on here?

    Hi Sonja,
    There is currently no way to do that, since there is no difference between the documents, linked or not.  You can check the note   918386 which explains how this works exactly and why there is no way to know where the document was created originaly.
    Kind regards,
    Fabricius

  • Whats the functional difference between dbconole and using the Grid control.

    I know this may seem like a strange question, but I was wondering if I only have one instance on my server, would benefit would i gain if I installed and configured the grid control
    over the dbconsole that comes with the 11gr2?
    I know the Grid control can discover many databases, but what else can it do that the dbconsole cannot?
    thanks!

    Hi,
    Indeed good question.
    It depends on installation type you selected. But are responsible for user administration in terms of creating, deleting, updating and role assignment tasks to users and groups.
    --CUA is meant for ABAP Installation. CUA is responsible for entire landscape user administration works with RFC connection talking to all ABAP systems
    --UME is meant for Java installations, plus UME is responsible for handling communication between ABAP users and java users.
    UME
    For more details see below links all advantages and disadvantages of both systems and comparisons deliberately.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/d2/3e3842b23d690de10000000a155106/frameset.htm
    Thanks,
    Amit Lal
    P.S Please don't forget to reward pts.

  • The Grid control installer has inside an Oracle Server ?

    Hi
    The Grid control installer has inside an Oracle Server to create the Repository Database or I have to install and Oracle Server before ?
    Thanks

    I have installed both Grid Control and with GC 11g and WebLogic Server and I don't recall creating the respository before the install.
    You will have to choose which install you are going to use. Grid Control 11g requires WebLogic Server install.
    Grid Control 11g >>> http://download.oracle.com/docs/cd/E11857_01/index.htm
    Grid Control 10g >>> http://download.oracle.com/docs/cd/B16240_01/doc/nav/portal_booklist.htm
    KDSDBA
    OCP

  • Plot fill hides the grid.

    I want to use color regions on my graph. But, if I use a background image, it doesn't adjust with the scale.
    If I use plot fill and create data arrays for my boundaries, it hides the grid.
    Does anyone know how to accomplish this? (see attached pictures)
    Attachments:
    NI Waveform Graph.png ‏66 KB
    No Grid.png ‏28 KB

    Here are some options, although I don't particularly like any of them. I think I would go with one, because it's the simplest:
    Use the BG image, but generate it yourself so that it matches the scale. To do this, you can call the Map Coords to XY method of the graph, which will tell you the size in pixels of each region, which can then be used to build the picture using the picture VIs. The main reason I don't like this is that it's not entirely clear when to do this (when new data comes in, when the user changes the scale, etc.) and that it depends on the data being displayed before you can get the correct values. These can probably be handled if you do this in a loop every N ms and if you defer updates before writing the data to the graph.
    Use the picture control VIs to build the entire graph. Then, you can simply draw the scale on top of the BG. There's a palette of VIs for drawing graphs.
    Use .NET controls. There's an example of using a chart library in the UI interest community.
    Use a 3D picture control, which I believe supports transparency. I'm not sure how easy it would be to construct all the graph pieces.
    Try to take over the world!

  • Cannot print without the GRID showing thru...

    Apparently there is no way to print an imported Excel Sheet without the GRID.
    Every sheet is imported as a single table with it's GRID showing up as a visible border. Simply, it does not recognize the difference between a GRID and a BORDER.
    The only way to get rid of the GRID, is to completely reformat the document by taking out all BORDERS and applying new ones.
    That will not work! No one is going to spend time reformatting a document that works perfectly in Excel.
    Until this is solved, Numbers will seldom be used.

    I have a 20 tab excel workbook with several printed pages on each tab that I work with regularly. It has many text boxes, borders thicknesses,and hatches. It imports just fine into numbers with a little tweeking of content scale to get it to print one page wide. I tried cahnging the color of the cell borders to white and cell borders to none. Guess what? It takes out ALL the fancy ones as well.
    I am printing and submitting these sheet to a government facility and they are not complaining (so far) with ghost grid lines, But it sure would be appreciated to have more control over the printing of these unneeded gridlines.
    I really don't want to recreate the whole thing and am trying to abandoned my addiction to excel all together.
    Message was edited by: KrrP
    Message was edited by: KrrP

  • Is it possible to have the Grid Server send an alert for blocking locks?

    All,
    We are deploying a new custom application. I'm the DBA. Our development team wants to be alerted if any processes in this new application are being blocked for more than 30 seconds. I believe that I can setup an notification from the Grid Control to alert me if more than 1 process is waiting but I'm not sure about the ability to alert when a blocking lock is occurring for more than a period of time.
    Does anyone know if this is possible? Or , can anyone give me some points on how I might write a custom notification?
    Thanks in advance.
    John

    OEM provides this metric out of the box though if you wanted to limit the check to a specific type of lock, or application you would have to write your own UDM (User Defined Metric) which is a trivial task. The minimum time interval is minutes but I assume you could use 0.25 minutes to check every 15 seconds, and be notified if it repeats twice (so this would be 2 repeated alarms over 30 seconds and match your criteria, correct?).
    Check the documentation for creating a UDM if you choose to go that route.
    Hope this helps.

  • Can I turn off the grid in Proto?

    Is there any way to hide the grid in Proto?

    Yes.  Tap the Grid icon in the menu bar (insert screen shot?).  You should see options to turn the Grid on/off, as well as controls for Snap to gri, CSS Columns, and Grid details (spacing).

  • Trying to add another DB under SCAN via DBCA "Default listener LISTENER is not Configured in the grid infrastructure home"

    Trying to install another DB under RAC using SCAN listener on a new port.  DBCA gives error "Default listener LISTENER is not Configured in the grid infrasturcture home".
    Have tried srvctl config listener, srvctl start listener to start the listener.  Still not able to get past the DBCA error.  What am I missing?  Do not want to start LISTENER on port 1521 as SCAN is running on 1521.

    No your Database config does use hostname/ip + port or a tns-entry pointing to the local_listener. Neither method does care for the home the listener is running from.
    You will however have to take care of the entries in the clusterware, as the listener is a controlled resource. If you manually relocate it, then it will only work until next restart of crs stack.
    The simplest way to switch the home is by running first netca from database home and delete the listener and then switch to grid home run netca again and create the listener.
    netca will take care of registering it with crs with the correct environment settings. You will have a short period where your rac won't have a listener and therefore won't accept new connections until the new listener is up and running.
    Relocating the current listener requires to modify several parameters via crsctl in the cluster registry, but allows doing this node by node without complete outage.
    If you want to go that way, then create another listener from grid home and compare the settings of current listener and of the new listener. You will need to update several parameter before you can relocate it.
    Run this command to show the current settings and compare it to the listener from grid home:
    crsctl stat res ora.LISTENER.lsnr -p
    You will need to modify serveral parameters, ACTION_SCRIPT,AGENT_FILENAME,ALIAS_NAME,ORACLE_HOME and the ACL
    Modify works like this, for ACL you must use the encasing single apostrophe ' and run it as root:
    crsctl modify res ora.LISTENER.lsnr -attr "ACL='owner:oracle:rwx,pgrp:oinstall:rwx,other::r--'"
    I would recommend Version 1 if short outage is acceptable. For both variants verify that you can resolve all tnsnames entries in both homes.
    Regards
    Thomas

  • Can DataGrid have the grid view?

    Hi,
    I have two DataGrids that can drag-drop data between source_datagrid and target_datagrid by defining the dragEnter and dragDrop events.
    DataGrid control has list-based view, is there a way to convert the DataGrid control to display the grid-view?
    If I need to make another control for the grid-view display, can you point out the example that what controls to use?
    and how to do the drag-drop from this grid-view control to dataGrid?
    Thank you very much.

    Instead of using a DataGrid, you could use a Tile or TileList component.
    DataGrid does not have your desired behavior.
    You could create a custom component that uses states to display data in a DataGrid or Tile/TileList and switch states as appropriate.
    If this post answers your question or helps, please mark it as such. Thanks!
    http://www.chikaradev.com
    Adobe Flex Development and Support Services

Maybe you are looking for