How to restirct datepicker in OAF

dear friedns?
how to restict datepicker validation in OAF?
Thanks
krish
Edited by: user5425941 on May 19, 2011 3:26 AM

Hi,
Attach an event with the Date Picker Bean. And handle this event in the PFR of the CO.
String eventName = pageContext.getParameter(EVENT_PARAM) ;
if (eventName.equals("SearchByEventUpdate"))
//Get the value from the Date Picker...
//Now put the validation logic Accordingly over here....
}Hope u know how to attach a event with a Bean. If no, then let me know.
Regards,
Gyan

Similar Messages

  • How to restirct sqlplus '/as sysdba' logins?.

    Hi,
    Anyone know how to restirct
    sqlplus '/as sysdba'
    logins from the Unix prompt.

    Hi,
    Anyone know how to restirct
    sqlplus '/as sysdba'
    logins from the Unix prompt.You can add SQLNET.AUTHENTICATION_SERVICES=(NONE) to the $ORACLE_HOME/network/admin/sqlnet.ora on the database server.
    Attempts to login as / as sysdba will receive ORA-01031: insufficient privileges .
    This will force all users to provide a password.

  • Change datepicker format oaf (MM/YYYY)

    Hi,
    It's possible change the format date of a datepicker (calendar popup) in a resultBasedSearch oaf page?, I need to select the month and year only (MM/YYYY).
    Thank's
    Carlos.

    Hi Carlos,
    How to set date picker for select only the month or the year? You cannot do that. Selecting the Day & month & year is mandatory. As already specified u need to create those month & year manually.
    Regards,
    Gyan

  • How to display Attachments on OAF page for different entities

    Hi,
    I have a requirement where I have to create an attachment page to display the attachments dynamically at run time depending upon the values passed such as Entity Name, Primary Key values, Category Id values.
    I have a query to give me the attachments related data from the tables like fnd_documents_vl, fnd_attached_documents, fnd_document_entities, fnd_document_categories_tl.
    Now, as I read on the forum, I can make use of Oracle's seeded functionality on attachments and display attachments but in my requirement I don't have one specific entity. I have below query which gives data directly with respect to all entities from fnd tables. The name of entity and primary keys will come at run time. So, how can I make use of below query and display attachments in such a case?
    I am very new to OAf and any help will be really appreciated.
    Thanks in Advance,
    Shalini
    SELECT DISTINCT ad.attached_document_id
    ,ad.document_id AS document_id
    ,ad.last_update_date
    ,ad.last_updated_by
    ,u.user_name last_updated_by_name
    ,ad.entity_name
    ,ad.pk1_value
    ,ad.pk2_value
    ,ad.pk3_value
    ,ad.pk4_value
    ,ad.pk5_value
    ,decode(d.dm_node,
    NULL,
    (SELECT short_name
    FROM fnd_dm_nodes
    WHERE node_id = 0),
    0,
    (SELECT short_name
    FROM fnd_dm_nodes
    WHERE node_id = 0),
    node.short_name) location
    ,d.document_id document_id1
    ,d.datatype_id
    ,d.datatype_name
    ,d.description
    ,decode(d.file_name,
    NULL,
    (SELECT message_text
    FROM fnd_new_messages
    WHERE message_name = 'FND_UNDEFINED'
    AND application_id = 0
    AND language_code = userenv('LANG')),
    d.file_name) file_name
    ,d.media_id
    ,d.dm_type
    ,d.dm_node
    ,d.dm_folder_path
    ,e.data_object_code
    ,e.document_entity_id
    ,'ALLOW_ATTACH_UPDATE' allow_attach_update
    ,'ALLOW_ATTACH_DELETE' allow_attach_delete
    ,ad.category_id category_id
    ,cl.user_name attachment_category_name
    ,ad.status
    ,ad.creation_date
    ,(SELECT u1.user_name
    FROM fnd_user u1
    WHERE u1.user_id = ad.created_by) attached_by_name
    ,decode(d.datatype_id,
    5,
    nvl(d.title,
    d.description) || '(' ||
    substr(d.url,
    1,
    least(length(d.url),
    15)) || '...)',
    decode(d.datatype_id,
    6,
    nvl(d.title,
    d.file_name),
    decode(d.title,
    NULL,
    (SELECT message_text
    FROM fnd_new_messages
    WHERE message_name = 'FND_UNDEFINED'
    AND application_id = 0
    AND language_code =
    userenv('LANG')),
    d.title))) file_name_sort
    ,d.usage_type
    ,d.security_id
    ,d.security_type
    ,d.publish_flag
    ,cl.category_id category_id_query
    ,ad.seq_num
    ,d.url
    ,d.title
    FROM fnd_documents_vl d
    ,fnd_attached_documents ad
    ,fnd_document_entities e
    ,fnd_user u
    ,fnd_document_categories_tl cl
    ,fnd_dm_nodes node
    WHERE ad.document_id = d.document_id
    AND ad.entity_name = e.data_object_code(+)
    AND ad.last_updated_by = u.user_id(+)
    AND cl.LANGUAGE = userenv('LANG')
    AND cl.category_id = nvl(ad.category_id,
    d.category_id)
    AND d.dm_node = node.node_id(+)

    Hi Peddy,
    Thanks a lot for your guidance. I tried implementing the code in PR but I am stuck at one error. I am not able to programmatically add a new Entity ID and its attributes at run time. To make it more clear: In Jdev I created an Entity and its mappings at design time. Now, I am able to use getEntitymappings() and setEntityMappings() to modify the attributes of exiting Enity but I am not able to add/append new Entity ID to the existing one. It throws - java.lang.ArrayIndexOutOfBoundsException: 1 error.
    Please any one review the below code snippet and let me know whether I am missing something to make it work.
    Below is the Code that I have written so far:
    ====================================================
    OAAttachmentTableBean attBean = (OAAttachmentTableBean)webBean.findChildRecursive("attachTable");
    Dictionary[] entityMaps = attBean.getEntityMappings();
    entityMaps[0].remove("entityId");
    entityMaps[0].put("entityId","OE_ORDER_HEADERS");
    entityMaps[0].remove("insertAllowed");
    entityMaps[0].remove("updateAllowed");
    entityMaps[0].remove("deleteAllowed");
    entityMaps[0].put("insertAllowed", false);
    entityMaps[0].put("updateAllowed", false);
    entityMaps[0].put("deleteAllowed", false);
    // Adding Second Entity
    // Getting ArrayIndexOutOfBoundsException at below line. As i saw that getEntityMappings() returns only array of size :1 and that is teh reason I am getting error, so How can I increase the size dynamically to add new Entity or is there any other way?
    entityMaps[1].put("entityId", "XX_LINK_ENTITY"); // entity id
    entityMaps[1].put("showAll", false); // show all property
    entityMaps[1].put("insertAllowed", false);
    entityMaps[1].put("deleteAllowed", false);
    entityMaps[1].put("updateAllowed", false);
    // Adding Primary Key to Second Entity
    String[] pkAttrNames = new String[1];
    pkAttrNames[0] = "Pk1Value"; // pk view attribute name
    entityMaps[1].put("pkColumns", pkAttrNames);
    // Setting Category Values for first Entity
    Integer CatValue = 1000486;
    Integer[] categories = new Integer[2]; // categories
    categories[0] = new Integer(1);
    categories[1] = CatValue;
    // Setting Category Values for Second Entity
    Integer[] categories2 = new Integer[1]; // categories
    categories2[0] = new Integer(1); //MISC
    attBean.setEntityMappings(entityMaps);
    attBean.setDynamicCategoriesMap("OE_ORDER_HEADERS",categories);
    attBean.setDynamicCategoriesMap("XX_LINK_ENTITY",categories2);
    Thanks & Best Regards,
    Shalini

  • How to call webservice from OAF

    Hi,
    I need to call a webservice in one of my custom OAF page. I am very new to OAF and Java and have no idea about how webservice works.
    Does anybody has any example of that, are there any setups I need to perform.
    I will appreciate if someone can share the step by step instruction with some example. I think having some example will really help me understand the process.
    Regards
    Hitesh

    Hitesh,
    Nothing out of the box for calling web services. There were a few discussions in the past and you may find some sample there.
    --Shiv                                                                                                                                                                                                                                                                                                   

  • How to modify a standard OAF page in version R12

    Dear all,
    I have a requirement to modify a standard OAF page(can't implement by personalization),and my EBS version is R12,but i have not the source java code of the page,I try to decomplie the class file by a sofeware named 'YingSoft' , as the r12's jdk is 1.6,will have some errors.
    So,anybody know how to accomplish or have other decompile software?
    thanks,
    Ming Tao.

    Hi Ming,
    I use Java Decompiler (JD) in it works fine for me. Also, I guess you know it already, but just in case, there is a detailed explanation on how to extend standard OAF pages in the OA Framework Developer's guide and how to deploy the changes.
    Regards.

  • How to customize an existing OAF page from Oracle, change it and reload it

    Hello all Oracle Developers,
    I am having a question regarding to customization, basically I am going to follow a very simple example.
    We have form: APXVDMVD and OAF web Page AP_APXVDMVD.
    Applying all our custom code via forms personnalisation is piece of cake. However trying to apply the same code to OAF web Page AP_APXVDMVD
    is a total back box for us.
    The basic example seems like this: Suppose that in the Suppliers/Vendors Page we type the supplier name and then right after that we populate in consequence all the fields:
    Taxpayer ID, Tax Registration Number, DUNS Number
    We want to grab the OAF Web page from oracle apply the custom code in java code or whatever necessary to make it work and deploy it onto the server.
    Is this achievable, if so how we can do it??? Can we grab the web page extend the classes that are necessary and deploy the solution. The demo provided from Oracle
    is showing how to create pages from zero, however Oracle have not provided how to grab an existing applications page, put the code and the deploy it
    Let me know any inputs, whatever you did and surely we will be sharing the same stuff all migration R12 long :-)

    Hi,
    You can extend OA framework pages and customize them. There is also a section for customizations in the OA Framework Developer's guide. IF this requires extensive customizations, Iwould advice to be very careful as any extensions should not interfere with the base logic of the pages. Please post here if you need more details.
    The following blog is a good one for some examples.
    http://oracle.anilpassi.com/oa-framework-extending-controller-steps-2.html
    There is also a course for the same if you are interested.
    http://education.oracle.co.uk/html/oracle/15946US/D18280GC10.htm
    Hope this helps..

  • How to do attachments in oaf page  and save

    Dear Friends
    I need to develop a  create page and in this i have to make a facility to user to attach their files .How to do this .Plz share any ideas.
    If know any standard  pages .plz share page paths.
    PLEASE HELP
    Thanks
    Aravinda

    Hi,
    Check below links:
    http://oraclearea51.com/premium-content/32-technical-articles/oaf-beginners-guide/288-adding-attachments-in-a-oaf-page.html
    http://apps2fusion.com/at/85-daxesh/516-oa-framework-attachment-region
    --Sushant

  • How to create tab in OAF page

    Hi,
    is it posssible to create tab button in OAF,if yes then how? If anybody knows then please let me know.
    Thanks & regards
    divya

    Hi,
    How to create HTML Tabs ON pages
    To achieve this effect in your application:
    1. Create a function for each page that you want to display.
    2. Create a menu of type "HTML Tab" for each tab you want to display.
    3. Add each function to its corresponding tab menu. Do not specify any Prompt values.
    4. Create a menu of type "Home Page."
    5. Add the tab submenus to the "Home Page" menu.
    Add the tab menus in your desired display sequence from left to right. The leftmost tab should be
    added first.
    Remember to specify Prompt values for each tab submenu. These values display as the tab text.
    6. Add your "Home Page" menu to your responsibility menu.
    7. Make sure your user has access to this responsibility before you try to test the menu.
    Please go through Dev Guide Tabs/Navigation.
    Thanks,
    Gaurav

  • How to use cookie in OAF?

    Hi,
    I want to set cookies from OAF controller.
    Any thought or code snippet?
    Abdul Wahid

    Thanks keerthi,
    Late reply.I guess, the article is about how oaf foundations is maintaining states.
    I did try search, but didn't get any direct solution to use cookies just like its used in servlets.
    The requirement was to maintain session information above the user level sessions. Custom servlet cookies looked fine, but couldn't get way to set those in OAF.
    However, if some body gets similar requirement, the solution found, was, "pageContext.putSessionValueDirect" method.
    Thanks again brother.
    Abdul Wahid

  • How do we translate custom OAF pages to Multiple languages

    Hi All,
    I have some custom OAF pages and need to be translated to Arabic specific format.
    I find that all the OAF page,components,lables... are stored in JDR tables.
    We applied NLS patch for arabic localization and custom pages are not being translated.
    So how do we translate the ciustom OAF pages to to specific language.
    I saw that we require .XLF(translation file for each languge ) file for each page in the mds directory of Product TOP for seeded pages.
    So how do I generate traslation file for my custom page.
    Any help on this would be of great help....
    Thanks in advance.
    Nagu

    Hi,
    For custom OAF pages we need to generate the .xlf files and add the translations and import to MDS.
    can use the follwing to command to extract
    D:\Jdeveloper\jdevbin\jdev\bin\xliffextract /temp/oracle/apps/fnd/finapps/webui/EmployeeInfoPG -includeSubpackages -mmd_dir D:\Jdeveloper\jdevbin\jdev\lib\ext\jrad\config\mmd -root D:\Temp\XLIF\XXTFRMSLAUC19 -xliff_dir D:\Temp\XLIF\XXTFRMSLAUC19 -source db -username apps -password apps -dbconnection "(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST==incq027bc.idc.oracle.com))(PORT=1521))(CONNECT_DATA=(SID=des9i2)))" -languages ar-AE
    Now add the translations in the .xlf file and import to MDS.
    can use the following import command
    java oracle.jrad.tools.trans.imp.XLIFFImporter $JAVA_TOP/temp/oracle/apps/fnd/finapps/webui/EmployeeInfoPG.xlf -username apps -password apps -dbconnection "(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(Host=incq027bc.idc.oracle.com)(Port=1521)) (CONNECT_DATA=(SID=des9i2)))"
    Thanks,
    Nagu

  • How do you merge two OAF Pages?

    Hi Experts,
    I need to merge regions of one OAF page into another in R12. In this example, it is an AP Approval Notification where in the notification there is a link where it opens into another page which details the lines in the invoice. The idea is to put some of the information in this second page into the first, so there is only the one page in the notification so the user does not have to click into another.
    I've never had to do this before and would welcome any comments on the approach. My idea is to customise the first page, i.e the main notification. The top and bottom parts page of the page is made up of standard workflow notification regions. This I would leave as it is. The central part is made up of a region that is specific to ap invoice. I could extend this region and add in the region from the second invoice lines page that I need, I would also migrate the functionality required in the controller class to the controller class in the first page.
    How does this sound? Is there anything else I need to consider?
    Many thanks,
    Mark

    Hi All,
    Many thanks for your help, which has been useful.
    The central part of the notification that is referenced by the AP workflow is the following page:
    JSP:/OA_HTML/OA.jsp?page=/oracle/apps/ap/invoice/request/negotiation/webui/NotifPGRN;INVOICEID=-&INVOICE_ID-&ITEMKEY=-&NOTIFICATION_KEY-&ITEMTYPE=-&ITEMKEY_CONST-
    Under this following page (/oracle/apps/ap/invoice/request/negotiation/webui/NotifPGRN) there is the following region:
    oracle.apps.ap.invoice.request.negotiation.webui.NotifPGRN
    So this is the main notification. On it, the lines page is referenced as a link and this goes to the follwoing region:
    /oracle/apps/ap/invoice/request/negotiation/webui/InvPoLineRN
    So just to re-iterate, I need to insert this lines region into the first page. Could I then do it by taking the controller classes out of the lines region and adding it to controller classes of the main page region and having this main page region substitute the region that is already present?
    I'm trying to get in my head what is the right approach and technically what I need to consider. Any help again is greatly recieved.
    thanks,
    Mark

  • How to restirct the access to irj/go/km/docs

    Hi Experts;
    Need your help!!!!!!!
    We want to restrict the anonymous users from accessing the content of the Km through webdav url:  https://<>/irj/go/km/docs.
    How ever the contents of Documents folder have been used on our portal  logon page also.
    So just setting permissions on the KM folders is not helping us as it blocks the content on logon page as well.
    Please suggest if there is any way to restrict anonymous access to Km repository through webdav url.
    The end user should not be able to access the KM repository  through webdav url without login.
    Regards;
    Anzar Naik

    hi,
    Could you not edit permissions of the folders. Assign them to some group. Can;t we do this in WebDAV  ?
    Beyond that service permissions and ACL can also be designed. I wish I could provide more data, but I have not worked on WebDAV   as compared to KM.
    Check this [http://help.sap.com/saphelp_nw04/helpdata/en/a9/c54e9e09448d46b73d154e93d5e995/content.htm]
    Varun

  • How to create hyperlink in oaf for particular field

    Hi All,
    I have another requirment that one of my item should have hyperlink.
    How to handle this requirment.
    Plz suggest me on this..
    Thanks
    Surya

    Hi Gyan,
    Once i click on hyperlink field it will open new page and should get the value from that new file.
    This is my new requirment.
    Plz help me with the code how to implement it.
    Thanks
    Surya
    Edited by: surya karanam on Nov 29, 2011 10:16 PM

  • HOW TO Extend AM IN OAF

    Hi All,
    I Face The Problem in Extending AM. I have a requirement to change the method Code which is Available in AMImpl.class
    My Extending AM is Displaying in About This Page. But The Method Is Available in Custom AM is Not Called The Method which is Available in Seeded AM is Called. AM Substitution done Successfully.and also JPXIMPORT done Successfully.
    My Seeded AMImpl code like
    package oracle.apps.pon.outcome.creation.server;
    import com.sun.java.util.collections.ArrayList;
    import java.sql.*;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.OAViewObject;
    import oracle.apps.fnd.framework.server.OAApplicationModuleImpl;
    import oracle.apps.fnd.framework.server.OAViewObjectImpl;
    import oracle.apps.pon.schema.server.*;
    import oracle.apps.pon.util.server.SourcingBaseAMImpl;
    import oracle.apps.pon.util.server.SourcingServerUtil;
    import oracle.jbo.RowIterator;
    import oracle.jbo.Transaction;
    import oracle.jbo.server.*;
    // Referenced classes of package oracle.apps.pon.outcome.creation.server:
    // POAwardedBiddersVORowImpl, UpdateOutcomeVOImpl
    public class POCreationAMImpl extends SourcingBaseAMImpl
    public static final String RCS_ID = "$Header: POCreationAMImpl.java 115.7.11510.2 2004/11/02 04:50:04 ssthakur ship $";
    public static final boolean RCS_ID_RECORDED = VersionInfo.recordClassVersion("$Header: POCreationAMImpl.java 115.7.11510.2 2004/11/02 04:50:04 ssthakur ship $", "%packagename%");
    private static final String ALLOCATE_ITEMS = "{ call PON_AUCTION_CREATE_PO_PKG.ALLOC_ALL_UNALLOC_ITEMS(:1, :2, :3, :4, :5, :6," +
    " :7, :8, :9, :10, :11, :12)}"
    public POCreationAMImpl()
    public OAViewObjectImpl getActiveEnabledLookupValuesVO1()
    return (OAViewObjectImpl)findViewObject("ActiveEnabledLookupValuesVO1");
    public OAViewObjectImpl getPOBuyerListVO1()
    return (OAViewObjectImpl)findViewObject("POBuyerListVO1");
    public OAViewObjectImpl getVendorSitesAllVO1()
    return (OAViewObjectImpl)findViewObject("VendorSitesAllVO1");
    public OAViewObjectImpl getPOCreationAuctionDataVO1()
    return (OAViewObjectImpl)findViewObject("POCreationAuctionDataVO1");
    public static void main(String args[])
    ApplicationModuleImpl.launchTester("oracle.apps.pon.outcome.creation.server", "POCreationAMLocal");
    public OAViewObjectImpl getPOAwardedBiddersVO1()
    return (OAViewObjectImpl)findViewObject("POAwardedBiddersVO1");
    public OAViewObjectImpl getPOAwardedItemsVO1()
    return (OAViewObjectImpl)findViewObject("POAwardedItemsVO1");
    public ViewLinkImpl getPOBidderItemVL1()
    return (ViewLinkImpl)findViewLink("POBidderItemVL1");
    public OAViewObjectImpl getLastUpdateDateVO()
    return (OAViewObjectImpl)findViewObject("LastUpdateDateVO");
    public Timestamp getLastUpdateDate(Integer integer)
    return AuctionHeadersAllEntityExpert.getLastUpdateDate(getOADBTransaction(), integer.intValue());
    public Timestamp lockAuction(Integer integer)
    return AuctionHeadersAllEntityExpert.lockAuction(getOADBTransaction(), integer.intValue());
    public void startPOCreation(String s, Integer integer, Integer integer1, String s1, String s2, Integer integer2)
    BidHeadersEntityExpert.startPOCreation(s, integer.intValue(), getOADBTransaction(), integer1.intValue(), s1, s2, integer2.intValue());
    public ArrayList validateSupplierSiteInPOCrt(String s)
    OAViewObject oaviewobject = (OAViewObject)findViewObject(s);
    return BidHeadersEOImpl.getBidHeadersEntityExpert(getOADBTransaction()).validateSupplierSiteInPOCrt(oaviewobject);
    public ArrayList performPOCrossFieldRowValidation(String s, Boolean boolean1, Boolean boolean2)
    OAViewObject oaviewobject = (OAViewObject)findViewObject(s);
    if(oaviewobject == null)
    return new ArrayList();
    } else
    return BidHeadersEntityExpert.performPOCrossFieldRowValidation(oaviewobject, boolean1.booleanValue(), boolean2.booleanValue());
    public ArrayList performPOSingleFieldValidation(String s, Boolean boolean1, Boolean boolean2)
    OAViewObject oaviewobject = (OAViewObject)findViewObject(s);
    if(oaviewobject == null)
    return new ArrayList();
    oaviewobject.reset();
    ArrayList arraylist = new ArrayList();
    POAwardedBiddersVORowImpl poawardedbiddersvorowimpl;
    while((poawardedbiddersvorowimpl = (POAwardedBiddersVORowImpl)oaviewobject.next()) != null)
    BidHeadersEOImpl bidheaderseoimpl = (BidHeadersEOImpl)poawardedbiddersvorowimpl.getEntity(0);
    if(boolean2.booleanValue())
    bidheaderseoimpl.validateOrderNumber(arraylist);
    if(boolean1.booleanValue())
    bidheaderseoimpl.validatePoStartDate(arraylist);
    bidheaderseoimpl.validatePoEndDate(arraylist);
    return arraylist;
    public String[] allocateAllUnallocatedItems(Integer integer)
    throws SQLException
    DBTransaction dbtransaction = getDBTransaction();
    *CallableStatement callablestatement = dbtransaction.createCallableStatement("{ call PON_AUCTION_CREATE_PO_PKG.ALLOC_ALL_UNALLOC_ITEMS(:1, :2, :3, :4, :5, :6," +*
    *" :7, :8, :9, :10, :11, :12)}"*
    *, -1);*
    String as[] = new String[10];
    String s = "PONCOMPL";
    String s1 = null;
    int i = integer.intValue();
    callablestatement.setString(1, s);
    callablestatement.setString(2, s1);
    callablestatement.setInt(3, i);
    callablestatement.registerOutParameter(4, 12);
    callablestatement.registerOutParameter(5, 12);
    callablestatement.registerOutParameter(6, 2);
    callablestatement.registerOutParameter(7, 12);
    callablestatement.registerOutParameter(8, 12);
    callablestatement.registerOutParameter(9, 12);
    callablestatement.registerOutParameter(10, 12);
    callablestatement.registerOutParameter(11, 12);
    callablestatement.registerOutParameter(12, 12);
    callablestatement.execute();
    as[0] = callablestatement.getString(4);
    as[1] = callablestatement.getString(5);
    as[2] = String.valueOf(callablestatement.getInt(6));
    as[3] = callablestatement.getString(7);
    as[4] = callablestatement.getString(8);
    as[5] = callablestatement.getString(9);
    as[6] = callablestatement.getString(10);
    as[7] = callablestatement.getString(11);
    as[8] = callablestatement.getString(12);
    if("SUCCESS".equals(as[0]))
    dbtransaction.commit();
    if(callablestatement != null)
    callablestatement.close();
    return as;
    *}* public void doAutomaticAllocation(Integer integer)
    try
    if(integer == null)
    throw new OAException("PON", "PON_AUC_INVALID_PARAMETERS");
    String as[] = allocateAllUnallocatedItems(integer);
    if("SUCCESS".equals(as[0]))
    UpdateOutcomeVOImpl updateoutcomevoimpl = getUpdateOutcomeVO();
    if(updateoutcomevoimpl != null)
    updateoutcomevoimpl.updateOutcomeStatus(integer);
    getOADBTransaction().commit();
    return;
    catch(Exception exception)
    throw OAException.wrapperException(exception);
    public String getProfileOption(String s)
    return SourcingServerUtil.getProfileOption(getOADBTransaction(), s);
    public void commitTransaction()
    getOADBTransaction().commit();
    public void rollbackTransaction()
    getOADBTransaction().rollback();
    public OAViewObjectImpl getPOAcceptanceValuesVO()
    return (OAViewObjectImpl)findViewObject("POAcceptanceValuesVO");
    public OAViewObjectImpl getCheckContractsEnabledVO()
    return (OAViewObjectImpl)findViewObject("CheckContractsEnabledVO");
    public UpdateOutcomeVOImpl getUpdateOutcomeVO()
    return (UpdateOutcomeVOImpl)findViewObject("UpdateOutcomeVO");
    **and My Custom AM Code like,**
    package oracle.apps.xxega.outcome.creation.server;
    import oracle.apps.pon.outcome.creation.server.POCreationAMImpl;
    import com.sun.java.util.collections.ArrayList;
    import java.sql.*;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.OAViewObject;
    import oracle.apps.fnd.framework.server.OAApplicationModuleImpl;
    import oracle.apps.fnd.framework.server.OAViewObjectImpl;
    import oracle.apps.pon.schema.server.*;
    import oracle.apps.pon.util.server.SourcingBaseAMImpl;
    import oracle.apps.pon.util.server.SourcingServerUtil;
    import oracle.jbo.RowIterator;
    import oracle.jbo.Transaction;
    import oracle.jbo.server.*;
    // --- File generated by Oracle Business Components for Java.
    public class XXEGAPOCreationAMImpl extends POCreationAMImpl
    * This is the default constructor (do not remove)
    public XXEGAPOCreationAMImpl()
    * Sample main for debugging Business Components code using the tester.
    public static void main(String[] args)
    launchTester("oracle.apps.xxega.outcome.creation.server", "XXEGAPOCreationAMLocal");
    *@Override*
    public  String[] allocateAllUnallocatedItems(Integer integer)
    throws SQLException
    DBTransaction dbtransaction = getDBTransaction();
    *CallableStatement callablestatement = dbtransaction.createCallableStatement("{ call PON_AUCTION_CREATE_PO_PKG.ALLOC_ALL_UNALLOC_ITEMS(:1, :2, :3, :4, :5, :6," +*
    *" :7, :8, :9, :10, :11, :12)}"*
    *, -1);*
    String as[] = new String[10];
    String s = "EGAPONCM";
    String s1 = null;
    int i = integer.intValue();
    callablestatement.setString(1, s);
    callablestatement.setString(2, s1);
    callablestatement.setInt(3, i);
    callablestatement.registerOutParameter(4, 12);
    callablestatement.registerOutParameter(5, 12);
    callablestatement.registerOutParameter(6, 2);
    callablestatement.registerOutParameter(7, 12);
    callablestatement.registerOutParameter(8, 12);
    callablestatement.registerOutParameter(9, 12);
    callablestatement.registerOutParameter(10, 12);
    callablestatement.registerOutParameter(11, 12);
    callablestatement.registerOutParameter(12, 12);
    callablestatement.execute();
    as[0] = callablestatement.getString(4);
    as[1] = callablestatement.getString(5);
    as[2] = String.valueOf(callablestatement.getInt(6));
    as[3] = callablestatement.getString(7);
    as[4] = callablestatement.getString(8);
    as[5] = callablestatement.getString(9);
    as[6] = callablestatement.getString(10);
    as[7] = callablestatement.getString(11);
    as[8] = callablestatement.getString(12);
    if("SUCCESS".equals(as[0]))
    dbtransaction.commit();
    if(callablestatement != null)
    callablestatement.close();
    return as;
    Is there any other way I can do this, declaratively?
    Regards,
    Nikunj Shah
    Edited by: 844549 on Mar 15, 2011 6:49 AM
    Edited by: Nikunj Shah on Mar 15, 2011 6:50 AM

    http://oracleanil.blogspot.com/2010/11/am-extension-in-oaf.html
    Thanks
    --Anil
    http://oracleanil.blogspot.com

Maybe you are looking for

  • KT4 Ultra-BSR

        Hi to everyone, I'm lookin at getting the new MSI Ultra-BSR Mobo but I'm not sure about 2 things. - First, does it support Raid on the regular IDE port for the HDD. I know it does on the S-ATA ones but for now, I've got 2 regular Parallel ATA HDs

  • IE 6 & 7 Won't Center this Div...

    Some pages on this poetry site are not centering in IE6 and 7. http://www.pictopoetry.co.uk/2011/01/fearsome-face/ It's not the same for all pages.  I just can't seem to find the fault. Thanks Martin

  • Freeze frame with Alpha problem.

    I have exported a 3 second graphic with alpha channel from After Effects. It keys perfectly until I drop on a freeze frame to lengthen it. There is a luminance drop of about 5% between the AE clip and the freeze of that clip. The freeze still maintai

  • The safari sudddenly will mnot boot up, it opens and then immediately shuts down.

    My safari web bowser shuts down right after I open it. This is the message I get Date/Time:      2011-09-14 20:51:54.238 -0700 OS Version:     10.4.11 (Build 8S165) Report Version: 4 Command: Safari Path:    /Applications/Safari.app/Contents/MacOS/Sa

  • Any good articles on podcasting?

    I work in the training department of a Federal agency. One of our department's goals for 2008 is to "do podcasting". Those involved are planning to select, what I consider to be, rather random topics. I thought that a podcast involved a series of epi