How to check an item in a database block has changed before updating

hi,
i have a database block having designation and other relative field are there . a ctrl item status (checkbox) in the same block. i want to update records only the status is marked as ticked get updated. what trigger in which levels should be used
thanks in advance

In genral forms marks the records as "changed" by itself. If you want to override this "marking", you'll have to overrwrite the DML-logic (for you cannot change the status of the record back to QUERY). So, you have to create ON-INSERT, ON-UPDATE and ON-DELETE-triggers and do something in it like
IF :BLOCK.MARKED='Y' THEN
  UPDATE_RECORD;
END IF;

Similar Messages

  • How to check the performance of the database instance in oracle apps 11i

    hii everybody,
    i want to know,how to check the performance of the database instance using oracle applications 11i.your help highly appreciated,thanks.

    Pl do not post duplicates - how to check the performance of the server in oracle applications 11i

  • How to check  if all values from a dataset  has come to  an internal table

    How to check  if all values from a dataset  has come to  an internal table ?

    Hi,
    After OPEN DATASET statement check if sy-subrc = 0 if its success then proceed with split statement and save the dataset values into a internal table and while debugging the internal table you will find that whether all values get into internal table.
    Checking sy-subrc after OPEN DATASET statement is must to fill up the values in the internal table.
    For e.g.
    OPEN DATASET p_inpfile FOR INPUT IN TEXT MODE ENCODING DEFAULT.
      IF sy-subrc NE 0.
        WRITE :/ 'No such input file' .
        EXIT.
      ELSE.
    READ DATASET p_inpfile INTO loc_string.
          IF sy-subrc NE 0.
            EXIT.
          ELSE.
            CLEAR loc2.
    *Spliting fields in the file-
            REPLACE ALL OCCURRENCES OF '#' IN wa_string WITH ' '.
           SPLIT wa_string AT const INTO loc2-pernr
                                           loc2-werks
                                           loc2-persk 
                                           loc2-vdsk1.
    Hope you get some idea.
    Thanks,
    Sakthi C

  • Strange Case..!! How 2 set an item as a master block to it's db items block

    Hello All,
    i have a question pls.
    ================
    How 2 set an item as a master block to it's related db items in the same data block; as follows:
    ============
    1-i have to enter the item's value ('LAB_TEMP' ) once then;
    2-the other related items in the same data block r changed record each time i navigate to the next record but this item is never changed in this case only if i re-entered another value as (master-detailed rel.). i tried to copy the value of this item to a display item called 'Temp' but it is changing according to the records frequency by default
    ===========================================================
    I tried the following code on when-new-record-instance & on post-changed Triggers as follows:
    ============================================================
    IF :LAB_TEMP IS NOT NULL THEN
    SET_ITEM_PROPERTY ('LAB_TEMP',ENABLED,PROPERTY_FALSE);
    SET_ITEM_PROPERTY ('LAB_TEMP',NAVIGABLE,PROPERTY_FALSE);
    SET_ITEM_PROPERTY ('TEMP',VISIBLE,PROPERTY_TRUE);
    SET_ITEM_PROPERTY ('LAB_TEMP',VISIBLE,PROPERTY_FALSE);
    :TEMP := :LAB_TEMP;
    ELSE
    SET_ITEM_PROPERTY ('LAB_TEMP',ENABLED,PROPERTY_TRUE);
    SET_ITEM_PROPERTY ('LAB_TEMP',NAVIGABLE,PROPERTY_TRUE);
    SET_ITEM_PROPERTY ('TEMP',VISIBLE,PROPERTY_FALSE);
    SET_ITEM_PROPERTY ('LAB_TEMP',VISIBLE,PROPERTY_TRUE);
    :TEMP := :LAB_TEMP;
    END IF;
    ============================================================
    even this generates unable to set enable property or visible prop. error
    ====================================================
    Someone help me with this pls.??
    ========================
    Thanks in advance,
    Regards,
    Abdetu..

    Hello everyone,
    This issue was solved as:
    ==================
    1-i created a separate db block
    2-created a text item called 'TEMP' with db=NO
    3-In the db block that i want to deal with it as:Master item to it's other related detailed items to that item which is called 'LAB_TEMP' ;
    * Copy value from property: TEMP.
    By this way i could entered a value i the ndb item called TEMP once & consequently this value is entered copyed 4 each new record i entered.
    This is an intial solution works fine at least 4 now, a Fried helped me with this i would like 2 share this info 2 others may be a new idea would help...
    Thanks always,
    Abdetu..

  • How to check if Cisco WSA is already blocking the malicious sites?

    How to check if Cisco WSA is already blocking the malicious sites? 

    Depends on what you mean, but in general what you did will not work.
    The usual intent of RMI is to have several processs running and all of them use one process as the repository.
    A static value is only visible in one VM instance thus it will not be visible in another process.
    So in that situation you could check if the the server socket that the RMI using is open. But just catching the exception, presuming that you catch the correct one, is also sufficient.

  • Hello , why my iPhone'iOs has hotspot befor update to 8.0 , but now it don't be active , by any carrier in our country ...!!! how can i activate it ?

    hello , why my iPhone'iOs has hotspot befor update to 8.0 , but now it don't be active , by any carrier in our country ...!!! how can i activate it ?

    Hi s.kouris,
    I'm afraid that unless you are able to contact the previous owner and have him wipe the device, or provide you with his Apple ID password so you can delete the iCloud account, you are out of luck.
    With iOS 7, an Activiation Lock was added to deter thieves. This lock prevents anyone but the owner of the device from deleting the iCloud account and restoring the device:
    http://support.apple.com/kb/ht5818
    Unless you are able to reach the original owner and get the device wiped or the iCloud account deleted, you are stuck with a brick.
    Sorry,
    GB

  • How to check all items are not null in CAML Query?

    HI All,
    In a CAML Query, i got three items. In all three items, a particular column(Closure Date) should not be null. How to check in all three items, where 'Closure date' is not null?
    Thanks in advance!

    Hi,
    Try this:
    "<Where><IsNull><FieldRef Name='Closure Date' /></IsNull></Where>"
    Hope it hepls!
    Thanks,
    Avni Bhatt
    If this helped you resolve your issue, please mark it Answered

  • Hi GIRU,How to check workflow status in a database

    Hi GURU,
    I am a DBA one user asked me to chke the workflow status for om order line in database.Any body help me how to check the status of workflow om order line in database.

    See Oracle Database FAQs
    </br>

  • How to check data in physical standby database?

    Hi!
    I'm maintaining physical standby database system. everyday, i must check tranfer and apply progress. I known, it operate very good. No archive gap is found.
    But i want to check data in physical standby database that there is consistant with primary database, there isn't? What method do I use? How to do?
    thankS

    I hope the following will help
    Verifying the Physical Standby Database
    ==========================================
    Once you create the physical standby database and set up log transport services, you may want verify that database modifications are being successfully shipped from the primary database to the standby database.
    To see the new archived redo logs that were received on the standby database, you should first identify the existing archived redo logs on the standby database, archive a few logs on the primary database, and then check the standby database again. The following steps show how to perform these tasks.
    Step 1 Identify the existing archived redo logs.
    On the standby database, query the V$ARCHIVED_LOG view to identify existing archived redo logs. For example:
    SQL> SELECT SEQUENCE#, FIRST_TIME, NEXT_TIME
    2 FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#;
    SEQUENCE# FIRST_TIME NEXT_TIME
    8 11-JUL-02 17:50:45 11-JUL-02 17:50:53
    9 11-JUL-02 17:50:53 11-JUL-02 17:50:58
    10 11-JUL-02 17:50:58 11-JUL-02 17:51:03
    3 rows selected.
    Step 2 Archiving the current log.
    On the primary database, archive the current log using the following SQL statement:
    SQL> ALTER SYSTEM ARCHIVE LOG CURRENT;
    Step 3 Verify that the new archived redo log was received.
    On the standby database, query the V$ARCHIVED_LOG view to verify the redo log was received:
    SQL> SELECT SEQUENCE#, FIRST_TIME, NEXT_TIME
    2> FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#;
    SEQUENCE# FIRST_TIME NEXT_TIME
    8 11-JUL-02 17:50:45 11-JUL-02 17:50:53
    9 11-JUL-02 17:50:53 11-JUL-02 17:50:58
    10 11-JUL-02 17:50:58 11-JUL-02 17:51:03
    11 11-JUL-02 17:51:03 11-JUL-02 18:34:11
    4 rows selected.
    The logs are now available for log apply services to apply redo data to the standby database.
    Step 4 Verify that the new archived redo log was applied.
    On the standby database, query the V$ARCHIVED_LOG view to verify the archived redo log was applied.
    SQL> SELECT SEQUENCE#,APPLIED FROM V$ARCHIVED_LOG
    2 ORDER BY SEQUENCE#;
    SEQUENCE# APP
    8 YES
    9 YES
    10 YES
    11 YES
    4 rows selected.

  • How to check an item of a selectManyListBox the first time it is rendered?

    Hello,
    I want to check automatically check an item corresponding to a specific value when the selectManyListBox is rendered on the page for the first time.
    To do this I think I will have to bind the component to some viewScopeBean and iterate over all the item values, and check it when the condition is true.
    How can I do this, is there any example?

    Can you think of adding a transient boolean attribute to your VO that will store the value of your checkboxes based on whatever condition you want? If yes this demo may be of some help.
    http://oracleadfhowto.blogspot.in/2012/02/many-to-many-association-using-multi.html

  • How to delete an item in adept database

    I would like to know how to delete an item in my adept Inventory or/and in my Distributor with a script putting the ID as a variable.
    What woud you advise ?
    Thanks

    Hai Madhu,
    It is pretty simple.
    First u define a button. and in onAction  Event of the button write the following code.
    process is as follows:
    1)get the node
    2)get the element
    3)using the method remove_element() ,remove the element.
    <u><b>The Sample Code is as follows</b></u>
    DATA:
          node_flighttab                      TYPE REF TO if_wd_context_node,
          elem_flighttab                      TYPE REF TO if_wd_context_element.
        node_flighttab = wd_context->get_child_node( 'FLIGHTTAB' ).
      get element via lead selection
        elem_flighttab = node_flighttab->get_element(  ).
        node_flighttab->remove_element( element = elem_flighttab ).
    Follow the above code ,it will definately help you.

  • How to check with which user id a request has been transported

    Can anybody tell me how to find out with which id a request has been transported to a system?
    Regards,
    Sridevi

    Hi,
    To find who has moved the request.
    In STMS, Go to import overview(F5). Select the system in which you want to see who has moved the request.
    Then at the top menu, in GOTO select IMPORT HISTORY(Ctrl+F7).
    Once you are in import history, at the top menu in EDIT select DISPLAY MORE(Ctrl + Shift + F1).
    Then it will display the users list.
    Hope this helps you.
    Regards,
    Ravi

  • The database file has changed.

    Post Author: ComputerMike
    CA Forum: General
    Everytime I open a report I get a dialog box saying "The database file "table name" has changed.  Proceeding to fix up the report!
    What causes this and how can I stop it?

    Post Author: ComputerMike
    CA Forum: General
    I don't think so..
    I can preview a report, it tells me it is fixing report then displays data.   I close the report and open and it asks again.
    Would adding records to the table cause this?
    I am new to Crystal, maybe the data is being stored with the report and it trys to refresh.
    Has anyone seen links to this problem

  • How to check the configurations of a database.

    Hi There,
    I am asked to create a new database but it should be exactly configured as a database which exist allready.please help me how can i check the configuration of the exicting database.
    please help.
    Regards
    Navneet Kaur

    Hi!
    There are two posible ways to do this:
    1. Clone the existing database with RMAN.
    2. Use Database configuration assistant to create a database template from the existing database.
    Hope this helps!

  • How to check hidden items

    Hi,
    On a existing portal installation (10g Release 1) I've a lot of hidden items. I need to export these items to a new release of portal (10g Release 2).
    The information of hidden object is not define inside table wwv_things. I check on several tables/views of the portal schema but I cannot find the table/view where this information is stored.
    Is there a way to create portal items in 10g Release 2 with pl/sql packages and to hide these items ? I found a recommandation to set the publish date in the future but in our case, this do not correspond to the expected behaviour.
    Thanks in advance for your help,
    Eddy.
    Edited by: acsods on 10 oct. 2008 10:13

    The VISIBLE column in WWSBR_ALL_ITEMS will tell you that:
    http://www.oracle.com/technology/products/ias/portal/html/plsqldoc/pldoc1012/wwsbr_api_view.html#WWSBR_ALL_ITEMS
    But you're right that there's no API method for hiding items in 10.1.2.
    In 10.1.4 the hide_in_browse parameter of wwsbr_api.modify_item can be used to hide the item:
    http://www.oracle.com/technology/products/ias/portal/html/plsqldoc/pldoc1014/wwsbr_api.html#function-modify_item
    -John

Maybe you are looking for

  • How do I set cursor.index to anywhere in the graph array?

    I am using LV 8.5.1 and feeding an XY graph with an X-Y array of data. Only a section of the array is displayed on the graph. I have a cursor (single-plot). I would like to set Cursor.Index property node of the cursor associated with the plot to the

  • Can I deploy an Oracle Forms Application in WebLogic Server?

    Dear all: I need to know if Oracle WebLogic Server supports Oracle Forms applications? I am looking some clue in the documentation, but I didn´t find something clear yet, please help me. Thanks Edited by: user637951 on Nov 18, 2008 6:25 AM Edited by:

  • Will OSX support Adaptec PCI Express scsi cards in an early 2008 Mac Pro?

    I need to move my scsi interface scanner from a G4 machine and the old PCI Adaptec AHA 2930 CU card won't fit.  I was using Snow Leopard on the G4 unit - it still supported the Adaptec card and all was good.  My 23" Cinema display then bit the dust a

  • Looking for a procedure to follow when database is brought down

    I have a bi-directional Streams configuration (local capture on both ends). Could someone either point me to the right place in the documentation, or outline for me the best course of action to follow in the event that one of the database servers eit

  • Playlist Song Order Chan

    Searched the Forum at length for the answer but didn't find it. Sorry if I missed it. On my Zen Xtra I can see the Playlist in the right pane (in Organizer), select a song, left click hold, and drag it up or down, and it moves. It also works with arr