NULL selection issue

Hi
SELECT Count(T1.TaskID), T3.CODE, T1.CompletedPercent
from Task T1, Contract T2, T_Code T3
where  T1.LinkID = T2.ContID
and T2.ContCode  = T3.CODEID
and T1.CompPercent =
CASE T3.CODE
         WHEN 'Hold' THEN NULL
         WHEN 'Active' THEN NULL
         WHEN 'Completed' THEN 600.00
      END
Group By T3.CODE, T1.CompPercentIn the above query I get results as below
1832        'Completed'  600.00But when check below records also there
1500     Hold             NULL
1600     Active          NULLAny issue with the query regarding NULL values?
Cheers
Shabar

Hi, Shabar,
shabar wrote:
Hi Frank Kulash
Following is the sample data
WITH Task AS
(SELECT 'aaa' LinkID, NULL CompPercent FROM dual UNION ALL
SELECT 'bbb', NULL FROM dual UNION ALL
SELECT 'ccc', 600.00 FROM dual UNION ALL
SELECT 'bbb', NULL FROM dual UNION ALL
SELECT 'bbb', NULL FROM dual UNION ALL
SELECT 'ccc', 600.00 FROM dual UNION ALL
SELECT 'aaa', NULL FROM dual),
Contract AS
(SELECT 'c1' ContCode, 'aaa' ContID FROM dual UNION ALL
SELECT 'c2', 'bbb' FROM dual UNION ALL
SELECT 'c3', 'ccc' FROM dual),
T_Code AS
(SELECT 'c1' CODEID, 'Hold' CODE FROM dual UNION ALL
SELECT 'c2', 'Active' FROM dual UNION ALL
SELECT 'c3', 'Completed' FROM dual)
SELECT Count(T1.TaskID), T3.CODE, T1.CompletedPercent
from Task T1, Contract T2, T_Code T3
where  T1.LinkID = T2.ContID
and T2.ContCode  = T3.CODEID
and T1.CompPercent =
CASE T3.CODE
WHEN 'Hold' THEN NULL
WHEN 'Active' THEN NULL
WHEN 'Completed' THEN 600.00
END
Group By T3.CODE, T1.CompPercentI need to geth NULL value records as well
Cheers
ShabarThat query is referencing some columns that are not in the tables.
What are the results you want from that data? Are they what you posted before:
Count      Code                Value
1832        Completed'       600.00
1500        Hold                 NULL
1600        Active               NULL? If so, explain how you get the numbers in the first column from the sample data you posted.
What is wrong with the solutions I posted earlier?

Similar Messages

  • Menu selection issues in Flash CS4 for Mac

    I'm having a few menu selection issues in Flash. It seems some fields are de-selecting automatically (and quickly). For instance:
    1) When I double-click a layer to change it's name, it highlights then immediately de-selects. I can only rename by right-clicking and bringing up the Properties dialog.
    2) Fields highlight briefly then immediately de-select in the Properties menu when using the Tab button to advance or cycle thru fields. I have to click on each field individually to enter dimensions/characters.
    Possibly related...
    On occasion, I'm having an issue in Photoshop where the tools are off by 30 pixels or so. Examples:
    - Paint brush affects an area approximately 30px to the right and down from the brush head.
    - Selection tool selects an area approximately 30px to the right and down from the arrow head.
    This only happens on occasion and can be fixed by restarting Photoshop. I have not had any luck fixing the problems experienced within Flash.
    I'm experiencing this on two different machines that have CS4 installed. My only guess is a conflict with a Logitech driver OR a Wacom driver, but I have uninstalled the software and unplugged the Logitech mouse and Wacom tablet to no avail.
    Long time Flash/Photoshop user.... never had a problem like this.
    Anyone else have these issues or know a fix?
    Mac OS X 10.5.7
    Macbook Pro & iMac
    Logitech Control Center 2.7.0
    Wacom Driver 6.1.1-2(RC) for Mac OS X v. 10.4 & 10.5

    Hi there,
    This is a known issue, however we have not been able to reproduce it internally. The way to fix it (assuming it's the same problem) is to change your workspace (such as resetting to a default shipping layout, and then modifying from there), as it seems as though something about the workspace is causing the problem. It could be very specific to where its layed out on your monitor(s), some exact pixel size of a panel and/or grouping - and so on. However, we haven't been able to reproduce this internally yet - only reproed and fixed similar problems - so I cannot say for sure, however changing the workspace has fixed it for the other users I've talked to seeing this one.
    If you are able to share the following about one or both of your computers and send it to jdh (at) adobe, greatly appreciated:
    * workspace XML file from the Configuration directory (before changing the workspace!)
    * description monitor layout (ie: primary on left, secondary on right... or "one" )
    * monitor resolution(s)
    * screenshot(s) of your layout exhibiting the problem
    Thanks!

  • Datagrid select issue

    I am using flex builder 2.01 and have been using datagrids
    for a while now. I have recently ran into a weird situation where I
    have one datagrid out of three that just will not allow a manual
    selection. If I set the index to 0 for instance, the initial view
    of the datagrid shows the first item selected. If I go to select a
    different item, the first item becomes unselected and no other item
    can be selected. If I leave the initial state to be no item
    selected, I can never select an item. All other datagrids are
    working fine. I have tried to set selectable to true but that
    didn't help. This is really odd, any assistance would be greatly
    appreciated.

    Mmmm... Well the good news is I fixed it. The bad news is I
    have no clue why it fixed it. This particular datagrid is in a
    different tab in a tabnavigator panel. Attached is the expanded
    working code. On the line:
    <mx:Canvas label="Archived" width="100%" height="100%"
    id="ArchiveTab">
    I had a click="{GetPropertyArchive()}" to refresh the data on
    tab selection. This was old code that was made unnecessary at a
    later date but I did not remove the code. My guess is the datagrid
    assumed the characteristics of the parent tabnavigator and instead
    of ... wait that can't be right. If that was the case then changing
    the datasource would not have fixed the select issue because the
    'click' definition on the tabnavigator still existed. I would
    really like to understand why this mattered so I could avoid this
    issue in the future. Any ideas??

  • Select list null value issue - for filtering the tabular form report

    hello,
    I have a tabular form created on emp table and in the table their are entries for the employees who don't have a location, like it is null for some of the employees.
    Now I have created a select list item - for filtering the results based on location.
    my select query for select list item is
    select distinct location_name d,location_id r from emp order by 1
    -- so my select list contains all the distinct location_name including the null on my tabular form.
    so based on the selelcted value(in the select list), I am able to filter the results in my tabular form.
    but the thing is that when i try to select an null value from my select list - i am not able to filter my report - like its displaying all the records, its not filtering.
    can anyone help me out with this.
    thanks.

    Hi
    Try below select for LOV
    select distinct nvl(location_name,'No Location') d,nvl(location_name,'No Location') r from emp order by 1 And then change tabular from select where clause also use nvl(location_name,'No Location') like
    SELECT *
    FROM emp
    WHERE nvl(location_name,'No Location') = :Px_YOUR_ITEMBr, Jari

  • NULL IS NOT NULL filter issue

    Can someone explain why 'Y' = 'N' is not working with PARALLEL Plan? i.e. With the filter like 'Y' = 'N' specified and if PQ is used , it does not return instantly. In fact it reads the entire table.
    Here is the test case.. Goal is to execute only one of the SQL joined by union all. I have included 'Y' = 'N' in both SQLs for the test purpose.
    DB Version is 10.2.0.4
    Create table test_tbl_01 nologging as select do.* from dba_objects do , dba_objects d1 where rownum < 22000001;
    Create table test_tbl_02 nologging as select do.* from dba_objects do , dba_objects d1 where rownum < 22000001;
    execute DBMS_STATS.GATHER_TABLE_STATS('SCOTT', 'TEST_TBL_01');
    execute DBMS_STATS.GATHER_TABLE_STATS('SCOTT', 'TEST_TBL_02');
    *Serial path with 2 table join*
    SQL> select
      2    /* parallel(t1,2 ) parallel(t2,2) */
      3    t1.*
      4    from test_tbl_01 t1 ,test_tbl_02 t2
      5    where t1.object_name = t2.object_name
      6    and  'Y' = 'N'
      7    and  t1.object_type = 'TABLE'
      8    union all
      9    select
    10    /* parallel(t1,2 ) parallel(t2,2) */
    11    t1.*
    12    from test_tbl_01 t1 ,test_tbl_02 t2
    13    where t1.object_name = t2.object_name
    14    and  'Y' = 'N'
    15  /
    no rows selected
    Elapsed: 00:00:00.01
    Execution Plan
    Plan hash value: 3500703583
    | Id  | Operation            | Name        | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT     |             |     2 |   168 |       |     0   (0)|          |
    |   1 |  UNION-ALL           |             |       |       |       |            |          |
    |*  2 |   FILTER             |             |       |       |       |            |          |
    |*  3 |    HASH JOIN         |             |   660G|    50T|   449M|  6242K (99)| 24:16:38 |
    |*  4 |     TABLE ACCESS FULL| TEST_TBL_01 |  5477K|   386M|       | 41261   (2)| 00:09:38 |
    |   5 |     TABLE ACCESS FULL| TEST_TBL_02 |    22M|   212M|       | 40933   (2)| 00:09:34 |
    |*  6 |   FILTER             |             |       |       |       |            |          |
    |*  7 |    HASH JOIN         |             |  2640G|   201T|   467M|    24M(100)| 95:54:53 |
    |   8 |     TABLE ACCESS FULL| TEST_TBL_02 |    22M|   212M|       | 40933   (2)| 00:09:34 |
    |   9 |     TABLE ACCESS FULL| TEST_TBL_01 |    21M|  1546M|       | 41373   (3)| 00:09:40 |
    Predicate Information (identified by operation id):
       2 - filter(NULL IS NOT NULL)
       3 - access("T1"."OBJECT_NAME"="T2"."OBJECT_NAME")
       4 - filter("T1"."OBJECT_TYPE"='TABLE')
       6 - filter(NULL IS NOT NULL)
       7 - access("T1"."OBJECT_NAME"="T2"."OBJECT_NAME")
    Statistics
              1  recursive calls
              0  db block gets
              0  consistent gets
              0  physical reads
              0  redo size
            567  bytes sent via SQL*Net to client
            232  bytes received via SQL*Net from client
              1  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
              0  rows processed
    *Parallel path with 2 table join*
    SQL> select
      2    /*+ parallel(t1,2 ) parallel(t2,2) */
      3    t1.*
      4    from test_tbl_01 t1 ,test_tbl_02 t2
      5    where t1.object_name = t2.object_name
      6    and  'Y' = 'N'
      7    and  t1.object_type = 'TABLE'
      8    union all
      9    select
    10    /*+ parallel(t1,2 ) parallel(t2,2) */
    11    t1.*
    12    from test_tbl_01 t1 ,test_tbl_02 t2
    13    where t1.object_name = t2.object_name
    14    and  'Y' = 'N'
    15  /
    no rows selected
    Elapsed: 00:01:09.34
    Execution Plan
    Plan hash value: 1557722279
    | Id  | Operation                   | Name        | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |    TQ  |IN-OUT| PQ Distrib |
    |   0 | SELECT STATEMENT            |             |     2 |   168 |       |     0   (0)|          |     |         |            |
    |   1 |  PX COORDINATOR             |             |       |       |       |            |          |     |         |            |
    |   2 |   PX SEND QC (RANDOM)       | :TQ10004    |       |       |       |            |          |  Q1,04 | P->S | QC (RAND)  |
    |   3 |    BUFFER SORT              |             |     2 |   168 |       |            |          |  Q1,04 | PCWP |            |
    |   4 |     UNION-ALL               |             |       |       |       |            |          |  Q1,04 | PCWP |            |
    |*  5 |      FILTER                 |             |       |       |       |            |          |  Q1,04 | PCWC |            |
    |*  6 |       HASH JOIN             |             |   660G|    50T|   224M|  3465K (99)| 13:28:42 |  Q1,04 | PCWP |            |
    |   7 |        PX JOIN FILTER CREATE| :BF0000     |  5477K|   386M|       | 22861   (2)| 00:05:21 |  Q1,04 | PCWP |            |
    |   8 |         PX RECEIVE          |             |  5477K|   386M|       | 22861   (2)| 00:05:21 |  Q1,04 | PCWP |            |
    |   9 |          PX SEND HASH       | :TQ10000    |  5477K|   386M|       | 22861   (2)| 00:05:21 |  Q1,00 | P->P | HASH       |
    |  10 |           PX BLOCK ITERATOR |             |  5477K|   386M|       | 22861   (2)| 00:05:21 |  Q1,00 | PCWC |            |
    |* 11 |            TABLE ACCESS FULL| TEST_TBL_01 |  5477K|   386M|       | 22861   (2)| 00:05:21 |  Q1,00 | PCWP |            |
    |  12 |        PX RECEIVE           |             |    22M|   212M|       | 22679   (1)| 00:05:18 |  Q1,04 | PCWP |            |
    |  13 |         PX SEND HASH        | :TQ10001    |    22M|   212M|       | 22679   (1)| 00:05:18 |  Q1,01 | P->P | HASH       |
    |  14 |          PX JOIN FILTER USE | :BF0000     |    22M|   212M|       | 22679   (1)| 00:05:18 |  Q1,01 | PCWP |            |
    |  15 |           PX BLOCK ITERATOR |             |    22M|   212M|       | 22679   (1)| 00:05:18 |  Q1,01 | PCWC |            |
    |  16 |            TABLE ACCESS FULL| TEST_TBL_02 |    22M|   212M|       | 22679   (1)| 00:05:18 |  Q1,01 | PCWP |            |
    |* 17 |      FILTER                 |             |       |       |       |            |          |  Q1,04 | PCWC |            |
    |* 18 |       HASH JOIN             |             |  2640G|   201T|   233M|    13M(100)| 53:15:52 |  Q1,04 | PCWP |            |
    |  19 |        PX RECEIVE           |             |    22M|   212M|       | 22679   (1)| 00:05:18 |  Q1,04 | PCWP |            |
    |  20 |         PX SEND HASH        | :TQ10002    |    22M|   212M|       | 22679   (1)| 00:05:18 |  Q1,02 | P->P | HASH       |
    |  21 |          PX BLOCK ITERATOR  |             |    22M|   212M|       | 22679   (1)| 00:05:18 |  Q1,02 | PCWC |            |
    |  22 |           TABLE ACCESS FULL | TEST_TBL_02 |    22M|   212M|       | 22679   (1)| 00:05:18 |  Q1,02 | PCWP |            |
    |  23 |        PX RECEIVE           |             |    21M|  1546M|       | 22924   (2)| 00:05:21 |  Q1,04 | PCWP |            |
    |  24 |         PX SEND HASH        | :TQ10003    |    21M|  1546M|       | 22924   (2)| 00:05:21 |  Q1,03 | P->P | HASH       |
    |  25 |          PX BLOCK ITERATOR  |             |    21M|  1546M|       | 22924   (2)| 00:05:21 |  Q1,03 | PCWC |            |
    |  26 |           TABLE ACCESS FULL | TEST_TBL_01 |    21M|  1546M|       | 22924   (2)| 00:05:21 |  Q1,03 | PCWP |            |
    Predicate Information (identified by operation id):
       5 - filter(NULL IS NOT NULL)
       6 - access("T1"."OBJECT_NAME"="T2"."OBJECT_NAME")
      11 - filter("T1"."OBJECT_TYPE"='TABLE')
      17 - filter(NULL IS NOT NULL)
      18 - access("T1"."OBJECT_NAME"="T2"."OBJECT_NAME")
    Statistics
           1617  recursive calls
              3  db block gets
         488929  consistent gets
         493407  physical reads
            636  redo size
            567  bytes sent via SQL*Net to client
            232  bytes received via SQL*Net from client
              1  SQL*Net roundtrips to/from client
              6  sorts (memory)
              0  sorts (disk)
              0  rows processedHowever single table with UNION ALL and PQ works..
    *NO Joins (i.e. Single Table with PQ )  , Issue does not show-up.*
    _*SERIAL PLAN with one Table*_
    SQL> select
      2    /* parallel(t1,2 )   */
      3    t1.*
      4    from test_tbl_01 t1
      5    where 'Y' = 'N'
      6    and  t1.object_type = 'TABLE'
      7    union all
      8    select
      9    /* parallel(t1,2 )   */
    10    t1.*
    11    from test_tbl_01 t1
    12    where 'Y' = 'N'
    13  /
    no rows selected
    Elapsed: 00:00:00.01
    Execution Plan
    Plan hash value: 2870519681
    | Id  | Operation           | Name        | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT    |             |     2 |   148 |     0   (0)|          |
    |   1 |  UNION-ALL          |             |       |       |            |          |
    |*  2 |   FILTER            |             |       |       |            |          |
    |*  3 |    TABLE ACCESS FULL| TEST_TBL_01 |  5477K|   386M| 41261   (2)| 00:09:38 |
    |*  4 |   FILTER            |             |       |       |            |          |
    |   5 |    TABLE ACCESS FULL| TEST_TBL_01 |    21M|  1546M| 41373   (3)| 00:09:40 |
    Predicate Information (identified by operation id):
       2 - filter(NULL IS NOT NULL)
       3 - filter("T1"."OBJECT_TYPE"='TABLE')
       4 - filter(NULL IS NOT NULL)
    Statistics
              0  recursive calls
              0  db block gets
              0  consistent gets
              0  physical reads
              0  redo size
            567  bytes sent via SQL*Net to client
            232  bytes received via SQL*Net from client
              1  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
              0  rows processed
    _*PARALLEL PLAN with one Table*_
    SQL> select
      2    /*+ parallel(t1,2 )      */
      3    t1.*
      4    from test_tbl_01 t1
      5    where 'Y' = 'N'
      6    and  t1.object_type = 'TABLE'
      7    union all
      8    select
      9    /*+ parallel(t1,2 )      */
    10    t1.*
    11    from test_tbl_01 t1
    12    where 'Y' = 'N'
    13  /
    no rows selected
    Elapsed: 00:00:00.09
    Execution Plan
    Plan hash value: 3114025180
    | Id  | Operation              | Name        | Rows  | Bytes | Cost (%CPU)| Time     |    TQ  |IN-OUT| PQ Distrib |
    |   0 | SELECT STATEMENT       |             |     2 |   148 |     0   (0)|          |        |      |            |
    |   1 |  PX COORDINATOR        |             |       |       |            |          |        |      |            |
    |   2 |   PX SEND QC (RANDOM)  | :TQ10000    |       |       |            |          |  Q1,00 | P->S | QC (RAND)  |
    |   3 |    UNION-ALL           |             |       |       |            |          |  Q1,00 | PCWP |            |
    |*  4 |     FILTER             |             |       |       |            |          |  Q1,00 | PCWC |            |
    |   5 |      PX BLOCK ITERATOR |             |  5477K|   386M| 22861   (2)| 00:05:21 |  Q1,00 | PCWC |            |
    |*  6 |       TABLE ACCESS FULL| TEST_TBL_01 |  5477K|   386M| 22861   (2)| 00:05:21 |  Q1,00 | PCWP |            |
    |*  7 |     FILTER             |             |       |       |            |          |  Q1,00 | PCWC |            |
    |   8 |      PX BLOCK ITERATOR |             |    21M|  1546M| 22924   (2)| 00:05:21 |  Q1,00 | PCWC |            |
    |   9 |       TABLE ACCESS FULL| TEST_TBL_01 |    21M|  1546M| 22924   (2)| 00:05:21 |  Q1,00 | PCWP |            |
    Predicate Information (identified by operation id):
       4 - filter(NULL IS NOT NULL)
       6 - filter("T1"."OBJECT_TYPE"='TABLE')
       7 - filter(NULL IS NOT NULL)
    Statistics
             28  recursive calls
              3  db block gets
              7  consistent gets
              0  physical reads
            628  redo size
            567  bytes sent via SQL*Net to client
            232  bytes received via SQL*Net from client
              1  SQL*Net roundtrips to/from client
              2  sorts (memory)
              0  sorts (disk)
              0  rows processed

    The same behvious appears in 11.1.0.6, and you don't need such a large data set to prove the point. The paralllel distribution may change to a broadcast with a smaller data set, but I demonstrated the effect when my two tables simply selected 30,000 rows each from all_objects.
    I think you should pass this to Oracle Corp. as a bug - using the smaller data set.
    The problem seems to be the way that Oracle combines multiple lines of a plan into groups of operations (as in PCWC, PCWC, PCWP). It looks like this particularly example has managed to fold the FILTER into a group in such a way that Oracle has lost track of the fact that it is a 'pre-emptng - i.e. always false' filter rather than an ordinary data filter; consequently the filter doesn't apply until after the hash join starts running.
    In my example (which did a broadcast distribution) I could see that Oracle read the entire first table, then started to read the second table, but stopped after one row of the second table, because my plan allowed the join and filter to be applied immediately after the first row from the second table. And I think Oracle decided that the filter was alway going to be false at that moment - so stopped running the second tablescan. You've used a hash/hash distribriution, which has resulted in both scans completing because the slaves in each layer don't talk to each other.
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk
    "Science is more than a body of knowledge; it is a way of thinking"
    Carl Sagan

  • Selection issue with editable Spark DataGrid

    Hi everyone,
    I am evaluating the new Spark DataGrid and I'm having a very strange issue with the behavior of selection in an editable instance.
    Here is my test application: http://www.playcalliope.com/flex/DataGridSelectionIssue.html (code here: https://gist.github.com/1129160)
    And here are the steps to reproduce the issue:
    select the very first cell at the top-left corner of the grid (the one with "Gabriele");
    click on it once more, the editor appears;
    now click on the cell just to the right of it (the one with "Genta").
    You should see that editing ends as it supposed to do, but selection is placed on the third cell (the one with a 5 in it) instead on the one you clicked on. Playing a little with the grid you should see that this isn't the only case, but selection is really behaving randomly.
    I am using SDK 4.5.1.21328.
    I think this is a very basic usage case.. I can't believe this is not working properly, what am I missing?
    Thanks a lot,
    Gabriele Genta
    Message was edited to add live example

    Your running into a known bug, https://bugs.adobe.com/jira/browse/SDK-30088.
    The  bug will be fixed in the Mega release. To work around the bug you can  create a custom editor and remove the  "dataGrid.validateNow();" call in  DataGridEditor.save().
    Here's how I modified your example to workaround the bug:
    <?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"
                   backgroundColor="#E7E7E7"
                   creationComplete="application1_creationCompleteHandler(event)">
        <s:layout>
            <s:HorizontalLayout horizontalAlign="center" verticalAlign="middle"/>
        </s:layout>
        <fx:Script>
            <![CDATA[
                import mx.collections.XMLListCollection;
                import mx.events.FlexEvent;
                protected function application1_creationCompleteHandler(event:FlexEvent):void
                    testGrid.dataProvider = new XMLListCollection(testData.item);
            ]]>
        </fx:Script>
        <fx:Declarations>
            <fx:XML id="testData" xmlns="">
                <items>
                    <item>
                        <id>1</id>
                        <cognome>Gabriele</cognome>
                        <nome>Genta</nome>
                        <uhm>5</uhm>
                        <bene>molto</bene>
                    </item>
                    <item>
                        <id>10</id>
                        <cognome>Pinco</cognome>
                        <nome>Pallino</nome>
                        <uhm>10</uhm>
                        <bene>poco</bene>
                    </item>
                </items>
            </fx:XML>
            <fx:Component className="MyDefaultEditor">
                <s:DefaultGridItemEditor>
                    <fx:Script>
                        <![CDATA[
                            import mx.collections.ICollectionView;
                            import mx.collections.ISort;
                            override public function save():Boolean
                                if (!validate())
                                    return false;
                                var newData:Object = value;
                                var property:String = column.dataField;
                                var data:Object = data;
                                var typeInfo:String = "";
                                for each(var variable:XML in describeType(data).variable)
                                    if (property == [email protected]())
                                        typeInfo = [email protected]();
                                        break;
                                if (typeInfo == "String")
                                    if (!(newData is String))
                                        newData = newData.toString();
                                else if (typeInfo == "uint")
                                    if (!(newData is uint))
                                        newData = uint(newData);
                                else if (typeInfo == "int")
                                    if (!(newData is int))
                                        newData = int(newData);
                                else if (typeInfo == "Number")
                                    if (!(newData is Number))
                                        newData = Number(newData);
                                else if (typeInfo == "Boolean")
                                    if (!(newData is Boolean))
                                        var strNewData:String = newData.toString();
                                        if (strNewData)
                                            newData = (strNewData.toLowerCase() == "true") ? true : false;
                                if (property && data[property] !== newData)
                                    // If the data is sorted, turn off the sort for the edited data.
                                    var sort:ISort = null;
                                    if (dataGrid.dataProvider is ICollectionView)
                                        var dataProvider:ICollectionView = ICollectionView(dataGrid.dataProvider);
                                        if (dataProvider.sort)
                                            sort = dataProvider.sort;
                                            dataProvider.sort = null;
                                    var oldData:Object = data[property];
                                    data[property] = newData;
                                    dataGrid.dataProvider.itemUpdated(data, property, oldData, newData);
                                    // Restore the sort. The data will not be sorted due to this change.
                                    if (sort)
                                        ICollectionView(dataGrid.dataProvider).sort = sort;
                                return true;
                        ]]>
                    </fx:Script>               
                </s:DefaultGridItemEditor>
            </fx:Component>
        </fx:Declarations>
        <s:DataGrid id="testGrid" width="100%" height="100%"
                    editable="true" selectionMode="singleCell"
                    itemEditor="{new ClassFactory(MyDefaultEditor)}">
            <s:columns>
                <s:ArrayList>
                    <s:GridColumn headerText="Prova" dataField="cognome"/>
                    <s:GridColumn headerText="Prova1" dataField="nome"/>
                    <s:GridColumn headerText="Prova3" dataField="uhm"/>
                    <s:GridColumn headerText="Prova4" dataField="bene"/>
                </s:ArrayList>
            </s:columns>
        </s:DataGrid>
    </s:Application>

  • Selection issue with Multiple containers when text re-flows

    Hi,
    I am building an EPUB reader in Flex 4.51. using TLF 2.0.3. I have text running across multiple containers. We add the controllers dynamically to ensure that there are as many containers as the content can have. Now, we updateAllControllers when status of a graphic element changes or when there's an increase in font size. So, after each activity we add more controllers if required. The text and images correctly reflow to the next container in this case. However, the issue comes with selection. If a piece of text reflows from one container and moves to another, when we try to select it, it doesn't highlight.
    The SelectionChange event triggers and the values are mostly correct but no highlighing. We noticed that if we remove all controllers and recreate them, the issue is resolved. But, we cannot remove and add containers each time font size changes.
    Kindly help and let me know where can the issue be? Remember that the text correctly reflows to containers and it's only the selection that doesn't work. This is a very common scenario for a reflowable content holder so I am sure I am missing something obvious. Please help.

    I found the root cause of the bug is in removeAndRecycleTextLines() of ContainerController.as. The private "_textBlock" properties of some paragraph elements are incorrectly set as null there. When we want to get TextLine from TextFlowLine by getTextLine(), because paragraph._textBlock is null, TLF actually recreates some new, unused TextLines to return, which are not the ones on the sprite....
    The fixed function is as follows and the bold, italic lines is the fix. I just modified a condition. It passed all existing test cases. I'm not sure it could be all right with your project. If it is still not OK for any of your scenarios, please tell us and we will appricate your feedback.
    private function removeAndRecycleTextLines (beginIndex:int, endIndex:int):void
                var backgroundManager:BackgroundManager = textFlow.backgroundManager;
                var child:TextLine;
                var textBlock:TextBlock;
                for (var index:int = beginIndex; index < endIndex; index++)
                    child = _shapeChildren[index];                   
                    removeTextLine(child);
                    CONFIG::debug { Debugging.traceFTECall(null,_container,"removeTextLine",child); }
                    // when we've removed all the lines in the paragraph in shapeChildren, run through the textBlock and if all lines are not in view,
                    // release the lines from the TextBlock, and release the TextBlock itself.
                    if (child.textBlock != textBlock)       
                        if (textBlock)
                            releaseLinesInBlock(textBlock);
                        textBlock = child.textBlock;
                // Bug #2988783  -By Jin Huang
                // releaseLinesInBlock() be called here only when
                // 1. the end of final container
                // 2. the end line of TextBlock is the end line of the container
                if (textBlock && (textBlock.lastLine == child || flowComposer.getControllerIndex(this) == flowComposer.numControllers - 1))
                    releaseLinesInBlock(textBlock);
                // Recycle lines not in view and not in the TextBlock
                if (TextLineRecycler.textLineRecyclerEnabled)
                    while (beginIndex < endIndex)
                        child = _shapeChildren[beginIndex++];
                        // Recycle if its not displayed and not connected to the textblock
                        if (!child.parent)
                            if (child.userData == null)
                                TextLineRecycler.addLineForReuse(child);
                                if (backgroundManager)
                                    backgroundManager.removeLineFromCache(child);
                            else
                                var tfl:TextFlowLine = child.userData as TextFlowLine;
                                if (tfl && tfl.controller != this)        // don't release lines that belong to other containers
                                    continue;
                                if (child.validity == TextLineValidity.INVALID || (child.nextLine == null && child.previousLine == null && (!child.textBlock || child.textBlock.firstLine != child)))
                                    child.userData = null;
                                    TextLineRecycler.addLineForReuse(child);
                                    if (backgroundManager)
                                        backgroundManager.removeLineFromCache(child);

  • HP Laserjet 2200dtn paper select issue

    I have an HP Laserjet 2200dtn connected via jet direct with a direct ip. I can print to the device with one issue. All print jobs using the "Automatically Select" option for paper tray go to the manual tray and require me to tell the printer to continue. Prior to Snow Leopard the driver would go to the first available paper feed drawer (if paper was in manual it would go there, otherwise it went to either tray 2 or tray 3 on its on). Any Ideas? I would rather the printer automatically select tray 3 to print from and have me manually select tray 1 when I need it.
    Thanks.

    Chances are the printer has a small bit of paper that is still jammed in it. When paper jams always try to pull in the direction of the paper path! If it tears then remove the toner cartridge to see if you can see any bits of paper inside. I have the Laserjet 1012 which is a similar design, early in it's life I had a similar issue, after removing the toner cartridge and seeing all bits of paper were gone I still got an error. I then removed the top cover of the printer, located and removed the offending piece of paper, put it back together and now several thousands of pages later all is fine.
    If that doesn't work then contact HP's support (they will reply to an email with 24 hours) or go the chat route. If you try to call because you are well out of warranty there will be charge.

  • [Wine] Sound card selecting issues

    Since a month or too, after one of my weekly updates, wine started to select the wrong sound card for its audio playback. Thus, alas, no sound in wine applications.
    When selecting the audio tab in winecfg, I get the following console output:
    fixme:mixer:ALSA_MixerInit No master control found on HDA NVidia, disabling mixer
    fixme:jack:JACK_drvLoad error loading the jack library libjack.so.0, please install this library to use jack
    I don't use jack, so that can be ignored. The HDA NVidia - the S/PDIF on my NVidia video card I presume, I don't use either. What I do use is my onboard sound chip in combination with alsa, which works perfectly on non-wine applications.
    So, I got the following set up:
    $ cat /proc/asound/modules
    0 snd_hda_intel
    1 snd_hda_intel
    $ aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: SB [HDA ATI SB], device 0: VT1818S Analog [VT1818S Analog]
    Subdevices: 2/2
    Subdevice #0: subdevice #0
    Subdevice #1: subdevice #1
    card 0: SB [HDA ATI SB], device 1: VT1818S Digital [VT1818S Digital]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    $ ls -l /sys/module/snd/holders
    total 0
    lrwxrwxrwx 1 root root 0 Feb 21 12:14 snd_hda_codec -> ../../snd_hda_codec
    lrwxrwxrwx 1 root root 0 Feb 21 12:14 snd_hda_codec_hdmi -> ../../snd_hda_codec_hdmi
    lrwxrwxrwx 1 root root 0 Feb 21 12:14 snd_hda_codec_via -> ../../snd_hda_codec_via
    lrwxrwxrwx 1 root root 0 Feb 21 12:14 snd_hda_intel -> ../../snd_hda_intel
    lrwxrwxrwx 1 root root 0 Feb 21 12:14 snd_hwdep -> ../../snd_hwdep
    lrwxrwxrwx 1 root root 0 Feb 21 12:14 snd_pcm -> ../../snd_pcm
    lrwxrwxrwx 1 root root 0 Feb 21 12:14 snd_seq -> ../../snd_seq
    lrwxrwxrwx 1 root root 0 Feb 21 12:14 snd_seq_device -> ../../snd_seq_device
    lrwxrwxrwx 1 root root 0 Feb 21 12:14 snd_seq_oss -> ../../snd_seq_oss
    lrwxrwxrwx 1 root root 0 Feb 21 12:14 snd_timer -> ../../snd_timer
    $ lsmod|grep '^snd' | column -t
    snd_hda_codec_hdmi 22593 4
    snd_hda_codec_via 52963 1
    snd_seq_dummy 1479 0
    snd_seq_oss 29240 0
    snd_seq_midi_event 5516 1 snd_seq_oss
    snd_seq 50562 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
    snd_seq_device 5281 3 snd_seq_dummy,snd_seq_oss,snd_seq
    snd_hda_intel 21837 1
    snd_hda_codec 74577 3 snd_hda_codec_hdmi,snd_hda_codec_via,snd_hda_intel
    snd_hwdep 6222 1 snd_hda_codec
    snd_pcm 72321 2 snd_hda_intel,snd_hda_codec
    snd_timer 19537 2 snd_seq,snd_pcm
    snd 58906 12 snd_hda_codec_hdmi,snd_hda_codec_via,snd_seq_oss,snd_seq,snd_seq_device,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
    snd_page_alloc 7361 2 snd_hda_intel,snd_pcm
    Note that I already blacklisted snd_hda_codec_nvhdmi, which was in the above output before blacklisting.
    Also note the weirdness of having two identical modules for card 0 and card 1. I guess the chip on the video card is Intel as well. I this possible?
    Now the list of things I tried, all without a positive result.
    First, I completely reconfigured my alsa set up.
    Secondly, I blacklisted snd_hda_codec_nvhdmi in /etc/rc.conf
    Thirdly, I used the info from http://wiki.winehq.org/UsefulRegistryKeys to force wine to use card0:
    AutoScanCards=N
    AutoScanDevices=N
    DeviceCTL1=hw:0
    DevicePCM1=hw:0
    Fourthly, I edited .asoundrc to force alsa to use only card0:
    # define soundcard to use, hw0:0
    pcm.!default {
    type hw
    card SB
    # device 0
    # define control device to use, hw0:0
    ctl.!default {
    type hw
    card SB
    # device 0
    Finally, I tried the above globally in /etc/asound.conf
    I even waited two wine updates to see if that would fix it.
    All above did not solve the sound issue and winecfg still gives the same error output as before.
    Note that the sound works fine in everything, except in wine.
    Anyone has any ideas or insight?

    Hi!
    Similar problem here
    [zom@myhost ~]$ winecfg
    fixme:mixer:ALSA_MixerInit No master control found on HDA NVidia, disabling mixer
    fixme:mixer:ALSA_MixerInit No master control found on HDA NVidia, disabling mixer
    err:module:load_builtin_dll failed to load .so lib for builtin L"winemp3.acm": libmpg123.so.0: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio
    fixme:winmm:proc_PlaySound Couldn't play header
    fixme:winmm:proc_PlaySound Couldn't play header
    [zom@myhost ~]$ aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: Intel [HDA Intel], device 0: ALC889A Analog [ALC889A Analog]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 0: Intel [HDA Intel], device 1: ALC889A Digital [ALC889A Digital]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    [zom@myhost ~]$ cat /proc/asound/modules
    0 snd_hda_intel
    1 snd_hda_intel
    I will follow some of your steps and research a bit to see if I can find something.
    Please remember to post if you get it working!
    Regards,
    Edit:
    Seems the card is not well specified in your /etc/asound.conf
    % cat /etc/asound.conf
    pcm.!default {
    type plug
    slave.pcm {
    type hw
    card 0
    device 3
    I think you should put the device also, as shown on your "aplay -l". Try and let me know (I will try asap).
    Edit: Forget what I just said and just follow strictly the wine wiki page. In my case it was a problem when installing lib32-openal from the repos. It gave an error and did not install the first time, but I thought it was removed from the repos and wasn't needed anymore.
    Last edited by Darkzom (2011-03-24 01:00:55)

  • F150- Free selection issue

    Hi,
    Dunning run is carried out only for a particular group of Industry (KNA1-BRSCH)  in the transaction F150. It is not even selecting a single customer in the group when we consider it in the free selection. I have not ticked the exclude check box in the free selection tab when I consider the industry wise dunning.
    But when we take individual customers and run then it is giving us the log.
    please provide your inputs on this issue.
    kind regards
    sap student

    Hi,
    Please find length of the field KNA1-BRSCH in table KNA1 using transaction code SE11.
    If industry value you enter in free selection (F150) is less than the character length defined for the field then you have to prefix it with Zeros.
    For example if reconciliation account is of length 10 in table but your GL account length is 8 characters then you have to add two zeros before you GL account while using reconciliation account in free selection in F150 or F110.
    Thanks!
    Raju

  • Path Selection issue in Table Test

    Hi All
    I got issue in adding Form actions (ex:- Table test, Text matching test ) in my Oracle Forms and report product. It is not selecting the Path..
    Can any one suggest why the Path is not selecting ...?
    Appreciate your feed back.
    Regards,
    Sairam

    Hi Deepu,
    Please find the code below while doing text matching test
    web.window("//forms:window[(@name='WIN1')]").verifyText(
                                  "uniform", "365", Source.DisplayContent,
                                  TextPresence.PassIfPresent, MatchOption.Exact);
    Regards,
    Sairam

  • Path selection issue

    Hi All
    I got issue in adding Form actions (ex:- Table test, Text matching test ) in my Oracle Forms and report product. It is not selecting the Path..
    Can any one suggest why the Path is not selecting ...?
    Appreciate your feed back.
    Regards,
    Sairam

    Hi Deepu,
    We are using OATS version 12.2, JAVA Version 6.0.350 and erp application is our own application developed in oracle 10g forms. We did not get any errors while installing OATS.
    Regards,
    Sairam

  • Web font selection issue in Muse?

    Web font issue in Muse, when I load web fonts which have various weights i.e. regular and bold I an unable to select this font in any weight at all. Is anybody else experiencing this issue and has anybody got a solution?

    Hi Zak
    Just a quick follow-up after checking this issue at home. I opened Muse and loaded several web fonts, some of which had various weights available. I was able to select these fonts and change the weights fine. However I left Muse open and returned several hours later and found that I was unable to select any of these fonts.
    So you workaround (turning Muse off and on again) certainly works but the bug is still there. FYI I am using the latest version of Muse on an iMac using Yosemite OSX. One thought, I have a screensaver set up on my home iMac, could this possibly cause this problem?
    I will continue to monitor Muse on my iMac at work running on OSX Maverick to see if I get the same problem. I don’t have a screen saver set-up on this iMac as it’s never left long enough for it to start up.
    This then may help determine if this is either an OSX Yosemite issue or a screen saver issue.
    Kind Regards
    Jeremy

  • Variable selection issue

    can someone plzzz help me regarding the following issue..........
      how to limit set of master data values in variable selection during query execution?
    cheers
      hari.

    Hi,
    check this link
    it's for increasing the limit you can use it to decrease the limit.
    BEX - number of displayed values
    Thanks

  • AIR 3.6 + Android 4.1.2 + StageText + Tap Text To Select issue

    Hi,
    Have anyone experience the follwoing?. When tapping the StageText to select the text, the app moves up, the StageText moves down (originally the text appears in the text box, see the screenshot) and the top menu in Android (Menu to Cut, paste etc)  goes behind the status bar, see screenshot. In general the StageText seems to beahve very erractic and very bad in Android (I dont know if it is specific for a certain Android OS or not). Any tricks, tips to make the StageText behave a bit more decently in Android?

    Thanks for reporting the issue, Could you please raise it as a bug @ bugbase.adobe.com. Also, please do upload a sample application/sources and steps to demonstrate the problem. Also, please mention the device you're facing problem on.
    Please share the bug number here for reference.
    -Thanks
    Pahup

Maybe you are looking for

  • I was updating my iphone, there was an error and now it won't let me restore a backup. What do i do?

    I was updating to the latest version of IOs 7 last night and when i woke up there had been an error with the update. When  I tried to use my iphone the next morning it said there was an error and i needed to restore it. I did and now it is not lettin

  • Error in saving  large value with the data input query

    Hi,    I  am  trying to save a large value in 0Quantity using the data input query into a realtime infocube e-g 123456789.1234 Error says too many digits. When i try to save 8 digits before the decimal point ,no error, if it is 9digits before decimal

  • Integration Repository SOA Gateway, not able to generate WSDL

    In Oracle R12.1.2, we are trying to generate WSDL for a pl/sql from "Integrated SOA Gateway" responsibility, we are getting the below error, can you help me in overcoming this issue. SOA Provider Access resulted in exception 'oracle.apps.fnd.soa.util

  • AVCHD - Is My PC Good Enough?

    Hello, I shot some video on my new Panasonic HMC40 and tried to edit it in Premiere. I have done SD video for years and thought my PC was pretty powerful, but the AVCHD video mopped the floor with my PC. Here is my current setup: AMD Phenom II 1055T

  • Network two macs

    I have two new iMac's connected to a Time Machine via ethernet which is then connected to my Internet service.  I want to share files between the two machines without have to use a flash drive or whatever.  How?