Derivative of af: line according to requirement table

Hi Experts,

I am a developer using J 11.1.1.5.0,

My scenario is,

I have a page Jsff, jsff page have an af:table. In this table with a 100 lines,.

My need is want to highlight the row in the table in different color based on column values.

How to get there

someone suggest me.

Thank you

There are some samples for this as the implementation of cell highlighting in JSF Rich Enterprise Applications and Andrejus Baranovskis Blog: changed line highlighting in Oracle ADF Table

The trick is to set the background via a bean method that can decide what color to return based on the values of the row.

Timo

Tags: Java

Similar Questions

  • Derivative of the line of the selected Table is endangered

    Hello

    I set up a page that lists information of storage volumes using af: table. I put it in place as follows:

    1. created read VO only using the query:
    SELECT 
        CLOUD_STORAGE_VOLUMES.VOLUME_ID VOLUME_ID, 
        CLOUD_STORAGE_VOLUMES.VOLUME_NAME VOLUME_NAME, 
        CLOUD_STORAGE_VOLUMES.VOL_STATE VOL_STATE, 
        CLOUD_STORAGE_VOLUMES.ACTUAL_VOLUME_SIZE ACTUAL_VOLUME_SIZE, 
        CLOUD_STORAGE_AGGREGATES.AGGREGATE_NAME AGGREGATE_NAME,      
        CLOUD_STORAGE_CONTROLLERS.CONTROLLER_NAME CONTROLLER_NAME,     
        CLOUD_STORAGE_MANAGERS.STORAGE_MANAGER_NAME STORAGE_MANAGER_NAME 
    FROM 
        STORAGE_VOLUMES CLOUD_STORAGE_VOLUMES, 
        STORAGE_AGGREGATES CLOUD_STORAGE_AGGREGATES, 
        STORAGE_CONTROLLERS CLOUD_STORAGE_CONTROLLERS, 
        STORAGE_MANAGERS CLOUD_STORAGE_MANAGERS
    WHERE
        CLOUD_STORAGE_VOLUMES.AGGREGATE_ID = CLOUD_STORAGE_AGGREGATES.AGGREGATE_ID
    AND
        CLOUD_STORAGE_AGGREGATES.CONTROLLER_ID = CLOUD_STORAGE_CONTROLLERS.CONTROLLER_ID
    AND
        CLOUD_STORAGE_CONTROLLERS.STORAGE_MANAGER_ID = CLOUD_STORAGE_MANAGERS.STORAGE_MANAGER_ID
    AND
        CLOUD_STORAGE_VOLUMES.IS_ACTIVE='Y'
    AND 
        CLOUD_STORAGE_AGGREGATES.IS_ACTIVE='Y'
    AND 
        CLOUD_STORAGE_CONTROLLERS.IS_ACTIVE='Y'
    AND 
        CLOUD_STORAGE_MANAGERS.IS_ACTIVE='Y'
    2. use this VO to display information in a tabular format. Here is the code of my jsff.
    <af:table value="#{bindings.StorageVolumesInformationVO.collectionModel}"
                                  var="row" summary="Storage Volumes Information" 
                                  rows="#{bindings.StorageVolumesInformationVO.rangeSize}"
                                  emptyText="#{bindings.StorageVolumesInformationVO.viewable ? 'No data to display.' : 'Access Denied.'}"
                                  fetchSize="#{bindings.StorageVolumesInformationVO.rangeSize}"
                                  rowBandingInterval="0"  styleClass="ADFStretchWidth"
                                  filterModel="#{bindings.StorageVolumesInformationVOQuery.queryDescriptor}"
                                  queryListener="#{bindings.StorageVolumesInformationVOQuery.processQuery}"
                                  filterVisible="true" varStatus="vs" columnStretching="column:c13"
                                  selectedRowKeys="#{bindings.StorageVolumesInformationVO.collectionModel.selectedRow}"
                                  selectionListener="#{bindings.StorageVolumesInformationVO.collectionModel.makeCurrent}"
                                  rowSelection="single" id="t5"> 
                           <af:column sortProperty="Manager Name"
                                     filterable="true" sortable="true" width="150px;"
                                     headerText="Storage Manager Name"
                                     id="c23">
                            <af:outputText value="#{row.StorageManagerName}"
                                           id="ot2"/>
                          </af:column>
                           <af:column sortProperty="Controller Name" filterable="true"
                                     sortable="true" width="150px;"
                                     headerText="Controller Name"
                                     id="c20">
                            <af:outputText value="#{row.ControllerName}" id="ot12"/>
                          </af:column>
                          <af:column sortProperty="Aggregate Name" filterable="true"
                                     sortable="true" width="125px;"
                                     headerText="Aggregate Name"
                                     id="c19">
                            <af:outputText value="#{row.AggregateName}" id="ot13"/>
                          </af:column>
                          <af:column sortProperty="Volume Name" filterable="true"
                                     sortable="true"
                                     headerText="#{bindings.StorageVolumesInformationVO.hints.VolumeName.label}"
                                     id="c13">
                            <af:outputText value="#{row.VolumeName}" id="ot4"/>
                          </af:column>
                          <af:column sortProperty="Volume Size In GB"
                                     filterable="true" sortable="true"
                                     headerText="#{bindings.StorageVolumesInformationVO.hints.ActualVolumeSize.label}"
                                     id="c22">
                            <af:outputText value="#{row.ActualVolumeSize}"
                                           id="ot14"/>
                          </af:column>
                          <af:column sortProperty="Volume State" filterable="true"
                                     sortable="true" 
                                     headerText="Volume State"
                                     id="c11">
                            <af:outputText value="#{row.VolState}" id="ot15"/>
                          </af:column>                                                              
                        </af:table> 
    3. this tab has 2 sections and it comes to the customer's requirement:

    4. the first section contains the information from tables. The user selects a row in the table. Size of the respective row of the volume will automatically appear in the second part as in the attached photo.

    https://picasaweb.Google.com/LH/photo/Gn0jc-Vx_TSPxNnVp-bKV6uPsAeeY8aOf8tFq8MAnwE?feat=DirectLink

    5. After selecting the line in the first... the line gets highlighted blue in color, which means that it is the selected line. Here's the question.

    6. once after that, if I click in the second pane, the selected line in the first pane is have disappeared. So, the user is unable to identify which line he chose. I need help from you, why the table behaves this way.

    Please check the code and suggest me what I'm missing?

    Thank you and best regards,
    Kiran

    Try this:

    create a custom look (extend the skin of 'fusion') and create css, like this:
    AF | : the table-row data: selected: inactive af | : given the column cell.
    AF | : the table-row data: selected: inactive af | column: banded-data-cell
    {
    background-color: gray;
    }

    Check this thread for more details:
    Highlight on the selected line disappear when af:table lose focus?

    Thank you
    Nini

  • Update multi lines according to a table of update

    Hello!

    I want to update multiple rows in a table according to a table of update like this:

    key
    col_a
    col_b
    123ABCdef
    456XYZUVW
    888KLMIJK

    The table to be updated has this (and other) columns. I use this code to do the update:

    Update my_table set t0

    col_a = (select col_a updates t1 where the t1.key = t0.key)

    col_b = (select col_b from t1 updates where the t1.key = t0.key)

    where

    key (select updates button);

    It works very well, but...

    .. .it seems to be ineffective. It seems that the systems needed to create keys in the table updates. He must then go through my_table and search the table updates twice for each update. Right? OK, the system can optimize it. I hope that. Is it possible to see how the system will perform the foregoing.

    .. .is too laborious to write in code. Is there a better way to specify:

    "For any row from my_table where the key is the key of table updates, updates col_a and col_b my_table with values according to table updates?

    THX!

    Hello

    1010848 wrote:

    Hello!

    I want to update multiple rows in a table according to a table of update like this:

    key
    col_a
    col_b
    123 ABC def
    456 XYZ UVW
    888 KLM IJK

    The table to be updated has this (and other) columns. I use this code to do the update:

    Update my_table set t0

    col_a = (select col_a updates t1 where the t1.key = t0.key)

    col_b = (select col_b from t1 updates where the t1.key = t0.key)

    where

    key (select updates button);

    It works very well, but...

    .. .it seems to be ineffective. It seems that the systems needed to create keys in the table updates. He must then go through my_table and search the table updates twice for each update. Right? OK, the system can optimize it. I hope that. Is it possible to see how the system will perform the foregoing.

    .. .is too laborious to write in code. Is there a better way to specify:

    "For any row from my_table where the key is the key of table updates, updates col_a and col_b my_table with values according to table updates?

    THX!

    FUSION is often more effective than the UPDATE, precisely for the reasons you mentioned.

    Try using the MERGER: http://docs.oracle.com/database/121/SQLRF/statements_9016.htm#sthref7153

    something like:

    MERGE INTO my_table mt

    USING update u

    WE (mt.key = u.key)

    WHEN MATCHED THEN UPDATE

    SET mt.col_a = u.col_a

    mt.col_b = u.col_b,

    ;

    If you would care to post a small example of data (CREATE TABLE and INSERT statements for both tables) and outcomes from this data, I was able to test this.

    Check out the Forum FAQ: Re: 2. How can I ask a question on the forums?

  • view multiple lines in the advanced table

    Hi all

    I have a requirement. I created advancedtable. When the page loads, to display 4 rows at a time. Can anyone please help how to achieve this req

    Kind regards
    Murali

    Hello

    Write the code below in AM that will create 5 blank lines in the advanced table.

    xxVOImpl voImpl = getxxLineVO1();
    voImpl.setWhereClause ("1 = 2");
    voImpl.executeQuery ();
    for (int i = 1; i)<=5>
    {
    Line = voImpl.createRow ();
    voImpl.insertRow (row);
    row.setNewRowState (Row.STATUS_INITIALIZED);
    row.setAttribute ("column1", i);
    row.setAttribute ("column2", "XYZ");
    }

    Kind regards
    Mary

  • Refresh the components within a specific line of an af:table programmatically

    How do I refresh the components within a specific line of an af:table programmatically without refreshing the entire table? _

    I have an af:table to display a view read-only object. There is a button change in the table by calling an af:popup, where the user can update the information and click on a submit button to commit its changes.
    The action of this button property is a method in a holder in the summer where
    -1: a stored procedure is called to update several tables (related to my read-only VO).
    -2: the VO is re-interviewed (refreshQueryKeepingCurrentRow() VO.)
    -3: updating of the whole table (AdfFacesContext.getCurrentInstance () .addPartialTarget (myTable))

    Is it possible to programmatically refresh some components of the current row in the table without refreshing the entire table (point 3)?

    I tried to play with the property "partialTrigger" to af: outputText (table: column: outputText), without success.

    Thank you

    Nicolas

    OK, that's a very clear answer, thank you.

    Now, first do a little optimization:

    if(!StringUtils.isStringEmpty(results) && results.equals("TRUE"))
    // should be
    if ("TRUE".equals(results))
    // since it's faster, simpler and requires one less dependency
    

    For your use case, you can say you want to always refresh the line, then you could link the table in your backing bean, retrieve the selectedRowKeys and then set the key for the current line on the model in the collection before adding the partial target. So, something like:

    Set selectedKeys = table.getSelectedRowKeys();
    assert selectedKeys.size() == 1;
    Object old = table.getRowKey();
    try
    {
        table.setRowKey(selectedKeys .iterator().next());
        addPartialTarget(outputText);
    }
    finally
    {
        table.setRowKey(old);
    }
    
    

    p.s. I checked the table rendering code to be sure and partial updating of the contents of the line must be possible without refreshing the entire table.

    Kind regards

    ~ Simon

  • line selected in the table in jdev11

    I have listener custom selection for table to do things according to the selected line, but when the table has a single row of this line is automatically selected my interlocutor of choice is not triggered, so my question is how to accomplish that, initially, no row is selected in the table?

    Depends on the use case, but you can do this by deleting the attribute selectedRowKeys of the table.

    Pedja

  • Get an "Unable to locate required tables" error at startup

    Original title: unable to locate required tables

    I have windows 7 ultimate 32 bit. When I used my computer last night and stop it, everything was fine. But today morning when I start my PC, instead of the windows loading screen, I get the following message:

    "FATAL ERROR: unable to locate the tables needed to make adjustments." Press any key to continue initialization. "

    When I press a key, it gives a list of options to start windows in:

    (1) safe mode

    (2) safe mode with networking

    (3) safe mode with command prompt

    (4) last known good configuration

    (5) start windows normally

    When I choose the option 4 or 5, the windows of the loading screen (which says "STARTING WINDOWS") appears after which it hangs or restarts.

    When I choose option 1, it loads several files up to a named "CLASSPNP. SYS "(pas sûr dele de nom) after which it hangs or restarts." I tried to start my DVD win 7 to repair my installation but after loading the necessary files, it just reboots or freezes at the loading screen windows.

    My PC Config:

    Intel Dual Core 2.00GHZ

    3 GB RAM DDR2

    Seagate 160GB HDD

    DVD - RW drive LG

    Gigabyte motherboard with BIOS F5 v 945GCMXS2 (I've never risked updated my BIOS).

    I do not have any hardware changes since the last successful startup (which was yesterday). Kindly help me with this problem.

    Try this:
    1. put your BIOS so that it uses the DVD drive as its primary boot device.
    2 start the computer with the Windows 7 repair CD or with your Windows 7 installation DVD.
    3. press a button if you are prompted to start from the DVD.
    4. When prompted, select "Safe Mode Command Prompt".
    5 log in as administrator if you are prompted.
    6. Select repair when prompted.
    7. When you are prompted, select System Restore.
    8. set Windows to a point before this problem occurred.
    _________________________

    If this answer solves your problem, please click "Propose as answer" so that the thread can be closed. Thank you.

  • Lines left in the table LT after removal of the direct workspace and the removal of all workspaces

    I had a lot of data in a table enabled version that has been modified in some workspaces.  The LIVE workspace, I deleted all the rows in the table and I then drove back the workspaces (yes I probably should have done differently).  Once workspaces have been cancelled table LT empty, I would have expected, but it wasn't.

    I can reproduce this in the example below.  I insert two lines in the test table and allow it to version.  In a workspace I update a row in the table, which leads to 3 ranks in LT as expected.  Live, I delete the two lines of the table that translates into 5 lines of LT which is fine.  So I restore and delete the workspace I created for the update.  At this point, nothing should versioned LT lines, so I expect to go, but two lines remain.  In my real-world scenario, it is initially questions as the table LT is now much more it must be and requests on the versioned table are slow.

    Is this expected behavior?  Can I do anything to clean?

    Thank you

    John

    scott@JOHNOT> select * from v$version;
    
    
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
    PL/SQL Release 11.2.0.4.0 - Production
    CORE    11.2.0.4.0      Production
    TNS for 64-bit Windows: Version 11.2.0.4.0 - Production
    NLSRTL Version 11.2.0.4.0 - Production
    
    
    scott@JOHNOT> create table test_wm_table (
      2    id number primary key,
      3    name varchar2(20));
    
    
    Table created.
    
    
    scott@JOHNOT> execute dbms_wm.enableVersioning('test_wm_table');
    
    
    PL/SQL procedure successfully completed.
    
    
    scott@JOHNOT> insert into test_wm_table (id, name) values (1, 'first value');
    
    
    1 row created.
    
    
    scott@JOHNOT> insert into test_wm_table (id, name) values (2, 'second value');
    
    
    1 row created.
    
    
    scott@JOHNOT> commit;
    
    
    Commit complete.
    
    
    scott@JOHNOT> select * from test_wm_table_lt;
    
    
            ID NAME                    VERSION NEXTVER     DELSTATUS LTLOCK
    ---------- -------------------- ---------- ---------- ---------- ------------------------
             1 first value                   0 -1                 10 *-1,-9,-1*$#SCOTT$#
             2 second value                  0 -1                 10 *-1,-9,-1*$#SCOTT$#
    
    
    scott@JOHNOT> execute dbms_wm.createWorkspace('test_workspace');
    
    
    PL/SQL procedure successfully completed.
    
    
    scott@JOHNOT> execute dbms_wm.goToWorkspace('test_workspace');
    
    
    PL/SQL procedure successfully completed.
    
    
    scott@JOHNOT> update test_wm_table set name = 'something else' where id = 1;
    
    
    1 row updated.
    
    
    scott@JOHNOT> commit;
    
    
    Commit complete.
    
    
    scott@JOHNOT> select * from test_wm_table_lt;
    
    
            ID NAME                    VERSION NEXTVER     DELSTATUS LTLOCK
    ---------- -------------------- ---------- ---------- ---------- ------------------------
             1 first value                   0 ,45,               10 *-1,-9,-1*$#SCOTT$#
             2 second value                  0 -1                 10 *-1,-9,-1*$#SCOTT$#
             1 something else               45 -1                 11 *0,10,0*$#SCOTT$#
    
    
    scott@JOHNOT> execute dbms_wm.gotoworkspace('LIVE');
    
    
    PL/SQL procedure successfully completed.
    
    
    scott@JOHNOT> delete test_wm_table;
    
    
    2 rows deleted.
    
    
    scott@JOHNOT> commit;
    
    
    Commit complete.
    
    
    scott@JOHNOT> select * from test_wm_table order by id;
    
    
    no rows selected
    
    
    scott@JOHNOT> select * from test_wm_table_lt order by id;
    
    
            ID NAME                    VERSION NEXTVER     DELSTATUS LTLOCK
    ---------- -------------------- ---------- ---------- ---------- ------------------------
             1 first value                   0 ,44,45,            10 *-1,-9,-1*$#SCOTT$#
             1 something else               45 -1                 11 *0,10,0*$#SCOTT$#
             1 first value                  44 -1                -11 *-1,-9,0*$#SCOTT$#
             2 second value                 44 -1                -11 *-1,-9,0*$#SCOTT$#
             2 second value                  0 ,44,               10 *-1,-9,-1*$#SCOTT$#
    
    
    scott@JOHNOT> execute dbms_wm.rollbackWorkspace('test_workspace');
    
    
    PL/SQL procedure successfully completed.
    
    
    scott@JOHNOT> execute dbms_wm.removeWorkspace('test_workspace');
    
    
    PL/SQL procedure successfully completed.
    
    
    scott@JOHNOT> select * from test_wm_table order by id;
    
    
    no rows selected
    
    
    scott@JOHNOT> select * from test_wm_table_lt order by id;
    
    
            ID NAME                    VERSION NEXTVER     DELSTATUS LTLOCK
    ---------- -------------------- ---------- ---------- ---------- ------------------------
             1 first value                   0 -1                -11 *-1,-9,0*$#SCOTT$#
             2 second value                  0 -1                -11 *-1,-9,0*$#SCOTT$#
    
    
    

    Post edited by: John OToole

    OK, I see.

    Options (depending on the structure of your current workspace if it is not as simple as in the example) are rollback, purgetable or compressworkspace.

    More information on when and how to use them can be found in this thread: https://community.oracle.com/message/4027735#4027735

    Rollback works in your example, certainly, but might not be applicable in a real scenario.

    Hope that helps.

    Kind regards

    Andreas

  • Allowing the movement line temporarily on partitioned table

    Hello

    Using oracle 11.2.0.3 and have tables that are hash of composite range partitioned.

    We need to update the dates of theses for a small percentage of records 1 < %.

    Normally we have movement line enabled so that can copy the lines in the temporary table, update insert_table, remove lines concerned living table and replace them with the new dates of the partition.

    Another option allowing possibly temporariliy movement line.

    Thoughts?

    Thank you

    Is there any disadvanatges to allowing it for example from performance perspective.

    Haerd was a bad iade of have it activated - perhaps isn't so bad.

    Tom Kyte meets ALL these questions (and more) in this blog:

    https://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:35203106066718

    If never actually cause you a row to move, then there is zero overhead. All the movmement of line enable does is give us permission to move a line, if you do not ask us to move the line - extra "nothing happens.
    . . .

    Follow-up Friday, March 10, 2009-02:00 UTC:

    Is there something wrong? Only you can answer that you have any application that expects the rowid is constant for a line? If yes - then it is false, if not - then it's probably OK.

    Any overload? No, it's just allowed to change a rowid if you perform an operation that would have caused a rowid to change - alter table t shrink compact space, flashback table t to..., update t set partition_key = some_value_that_moves_row;

    You can change a table instantly to activate circulation line - whatever the size of the table - it'll be instant - you have no need to do advance if you don't want, fairly easy to add later...

    I recommend you to read the ENTIRE blog because there are many other issues that should relieve your concerns and good examples.

    As says this quote above if you have an application that expects the ROWID is constant for a line, then you might have a problem.

    ROWID is the way the FASTER to search for a line. Sometimes the ETL process are complex and multiple operations on a line by multiple, separate steps.

    You can often get huge performance gains in saving the values ROWID lines collections or tables of work/temp during ETL processing. For example, a query in PL/SQL can use ' RETURN ROWID IN... "to get all of the ROWID that affects the query.

    This set of ROWID can be used in the following queries to locate the exact lines directly without the need of ALL indexes or other search criteria: WHERE ROWID IN...

    If the ROWID has changed during the process, it would be disastrous if these processes are written in:

    1. Enter the current setting of moving the line

    2. turn off the movement of the line during the process

    3 re-enable line movement ONLY if it has been activated prior to the start of the process

  • Remove empty lines in the merged table

    I'm looking for a script that will find and remove empty lines from a table that contains fields of fusion.

    I have a table of data with about 800 cases. This table is used to merge a page report which shows the various components of the employee's income. There are about 20 lines in the table and 5 columns. I apply the merge fields to a table in my .indd file and merging works perfectly. However, there are several features/components of income who share not all employees. Therefore, all pages of the 800-page report contains several blank lines should I have deleted so that the remaining data lines to snuggle up to each other.

    I need a script that will find blank lines in an .indd table and delete them. I found the script that did this and works perfectly on an ordinary table with blank lines. However, it seems that a table cell that contains a merge field (< < myField > >) is not necessarily 'empty', even if the data in this field is Null. I found that after the merger, I can highlight a blank line, press DELETE, run the script, and the line disappears, as needed. But it manually thousands of times would frustrate the purpose of the script. Also note that I've rubbed my data file to ensure that no hidden formulas, characters or spaces. The "Remove blank lines for empty fields" option does not work on the fields in the table (it seems to me. If I'm wrong, let me know).

    It seems that I really need script which will remove references to empty merge fields after the merger. I could run and then my other script.

    I have spent hours on this and hope someone can point me in the direction of a solution.

    Thank you!

    You can remove the markers of merge field by doing a search and replace of TEXT PLAIN for and replace it with nothing. That should allow your script to work.

  • Obtaining error APP-FND-00874: Routine FDFBDF found no line in the FND_DESCRIPTIVE_FLEXS table

    I wrote a stored procedure in our custom schema.  I have granted rights of running APPS to it.   When put in a concurrent program I get this message and it will not even start running. I'm under the it the purchase of Super user


    APP-FND-00874: Routine FDFBDF found no line in the FND_DESCRIPTIVE_FLEXS table


    So I created 2 exactly stored procedures as below but different name.  I put one in our custom schema and the other in the scheme of the APPS and I still get the same error message.


    create or replace

    PROCEDURE TESTPROCEDURE1 (errbuf OUT VARCHAR2, OUT VARCHAR2 retcode) HAVE

    BEGIN

    NULL;

    END TESTPROCEDURE1;

    Was that there was a control on behalf of the simultaneous request character and, possibly, the short name.   It was not visible until I stuck in another application.

    Thank you for all your help.

  • White line how unwanted continuous table titles?

    I managed to use a white rectangle to hide the "BOLD" line junk above table titles except when the table continuation variable is used for the tables continued on a second page. All the world has discovered a work around?

    bold line unwanted above the table titles

    Assuming you are using the default table definitions, have you tried to update the TableTitle style? or decision in the table style properties?

    I do not use the definitions by default, though I've never seen a title with a line in bold above. Maybe you could put a picture.

  • How to add new features to the line in the nested table advace?

    Hello

    I want to create a new line in the nested table advance.

    Help, please.

    Thank you

    Hello

    Use the code below to add a line in the nested Table.

    If (PageContext.GetParameter ("addRows")! = null) {}

    OAAdvancedTableBean sectionsTable = (OAAdvancedTableBean) webBean.findChildRecursive ("AdvTblRN");

    OAInnerDataObjectEnumerator sectionsEnum = new OAInnerDataObjectEnumerator (pageContext, sectionsTable);

    {while (sectionsEnum.hasMoreElements ())}

    Set of rows sectionsRowSet = sectionsEnum.nextElement () (set of lines);

    for (int i = 0; i)< 1;="">

    NewRow = sectionsRowSet.createRow ((OARow)) OARow;

    sectionsRowSet.insertRowAtRangeIndex (sectionsRowSet.getRowCount (), newRow);

    }

    }

    Thank you

    Dilip

  • Accuracy of counties line in the MySQL Table

    I was just looking at the counts of row of the table for some of my MySQL tables listed in HQ... some of these tables should only increase in number of lines (never delete us rows), but table varies greatly as to how many lines is in the table.

    So I have two questions...
    (1) these figures are absolutely not accurate... his watch a table which always increases in length as having 100 lines, then 75 and 90 and 88, etc..  IT should show 100, 101, 104, 110.

    (2) I know that the MySQL "SELECT COUNT (*) FROM tablename" statement is VERY slow on my servers.  HQ runs this command on my database?  If so, I need to disable this "feature" because he's going to kill my database.  The COUNT command on a table over 1 million lines takes an incredible amount of resources on my MySQL server... and we try to avoid to execute commands to COUNT on these large tables...
    (a) if it executes a SELECT COUNT?
    (b) can I turn that off?

    Thank you!
    Stephen

    Hello

    It seems to me that hyperic is not a command select count(), but one
    display the State of the table. It is incorrect when you use innodb tables...

    "Some drivers of storage, such as MyISAM tables, store the exact number. For others
    engine storage, such as InnoDB, this value is an approximation and may
    changing the actual value by as much as 40-50%. In this case, use
    SELECT COUNT (*) to get an accurate count. »

    The advantage of this is that it is not processor intensive.

    Rgds

    Simon.
    >
    > I was just looking at the counts of row of the table for some of my MySQL tables
    > listed in HQ... some of these tables should only be more and more
    > lines (never delete us lines), but the picture varies greatly as to how much
    > rows are in the table.
    >
    > So I have two questions...
    > 1) these numbers are absolutely not accurate... its a table showing that
    > increasing in length as having 100 lines, then 75, then 90, then 88,.
    > etc.  IT should show 100, 101, 104, 110.
    >
    (> 2) I know that the MySQL "SELECT COUNT (*) FROM tablename" statement is
    > VERY slow on my servers.  HQ runs this command on my database?  If
    > then I have to disable this "feature" because he's going to kill my database.  The
    > Order of COUNTY on a table over 1 million lines takes an incredible amount
    > resources on my MySQL server... and we try to avoid running COUNT
    > orders on these large tables...
    (> a) if he executes a SELECT COUNT?
    (> b) can I turn that off?
    >
    > Thank you!
    > Stephen
    >
    > --
    > This message has been scanned for viruses and
    > dangerous by MailScanner and is content
    > supposed to be clean.

  • making line for the current line on the expansion table

    Hello

    I use JDeveloper 11.1.1.5.0

    I have a table with facet detailstamp enabled. Each line is to have an arrow icon to expand this line.

    My problem is that line expand action seem to work independently with the selection of rows in the table. When I develop a line, it does not only rank as current. I tried with the code below to make the line of the current table, but could not do.
        public void makeCurrentRow(RowDisclosureEvent rowDisclosureEvent) {
            usersTable = (RichTable)(rowDisclosureEvent.getSource());        //usersTable is the binding of the table on the page
            RowKeySet discloseRowKeySet = usersTable.getDisclosedRowKeys();
            usersTable.setSelectedRowKeys(discloseRowKeySet);
    
            AdfFacesContext.getCurrentInstance().addPartialTarget(usersTable);
        }
    Please let me how can know I do the table row under the current name on the expansion of this line.

    Kind regards
    Fox

    I implemented a sample here http://tompeez.wordpress.com/2013/04/12/make-disclosed-row-the-current-row-when-using-a-detail-facet-of-a-table/

    Timo

  • Maybe you are looking for

    • Why do I constantly re - save to sync?

      It seems that lately, every time I open Firefox, I have to re - connect to sync. It has become a real nuisance. Is there a reason for this?

    • Satellite M40-100 (PSM40E-01Y01RNO) - fnkeys Linux

      Hello I was wondering... The fnkeys works very well on Express Media Player from Toshiba, which is based on Linux, but Toshiba does not output fnkeys drivers for Linux... Why is this? Best regardsMateusz

    • Uninstalling HP Simple Pass

      I have problems with the fingerprint reader - most of the time that it does not recognise my fingerprint until I have scan 10 to 15 times.  Try to uninstall the program, I get a warning message indicating the deletion can cause problems.  How to remo

    • How blackBerry smartphones to get back to the old operating system?

      I have a system on my blackberry storm verizon 4.7.0.113 unofficial operting.   I would like to return to the official os from verizon.75.  How I would go to this topic.  I tried to do a search to find the answer, but struggling to find it. Thanks fo

    • Administrator cannot access the different (seemingly random) files

      Windows XP on my desktop computer connected to the home network and regularly synchronized with Windows 7 Home Premium on my laptop Problem #1 I'm trying to access the files I often consulted on both computers before and now I'm getting "access is de