Why validateitem trigger ? why not use post  textitem trigger

hi
my self : I used when-validate-item for the amount field in the form to chek that it should be > 0;
other: why using when-validate-item trigger only, i can use to place same code in Post-text-item or Post-field triggers ?
myself : when-validate-item triggers generally used for checking business rules. Other tiggers are used for other purpose.
other: is it compulsory to use when-validate-item to chek for business rule voilation
my self: no answer.
please can any body suggest me what would be my answer in the above debate ?
thanks in advance
prasanth as.

WHEN-VALIDATE-ITEM fires only if the value was changed (ITEM_IS_VALID = FALSE), well POST-TEXT-ITEM fires in all cases

Similar Messages

  • Why is this query not using the index?

    check out this query:-
    SELECT CUST_PO_NUMBER, HEADER_ID, ORDER_TYPE, PO_DATE
    FROM TABLE1
    WHERE STATUS = 'N'
    and here's the explain plan:-
    1     
    2     -------------------------------------------------------------------------------------
    3     | Id | Operation | Name | Rows | Bytes | Cost (%CPU)|
    4     -------------------------------------------------------------------------------------
    5     | 0 | SELECT STATEMENT | | 2735K| 140M| 81036 (2)|
    6     |* 1 | TABLE ACCESS FULL| TABLE1 | 2735K| 140M| 81036 (2)|
    7     -------------------------------------------------------------------------------------
    8     
    9     Predicate Information (identified by operation id):
    10     ---------------------------------------------------
    11     
    12     1 - filter("STATUS"='N')
    There is already an index on this column, as is shown below:-
         INDEX_NAME INDEX_TYPE     UNIQUENESS     TABLE_NAME     COLUMN_NAME     COLUMN_POSITION
    1     TABLE1_IDX2 NORMAL     NONUNIQUE     TABLE1      STATUS     1
    2     TABLE1_IDX NORMAL     NONUNIQUE     TABLE1     HEADER_ID     1
    So why is this query not using the index on the 'STATUS' Column?
    I've already tried using optimizer hints and regathering the stats on the table, but the execution plan still remains the same, i.e. it still uses a FTS.
    I have tried this command also:-
    exec dbms_stats.gather_table_stats('GECS','GEPS_CS_SALES_ORDER_HEADER',method_opt=>'for all indexed columns size auto',cascade=>true,degree=>4);
    inspite of this, the query is still using a full table scan.
    The table has around 55 Lakh records, across 60 columns. And because of the FTS, the query is taking a long time to execute. How do i make it use the index?
    Please help.
    Edited by: user10047779 on Mar 16, 2010 6:55 AM

    If the cardinality is really as skewed as that, you may want to look at putting a histogram on the column (sounds like it would be in order, and that you don't have one).
    create table skewed_a_lot
    as
       select
          case when mod(level, 1000) = 0 then 'N' else 'Y' end as Flag,
          level as col1
       from dual connect by level <= 1000000;
    create index skewed_a_lot_i01 on skewed_a_lot (flag);
    exec dbms_stats.gather_table_stats(user, 'SKEWED_A_LOT', cascade => true, method_opt => 'for all indexed columns size auto');Is an example.

  • Why is my SQL not using an index?

    I have a small SQL query (10g) where I join to basic table together on a customer_id column.
    select *
    from customer c
    inner join work_item sp1 ON sp1.customer_id = c.customer_id
    and I am using TOAD, which tells me (in the Explain Plan area), that I'm doing a "TABLE ACCESS FULL" scan on the customer table.
    But when I look at the details of BOTH tables, I can clearly see that they both have an index on the customer field, and they are both the same data types...
    The interesting thing, is that if I change the query to only select data from the work_item table,
    select sp1.*
    from customer c
    inner join work_item sp1 ON sp1.customer_id = c.customer_id
    I can see that the indexes are being used...
    Why is this? I must be able to select certain columns from the customer table, but why would it not use an index when I do?
    Thanks!

    If I understand correctly, below is a simple test case.
    I created a small table and indexed "object_id" column.
    When I issue "Select * from t" optimizer goes with FULL TABLE SCAN, whereas wehn "select OBJECT_ID from t" is issued, optimizer chooses to read from the index instead of accessing the table. This is because FAST FULL SCAN is far cheaper than a FTS in this case.
    SQL> create table t as select object_id, object_name from all_objects;
    Table created.
    SQL> exec dbms_stats.gather_table_stats(user, 't');
    PL/SQL procedure successfully completed.
    SQL> create index t_idx1 on t(object_id);
    Index created.
    SQL> set autotrace traceonly exp
    SQL> select * from t;
    Execution Plan
    Plan hash value: 1601196873
    | Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT  |      | 37932 |  1074K|    55   (2)| 00:00:01 |
    | 1 | TABLE ACCESS FULL| T | 37932 | 1074K| 55 (2)| 00:00:01 |
    SQL> select object_id from t;
    Execution Plan
    Plan hash value: 3958994525
    | Id  | Operation            | Name   | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT     |        | 37932 |   185K|    25   (0)| 00:00:01 |
    | 1 | INDEX FAST FULL SCAN| T_IDX1 | 37932 | 185K| 25 (0)| 00:00:01 |
    SQL>

  • Why my select is not using the index

    This is my index
    CREATE INDEX CONFIG_STATE_IDX ON IDENTIFIER
    (CONFIGURATION_ID, STATE)
    LOGGING
    TABLESPACE NII_INDEX
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    FREELISTS 1
    FREELIST GROUPS 1
    BUFFER_POOL DEFAULT
    NOPARALLEL;
    This is my select statement:
    SELECT *
    FROM identifier i
    WHERE
         i.configuration_id = '89afead40a0c0b8d00628c59aa405ea4'
         AND i.state = 'QT'
    AND ROWNUM <6
    This is my exmplain plan result
    Operation     Object Name     Rows     Bytes     Cost     Object Node     In/Out     PStart     PStop
    SELECT STATEMENT Hint=CHOOSE          5           2128                     
    COUNT STOPKEY                                        
    TABLE ACCESS FULL     IDENTIFIER     133 K     19 M     2128                     
    Why it is not using the index on configuration_id and state.

    Possibility one: you didn't do an analyze statistics on the table and/or the index after index creation.
    Possibility two: The optimizer has determined that it can return the query result set with fewer I/Os if it does a FTS vs using the index (the optimizer is very keen on I/Os).

  • Why is configuration workbench not used often

    Hello all, I am working on an HRMS implementation. Now, the project manager (from client company) has most likely been to some oracle presentation and says the configuration workbench is used to create the company structure. Here is the problem for me, I have never used this in any implementation. Also, I couldn't find a way to modify the key flexfields (like Job, Position) etc and as if this wasn't bad enough, the client implementation requires the creation of numerous additional EITs, SITs etc.
    How does a consultant explain not using the configuration workbench? What are the reasons this tool is not typically used (as I have never used or seen anybody use it in 6 years working in oracle hrms)?
    Many Thanks

    Configuration Workbench is good, and has got quite a bit better over recent releases.
    Sure, it doesn't configure everything. But I'm not sure your choice is that black and white: why not use Config Workbench where it helps and do the other config manually. If it doesn't do anything useful for you (unlikely) I'm sure your PM would listen.
    This sounds like a good opportunity for you to learn something new as well...

  • Why my iphone5 can not use the weather function with the mobile internet?

    I just bought an iphone5, but the weather software doesn't work if not using wifi, the support people told me that Apple desined this only for wifi, but I don't think so, pls help to find a solution

    As the attached article shows, AirPlay Mirroring requires an iMac to be from mid-2011 or newer.
    You should be able to use AirPlay to send music (but not video or pictures) from your iMac to speakers.
    http://support.apple.com/kb/SP654

  • Why are scratch disks not used in PS CC 2014

    When editing very large project that include several layers of images and smart objects, I'm often using up all available RAM. Just as 14GB is reached, I get an out of RAM error and can't save (usually the smart objects updating is what kicks the error in)
    OK, I'm out of RAM. But I've set up a 400GB scratch disk drive in Preferences. Why is that not being accessed in order to finish the operation?

    OK Here's the system and settings you asked for:
    I moved the memory usage slider from 10518 all the way up to 99% as shown and it just allowed more RAM usage (as expected).
    My hard drives are healthy:
    Let me know if you see anything of interest.
    Thanks

  • Why set up table not used in applications like FI, HR etc

    Hi,
    We all know that we use set up tables for LO Cockpit applications.
    But we dont have for non LO applications like HR , FI...why such a difference is made by SAP...
    One of the fellow suggested that for FI, HR etc, there is huge posting of data and so we dont want to store such a duplicate data
    is this the case?
    or there is some other reason...
    please suggest the same
    Thanking You,
    Tarun Brijwani.

    Hi,
    this question has already been asked a few times. Please search the forums for the answer.
    regards
    Siggi

  • E71: Why does Google Maps not use GPS and track my...

    Why is it that Google maps only gives me a GPS signal accurate to 60-2000m. (depending on where I am)
    Nokia Maps 2.0 would follow me down roads and footpaths, but Google maps just gives a rough approximation inside a large circle. My friend had an N95 Black and now an N97, and has testified to the exact same problem.
    If I could get Google Maps to work with my GPS I would probably delete Nokia Maps, as it is otherwise mostly inferior.
    (I've gone through the laborious process to download Maps 3.0 and it is pretty rubbish to be honest - big, bloated with inferior maps)
    Message Edited by alexjholland on 24-Aug-2009 05:07 PM

    Google Maps can be set to use your GPS if your phone is equipped with it.
    Simply run Google Maps...
    Options > Tools > Use GPS (check it or uncheck it for on and off, it toggles)
    Current version is 3.2.0 which supports layers and Latitude.
    The good thing is that it will get a cell tower lock (where supported) first before it establishes a satellite lock so you get a position, albeit approximate, faster. 
    You can tell it has established satellite lock when a small box on the top right corner of your app shows you "GPS active (x)" where x = number of satellites locked.
    Unfortunately, it does not seem to support the magnetometer on the newer phones yet for compass heading.
    Good luck. 
    Message Edited by mouserider on 25-Aug-2009 07:53 AM

  • Why is my Mac not using Quick Time when I want to start some Apple tutorials?

    I got a new MacBook Pro this April. When I want to run some applications that use Quick Time, it suggests that I should download Quick Time. When it takes me to the appropriate window, it tells me I already have Quick Time installed with the OS. Why is it doing this?

    Hello fmomade,
    Some older video and software still requires an older version of QuickTime (version 7) that isn't included with Mountain Lion. It can, however, be downloaded and installed here.
    Installing QuickTime Player 7
    http://support.apple.com/kb/HT3678
    A Mac OS X v10.6, OS X Lion, and OS X Mountain Lion-compatible version of QuickTime Player 7 is available for use with older media or with AppleScript-based workflows. QuickTime Player 7 can be used to playback formats such as QTVR, interactive QuickTime Movies, and MIDI files. Also, it supports QuickTime 7 Pro registration codes for access to QuickTime Pro functionality.
    To install QuickTime Player 7 on OS X Lion and OS X Mountain Lion
    Download QuickTime Player 7 from here.
    Double-click "QuickTimePlayer7.6.6_SnowLeopard". Note: This download is compatible with Mac OS X v10.6 or later.
    QuickTime Player 7 will be installed in your Utilities folder.
    Cheers,
    Allen

  • Why does BEA recommend not using JMS-backed webservices?

    Hi,
    I guess the title says it all. In WebLogic 8.1, I noticed a couple of times
    in the docs they say things like:
    " BEA recommends that you implement your Web Service operation with only a
    stateless session EJB or a Java class, and not with a JMS consumer or
    producer. ".
    Yet no explanation is given. Can anybody tell me why BEA doesn't recommend
    them?
    Thanks
    Jon

    Couple of reasons:
    1. JAX-RPC or JSR-109 (J2EE 1.4) do not cover
    JMS queues as backend component.
    2. It is pretty easy to write a java class or SLSB that
    looks up the queue and post data to it.
    3. Queue based web services typically expose one
    method in wsdl: post(Object data). Once the queue
    is wrapped, the service can have explicit contract:
    like sendMeDoc( Foo foo)
    Regards,
    -manoj
    http://manojc.com
    "Jon Mountjoy" <[email protected]> wrote in message
    news:[email protected]..
    Hi,
    I guess the title says it all. In WebLogic 8.1, I noticed a couple oftimes
    in the docs they say things like:
    " BEA recommends that you implement your Web Service operation with only a
    stateless session EJB or a Java class, and not with a JMS consumer or
    producer. ".
    Yet no explanation is given. Can anybody tell me why BEA doesn'trecommend
    them?
    Thanks
    Jon

  • Why does my game not use inactive memory

    MacBook Pro
    15-inch, Late 2008
    Processor  2.53 GHz Intel Core 2 Duo
    Memory  4 GB 1067 MHz DDR3
    Graphics  NVIDIA GeForce 9400M 256 MB
    Lion 10.7.2
    Here is my activity monitor: http://imgur.com/65ca9
    What i'm running:
    TF2 (hl2_osx)
    Steam
    When i'm playing Team Forchrease 2 I get about 80 to 100 Frams/sec(FPS), but the problem is every few seconds it dips down to 10~20 FPS which makes it very jittery. 
    I noticed that while the game is running there is almost no free memory but there is 1GB of ram tied up in "inactive memory" which I thought would be used by anything that needed it.  Now i'm not sure if the game has enough ram and something else is cassing the problem... but I think i have a 1/2 decent graphics card and set up and I don't think I should have this much problems running at the lowest graphics seatting.
    Any insight to this problem of the low FPS and why TF2 only uses 1 GB of memory that would be a great help!  Thanks
    PS
    I saw this guy: https://discussions.apple.com/message/16277771#16277771 but restarting my computer does not resolve this issue.
    Message was edited by: Frankda4

    Hi Frank,
    Frankda4 wrote:
    MacBook Pro
    15-inch, Late 2008
    Processor  2.53 GHz Intel Core 2 Duo
    Memory  4 GB 1067 MHz DDR3
    Graphics  NVIDIA GeForce 9400M 256 MB
    Lion 10.7.2
    there is 1GB of ram tied up in "inactive memory" which I thought would be used by anything that needed it.
    Not video. You have 256MB VRAM for video, which is rather low for today's video needs. I believe that is the issue.

  • Why is this query not using my index ?

    hey
    i have the following situation
    (i'm sorry but i can't add the acctual script or output)
    create table x as
    select      level high_card ,
         mod(level,1000) medium_card ,
         mod(level,10) low_card ,
         '***' padding
    from     dual
    connect by level < 100001;
    create index x_med_low_ix on x(low_card,medium_card);
    create index x_high_ix on x(high_card);
    exec dbms_stats.gather_table_stats(user,'x',cascade=>true,method_opt=>'for all indexed columns size auto');
    i'm running the following query
    select      *
    from      x
    where      low_card = 70
    and     medium_card = 70
    and     high_card = 70;
    i'm expecting a range scan on the x_high_ix index. the optimizer expects only one row. the stats on the high_card columns shows that (num_rows * density = 1).
    when i run the query the optimizer uses the x_med_low_ix and does 14 cr.
    when i force the use of x_high_ix the cr goes down to 4.
    i don't want to declare x_high_ix as unique.
    so, why isn't he using my index ?

    It's using that index for me:
    SQL> create table x as
      2  select level high_card ,
      3  mod(level,1000) medium_card ,
      4  mod(level,10) low_card ,
      5  '***' padding
      6  from dual
      7  connect by level < 100001;
    Table created.
    SQL>
    SQL> create index x_med_low_ix on x(low_card,medium_card);
    Index created.
    SQL>
    SQL> create index x_high_ix on x(high_card);
    Index created.
    SQL>
    SQL> exec dbms_stats.gather_table_stats(user,'x',cascade=>true,method_opt=>'for all indexed columns
    size auto');
    PL/SQL procedure successfully completed.
    SQL> ed
    Wrote file afiedt.buf
      1   select *
      2   from x
      3   where low_card = 70
      4   and medium_card = 70
      5*  and high_card = 70
    SQL>
    SQL> /
    no rows selected
    Execution Plan
    Plan hash value: 775193209
    | Id  | Operation                   | Name      | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT            |           |     1 |    15 |     2   (0)| 00:00:01 |
    |*  1 |  TABLE ACCESS BY INDEX ROWID| X         |     1 |    15 |     2   (0)| 00:00:01 |
    |*  2 |   INDEX RANGE SCAN          | X_HIGH_IX |     1 |       |     1   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       1 - filter("LOW_CARD"=70 AND "MEDIUM_CARD"=70)
       2 - access("HIGH_CARD"=70)
    Statistics
              0  recursive calls
              0  db block gets
              3  consistent gets
              0  physical reads
              0  redo size
            454  bytes sent via SQL*Net to client
            370  bytes received via SQL*Net from client
              1  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
              0  rows processed
    SQL> set autot off
    SQL> select * from v$version;
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Productionwhat is your version?
    By the way, when i force optimizer to use index X_MED_LOW_IX, it does 2 CR for me.

  • Why does iphone 5 not use whole screen viewing for videos also when using iplayer app it only works on iphone 4 screen settings. why can we not have whole screen displaying image.

    I have a iphone 5, I was dissapointed that when watching iplayer the screen settings are same as iphone 4 so end user has no joy enjoying the big screen , I have noticed youtube does the same,

    It hasent been updated to support iphone 5 screen size yet, it will come in time.

  • HT5035 Why did iphone app purchase did not use store credit balance?

    I just downloaded a new app on my iphone but it asked for me to verify my billing info. I did so and then checked in iTunes and I still have a balance from a gift card. Why was the balance not used?

    Discussion of Apple policies and decisions is not permitted here.

Maybe you are looking for

  • UWL Creation of new View

    Hi Everybody, How to Create the new UWL list view which can be attached to new role...? the actual requirement is to fetch the Process and task from the workflow and display them in new view with there many attributs... I am using NWDS7.2 CE and requ

  • In your experience what are the most common errors in binding files when deploying?

    As the title suggest I'm interested in discussing the most common errors in binding files when deploying. Reason for this is that I'm currently working on a Powershell script that can parse a binding file and create a reader friendly report (rtf form

  • Unknown error (-50) from Photoshop TV Podcast

    My downloads of Photoshop TV no longer work. I get an error that says "There was a problem downloading "Photoshop TV". An unknown error occurred (-50). Please check that the URL is correct and the connection to the network is active and try again." I

  • Error trying to open itunes

    loaded itunes and it worked for two days, now I get an error message saying it has to close sorry for the inconvenience. Have tried many things from different discussions on the boards and nothing has worked. I tried to open Quick Time because I read

  • RFQ Consignment error

    Hi Gurs, I am creating RFQ with reference to PR for Vendor Consignment Stock(i.e. Item Category as 'K'), i am getting an error as Field selection PT2A not defined . Can any one can guide me why i am getting this error. Thanks in advance.. Regards Jay