Custom.pll pre-delete event

i am looking for an event to handle a delete action.
will put this customization inside custom.pll, basically it will prevent a delete action if a certain condition met.
tia
djon

This is a OAF specific forum. Please raise ur query in appropriate forum.
--Mukul                                                                                                                                                                                                       

Similar Messages

  • Writing PRE-INSERT trigger in CUSTOM.pll

    Hi,
    We need to write data in a staging table after every save of a Block Data on the eBusiness Center form. How can we achieve this? Can we write PRE-INSERT trigger in CUSTOM.pll.
    Thanks for helping,
    Regards,
    Viral

    Hi. Thanks for the reply. I was trying with Workflow Based Business Events. I am not sure how can I achieve the same with it.
    I was thinking of doing the same using ALERTs. But, I think that is not Oracle suggestable method of doing it? If at all I am going to use the ALERTs than will it be real time?
    Thanks for replying,
    Regards,
    Viral.
    Message was edited by:
    Viral

  • Custom Pre Process Event Handler in OIM 11g for middle initials

    Hi,
    I am trying to congiure a Custom Pre Process Event Handler for generating middle name in OIM 11g and I am following the steps as given in metalink ID: *1262803.1*
    Even after successfully performing all the steps I am not able to get the middle initials in Admin Console when I create a new user.
    1) Directory structure for the application that I have created through JDeveloper.
    CustomApplication/
    |-- CustomApplication.jws
    `-- CustomProject
    |-- CustomProject.jpr
    |-- classes
    | `-- com
    | `-- example
    | `-- custompph
    | `-- CustomPreProcessEventHandler.class
    `-- src
    `-- com
    `-- example
    `-- custompph
    `-- CustomPreProcessEventHandler.java
    2) Directory structure for Plugins directory
    My Plugin.xml :
    <?xml version="1.0" encoding="UTF-8" ?>
    <oimplugins>
    <plugins pluginpoint="oracle.iam.platform.kernel.spi.EventHandler">
    <plugin pluginclass="com.example.custompph.CustomPreProcessEventHandler"
    version="1.0" name="CustomPreProcessEventHandler" />
    </plugins>
    </oimplugins>
    plugin/
    |-- lib
    | `-- com
    | `-- example
    | `-- custompph
    | `-- CustomPreProcessEventHandler.class
    |-- middlename.zip
    `-- plugin.xml
    Copied the middlename.zip in the plugin folder in OIM_HOME and registered it successfully.
    3) Created a EventHandlers file and imported it successfully using importmetadata.
    My EventHandlers.xml:
    <?xml version='1.0' encoding='utf-8'?>
    <eventhandlers>
    <!-- Custom preprocess event handlers -->
    <action-handler
    class="com.example.custompph.CustomPreProcessEventHandler"
    entity-type="User"
    operation="CREATE"
    name="CustomPreProcessEventHandler"
    stage="preprocess"
    order="10"
    sync="TRUE"/>
    </eventhandlers>
    I checked the logs as well but could not find something which can help me to proceed.
    Also please advise is their any mapping that I need to do in *"Design Console"*
    Please advise !!!!!
    Thanks

    My lib file contains the package as mentioned in the metalink.
    Heirarchy in Plugin folder :
    1) plugin.xml
    2) Lib ( lib contains 3 folders : com/example/custompph; And inside custompph is my CustomPreProcessEventHandler.class file)
    You mean to say i should not copy the entire package in lib but only the jar file of the CustomPreProceessEventHandler.class* file.
    If i put only a .jar file in lib i get the following error.
    "Error occured during the use of plugin registering utility. The plugin zip does not contain the definition of plugin class com.example.custompph.CustomPreProcessEventHandler"
    Thanks
    Edited by: 870050 on Jul 4, 2011 4:30 AM

  • Trigger events are notvalidated the lov  form personalization or custom.pll

    Hi all,
    The trigger events are not validated the LOV in forms personalization or custom.pll
    any one help me
    Regards,
    M.Soundrapandian
    Edited by: user588510 on Dec 15, 2008 9:27 PM

    i have checked with the new item instance and now i have given
    In the message text when i have given this query it is displaying me with blank message box when there are no records which i dont want.and also saving it when i click ok .where should i modify my query so it displays message only when there are more than 3 records but should not save
    trigger event : when new item instance
    trigger object :repairs.lot_number
    condition : :SR.ACCOUNT_NUMBER IS NOT NULL
    AND :REPAIRS.SERIAL_NUMBER IS NOT NULL
    Message text :
    =SELECT 'There are a total of '||COUNT (*)||' Previously Repaired Records' "A" FROM CSD_REPAIRS CR, CS_INCIDENTS_ALL_B CS, CSD_PRODUCT_TRANSACTIONS CP
    WHERE (
    SELECT COUNT(*)
    FROM CSD_REPAIRS CR, CS_INCIDENTS_ALL_B CS, CSD_PRODUCT_TRANSACTIONS CP
    WHERE CR.REPAIR_LINE_ID = CP.REPAIR_LINE_ID
    AND CR.INCIDENT_ID = CS.INCIDENT_ID
    AND CS.ACCOUNT_ID = :SR.ACCOUNT_NUMBER
    AND CP.prod_txn_status = 'RECEIVED'
    AND CR.STATUS = 'Closed'
    AND CP.SOURCE_SERIAL_NUMBER = :REPAIRS.SERIAL_NUMBER)>=3
    Edited by: user10755387 on Aug 5, 2009 11:31 PM

  • Can I change the event WHEN-VALIDATE-ITEM in Custom.pll??

    Hi I have a requirement where to change the Format to 'EXCEL' which is by default 'PDF' for a particular Concurrent Program.
    I am making the chanages in CUSTOM.pll Package Body...
    Here's my approach:
    In the Procedure Event:
    var1 varchar2(255);
    var2 varchar2(50);
    if (event_name='WHEN-VALIDATE-ITEM' ) then
    if (form_name='FNDRSRN' and block_name='WORK_ORDER') then
    var1 := name_in('WORK_ORDER.USER_CONCURRENT_PROGRAM_NAME');
    if var1='ACCOUNT PAYABLE REPORT' then
    var2 := 'EXCEL';
    copy(var2,'TEMPLATES.FORMAT');
    else
    var2 := 'PDF';
    copy(var2,'TEMPLATES.FORMAT');
    end if;
    end if;
    end if;
    Please need anyones concerete help to justify my approach
    Regards
    Saugata

    Did you ever get this done ? I need to do the same thing and don't want to change the form

  • Capture event from custom.pll?

    Hi friends,
    I've been reading in Developers Guide about events capture (p.787) in custom.pll but I've not found anything about capture the event (or something similar) whe we close a descriptive flexfield window....
    Is there any way to know from custom.pll when a window is closed? The purpose is to make diferents actions when the focus return to the original form.
    Thanks.
    Jose.

    Does the WHEN-FORM-NAVIGATE event fire when closing one form and returning to another? However I am pretty sure that this fires when switching between forms without closing one of them as well.

  • OIM 11g Pre Process event handler

    Hi All,
    I had built a pre process event handler to generate userid and it was working fine. But i had slight modifications in the code. When i unregistered the old event handler and registered a new one, oim was still picking the old event handler. So in order to bring the code changes into effect, i restarted the managed server after which the event handlers are not getting triggered(even the old one).
    I deleted all the records corresponding to the custom event handlers from MDS_PATHS,PLUGINS,LATEST_PLUGIN AND PLUGIN_ZIP tables and registered the handler again and also imported the event handler xml file. But still the plugin is not triggered.
    Please help.
    Thanks,
    Bhavana
    Edited by: 858491 on Jul 21, 2011 5:14 AM

    My lib file contains the package as mentioned in the metalink.
    Heirarchy in Plugin folder :
    1) plugin.xml
    2) Lib ( lib contains 3 folders : com/example/custompph; And inside custompph is my CustomPreProcessEventHandler.class file)
    You mean to say i should not copy the entire package in lib but only the jar file of the CustomPreProceessEventHandler.class* file.
    If i put only a .jar file in lib i get the following error.
    "Error occured during the use of plugin registering utility. The plugin zip does not contain the definition of plugin class com.example.custompph.CustomPreProcessEventHandler"
    Thanks
    Edited by: 870050 on Jul 4, 2011 4:30 AM

  • Custom.pll key-delrec

    i am trying to prevent a task from deletion if the org id condition is met.
    manage to use key-delrec event in custom.pll
    now my question is, how i actually cancel the delete action inside the procedure?
    tia
    djon

    this is what i have in mind
         PROCEDURE key_delrec IS
              l_org_id NUMBER:=FND_PROFILE.VALUE('ORG_ID');
         BEGIN
              IF (l_org_id = 103) THEN
                   MESSAGE('Task deletion is not allowed');
                   Raise Form_Trigger_Failure;
              END IF;
         END;

  • Error FRM-30312 while compiling a custom pll library on forms 11g weblogic

    hi,
    this is my case:
    Im trying to upgrade a forms 10g application to 11g, using FORMS 11g v11.1.1.3 and WEBLOGIC server v10.3.3.
    Forms files compiled correctly, also webutil.pll was correctly compiled.
    but if I try to compile my custom pll I can see the error...
    when I run application, this erros msg appears:
    FRM-40735: ON-ERROR trig raised unhandled exception ORA-06508
    I have this script to compile .pll files (libraries):
    +#SCRIPT TO COMPILE LIBRARIES+
    export ORACLE_INSTANCE=/opt/oracle/Middleware/asinst_1
    export ORACLE_HOME=/opt/oracle/Middleware/as_1
    export ORACLE_PATH=/opt/legadmi/pll:/opt/legadmi/formas
    export FORMS_PATH=/opt/legadmi/pll:/opt/legadmi/formas
    export NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1
    export FORMS_DEFAULTFONT="Lucida.9"
    for i in `ls *.pll`
    do
    echo Compiling: $i ....
    file=$i
    +$ORACLE_INSTANCE/bin/frmcmp.sh Module=$i Userid=user/pwd@db Module_Type=LIBRARY Batch=YES+
    done
    But this error is shown:
    Compilation errors on RP2RRO:
    PL/SQL ERROR 201 at line 106, column 8
    identifier 'RUN_PRODUCT' must be declared
    PL/SQL ERROR 0 at line 106, column 8
    Statement ignored
    PL/SQL ERROR 201 at line 123, column 8
    identifier 'RUN_PRODUCT' must be declared
    PL/SQL ERROR 0 at line 123, column 8
    Statement ignored
    PL/SQL ERROR 201 at line 153, column 8
    identifier 'RUN_PRODUCT' must be declared
    PL/SQL ERROR 0 at line 153, column 8
    Statement ignored
    PL/SQL ERROR 201 at line 169, column 8
    identifier 'RUN_PRODUCT' must be declared
    PL/SQL ERROR 0 at line 169, column 8
    Statement ignored
    Failed to generate library.
    FRM-30312: Failed to compile the library.
    I tried finding the string on the source code and delete or replace, but the only strings remainding are for example "RP2RRO_RUN_PRODUCT()", It looks like compiler finds the string within the entire word.
    I need help.

    InoL, Thank you very much.
    I know rp2rro.pll was there, and I compiled it successfully, and place it to the correct folder.
    but I did not know that my custom pll had the rp2rro as a program unit.
    I solve this problem replacing the code inside my custom library with the rp2rro.pll code that comes with forms 11g
    THANKS again.

  • Setting Default values for field using custom.pll

    Hi All,
    I have an rquirement to set the default values on Meterial Tranasction screen for some condition
    I tried it in both ways via Form Personalization and using custom.pll
    i m using the following code in custom.pll
    form_name      varchar2(30):= name_in('system.current_form');
    block_name varchar2(30):= name_in('system.cursor_block');
    trx_type           varchar2(30);
    subinv                varchar2(30);
    begin
    if form_name='WIPTXMAT' and block_name ='MTL_TRX_LINE' then
    if event_name ='WHEN-VALIDATE-RECORD' then
         trx_type:=name_in('WIPTXMAT.TRANSACTION_TYPE');
    if trx_type ='WIP Return' THEN
         copy(10,'MTL_TRX_LINE.TRANSACTION_QUANTITY');
              copy(10,'MTL_TRX_LINE.NUMBER_OF_LOTS_ENTERED');
              sinv:=trim(name_in('MTL_TRX_LINE.SUBINVENTORY_CODE'));
              if sinv is null then
                   copy(subinv,'MTL_TRX_LINE.SUBINVENTORY_CODE');
                   copy(fr_locator,'MTL_TRX_LINE.LOCATOR');
                   FND_MESSAGE.SET_STRING(sinv);
                   FND_MESSAGE.SHOW;
              end if;
         end if;
    end if;
    end if;
    end event;
    Problem is that default values are getting set but not for all rows . if there are 4 records then values are set for only first 2 rows and if there are 2 rows then defaults are set for 1st row only.
    Same behaviour happens when i do it via form personalization
    i couldn't understand the behaviour of WHILE-VALIDATE-RECORD event..
    Please provide some suggestion on it. its really urgent.
    Thanks in Advance
    Renu

    Works Now...

  • Messaging using CUSTOM.pll

    Hello,
    I have registered a message named 'HAC_ASN_PO_ALERT' with the message type 'Note'. I have generated the message and am using the CUSTOM.pll to show the message when a specific event occurs. I am using the code below to call the message.
    FND_MESSAGE.SET_NAME('HAC','HAC_ASN_PO_ALERT');
    FND_MESSAGE.SET_TOKEN('ASN_STRING',x_asn_string);
    FND_MESSAGE.ERROR;
    This works just fine, the message displays when I want it to, but it shows with the error bell as an error message. I wanted to display the message as a note with the note icon. I have looked at the FND_MESSAGE package and there is not a procedure called NOTE. I tried SHOW, but I got an error. Can anyone please help me to get this message to display correctly?
    Thank you,
    Mike

    I am facing the same issues in R12.. Any solution for this.
    Thanks in Advance.
    Chetan

  • QUERY ONLY = YES not working when set in CUSTOM.pll

    Hi,
    Depending on the responsibility the user is logged on as I have set the element entries form PAYWSMEE to query only = yes within the custom.pll. This seems to work in so far as the elements screen is display-only but when i go into the entry values they are updateable. I have tried setting query only at WHEN-NEW-BLOCK-INSTANCE event and also on WHEN-NEW-FORM-INSTANCE but same results.
    Would really appreciate any help.
    Lorcan.

    EBS questions should be asked in the EBS Forum.

  • Standard LOV Customization through CUSTOM.pll HELP

    Hello,
    I am currently trying to override the LOV dropdown of an Oracle 11.5.10 form using the custom.pll. The example I am using is as follows:
    procedure event(event_name varchar2) is
    form_name      varchar2(30) := name_in('system.current_form');           --added by Nazir
    block_name      varchar2(30) := name_in('system.cursor_block');      --added by Nazir
    item_name     varchar2(100) := name_in('system.current_item');
    v_sql          varchar2(5000);
    result           Number;
    rec_id           RecordGroup;
    v_login_company     VARCHAR2(50);
    begin
    if(event_name = 'WHEN-NEW-ITEM-INSTANCE') then
    if (form_name = 'ARXTWMAI' and block_name = 'TGW_HEADER') then
    if( item_name = 'CTT_TYPE_NAME_MIR') then
    v_login_company     :=     fnd_profile.value('LN_LOGIN_COMPANY');
    if (v_login_company = '0000') then
         fnd_message.set_string('Please enter description');     Testing fnd message. This works fine. Message displayed.
         --fnd_message.show;
    v_sql := 'select ctt.cust_trx_type_id cust_trx_type_id, ctt.name name, ctt.description description, ctt.type class, arl_class.meaning class_meaning, ctt.accounting_affect_flag open_receivables_flag, ctt.post_to_gl post_to_gl_flag, ctt.allow_freight_flag allow_freight_flag' ||
    ',ctt.creation_sign creation_sign, ctt.allow_overapplication_flag allow_overapplication_flag, ctt.natural_application_only_flag natural_application_only_flag, ctt.tax_calculation_flag tax_calculation_flag, arl_status.meaning default_status' ||
    ',arl_print.meaning default_printing_option, rat.name default_term from      ar_lookups arl_print, ar_lookups arl_status, ar_lookups arl_class, ra_terms rat, ra_cust_trx_types ctt ' ||
    'where '||''''||'INVOICE_PRINT_OPTIONS'||'''' || '= arl_print.lookup_type ' ||
    ' and      ctt.default_printing_option = arl_print.lookup_code' ||
    ' and' || ''''||'INVOICE_TRX_STATUS'||'''' ||'= arl_status.lookup_type' ||
    ' and      ctt.default_status = arl_status.lookup_code and      ctt.default_term = rat.term_id(+) ' ||
    ' and' || ''''||'INV/CM'||'''' || '= arl_class.lookup_type ' ||
    ' and      ctt.type = arl_class.lookup_code' ||
    ' and      ctt.type in ( ' || '''' || 'DEP' || '''' || ',' || '''' || 'GUAR' || '''' || ',' || '''' || 'INV' || '''' || ',' || '''' || 'CM' || '''' || ',' || '''' || 'DM' || '''' || ')' ||
    ' and      ( ctt.type not in (' || '''' || 'DEP' || '''' || ',' || '''' || 'GUAR' || '''' || ') or ctt.accounting_affect_flag =' || '''' || 'Y' || '''' || ')' ||
    ' order      by ctt.name' ;
                   rec_id := CREATE_GROUP_FROM_QUERY( 'TRANS_TYPE_LNCUSTOM', v_sql );
                   result := POPULATE_GROUP(FIND_GROUP( 'TRANS_TYPE_LNCUSTOM'));
                   SET_LOV_PROPERTY('ARXTWTGW_TRANSACTION_TYPE', GROUP_NAME, 'TRANS_TYPE_LNCUSTOM' );
    end if;
    end if;
    end if;
    end if;
    end event;
    I am getting following errors:
    FRM-41072: Cannot create group TRANS_TYPE_LNCUSTOM
    I checked my query with DBMS outputs and then copy that output and ran it as a query in toad and it worked fine.
    Has anyone done this before that could help me resolve the problem??
    Thanks,
    Nazir.

    Hello,
    I figured out the problem and it works perfectly fine. Basically, it does create a record group but once I move out of the item and come back to the item, it was trying to create a record group with the same name again. So I had add an extra check in my statement:
    if id_null('record group')
    then only create the group;
    Thanks Guys,
    Nazir.

  • Custom.pll and custom.plx location changed

    Hi Friends,
    I am having Oracle Apps 11.5.9 and i had the custom.pll and custom.plx on $AU_TOP/resource and make the changes there and it's working fine.
    Now suddenly the changes made on the file is not refelecting so i searchd the server and i could see another copy of custom.pll and custom.plx on the $COMMON_TOP/admin/scripts and the changes being made on this files is getting reflected(not the one from $AU_TOP)
    I don't know how this change happened.
    So Please let me know how to change the location of custom.pll and custom.plx from $COMMON_TOP/admin/scripts to $AU_TOP/resource?
    Regards,
    Arun

    Arun,
    How did you verify that the one which is used is the one under $COMMON_TOP/admin/scripts?
    So Please let me know how to change the location of custom.pll and custom.plx from $COMMON_TOP/admin/scripts to $AU_TOP/resource?Copy the CUSTOM.pll file back to $AU_TOP/resource, and compile the file again. Make sure both files (CUSTOM.pll and CUSTOM.plx exist under this directory), and bounce the application services then.
    Also, delete all CUSTOM* files under $COMMON_TOP/admin/scripts (take a backup of the files first).
    Regards,
    Hussein

  • Forms Personalization or custom.pll

    I need to make the 'One Time' check box default to yes for the supplier window when I login through a custom responsibility One Time Supplier !
    either by forms personalization or custom.pll
    Can any one advise me ?

    Ok.
    I’m on EBS 11.5.10.2 R3
    I’m not sure if it will work for a different version
    1.Open the Suppliers and the Forms Personalization windows.
    2. Seq=1, Description: Activate One_Time flag
    3.Level = Function
    Condition:
    Trigger Event = WHEN-NEW-RECORD-INSTANCE
    Trigger Object = VNDR
    Condition = :SYSTEM.RECORD_STATUS = 'NEW'
    Actions
    Seq=1, Type = Property
    Description = One Time
    Object Type = Item
    Target Object = VNDR.ONE_TIME_FLAG_MIR
    Property Name = VALUE
    Value= Y
    4.In the Context area enter the responsibility you want to be affected by this personalization.
    5.Save your work and close all windows. Using the responsibility on 4, open the suppliers window again, go to the Classification tab and see if it is checked.
    Hope this helps
    Octavio

Maybe you are looking for

  • Repair Disk Permissions Issues

    I'm not sure I am posting this in the correct community but here goes . . . I have a 17" Macbook Pro running the latest version of Snow Leopard. It is almost 2 years old and I have 4 gb RAM. Recently, it seems to be slowing down and I have to run rep

  • ITunes freezes my Macbook Pro

    Hey everyone. I just purchased a brand new 15" Macbook Pro with a 128GB SSD. My first Mac after 13 years using PCs. OSX Lion is the current version. iTunes is also the most current version. All software is up-to-date. Every time i open up iTunes, my

  • I want to connect to a Profile database using the Sanchez JDBC Driver.

    I want to connect to a Profile database using the Sanchez JDBC Driver. Is that possible? Would I need to create an extension?

  • No error on not filling the Mandatory Data elments

    While using both COM & SOM functionality, many a times manual tasks can be completed even when the mandatory data elements are not filled and no error is shown.

  • J2sdk 1.4 64bit download

    Hi , Could someone kindly give me the pointer to j2sdk1.4.2_03 "64bit" for solaris sun sparc. Thanks, Anand