OAF question

Hi guys,
I've a question to OAF people , I'm bulding an oaf page that is consulting the contents of a database ,i want to know how can i add a row in the resulted table,this row will be showing the sum of a particular columns values for a specified set of rows (in my case, the sum of players-ages who belong to city x :
this is the original table :
city name age
city1 p1 29
city1 p2 30
city1 p3 45
city2 p4 18
city2 p6 19
city2 p8 20
i've to come up with a table similar to this one
city name age
city1 p1 29
p2 30
p3 45
sum of city 1 : 104
city2 ... ....
sum of city2: .....
how can please do this ?

Enabling the total property will give you the sum of all the rows for that item. If you need to group them for each city, then I think you may try using a 'Table-in-Table' with sums shown in outer table and individual records shown in inner table.

Similar Messages

  • SSHR Workflow OAF question

    I was unable to find code related to Workflow (create or start processes or any code related to wf in seeded OAF pages supplied) .I know for sure that workflow is attached to this I looked all over in decompiled version of code could not find it.
    I would like to know how they are invoking Workflow?
    If I have my custom workflow built do I have to call wf functions in every page to change the status of the workflow?( view, update page, review, submit page?)
    I looked in this forums, could not find any related topic.
    thanks for your HELP.

    Well, I guess this is something which you need to analyze more :) If you believe that the OAF page has WF code, then you should be able to see its handling, related objects in about this page link. It might be the scenario that a generic function might be calling the wrapper package which in turn after page processing ,calls the WF related code.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to open and the view the .jsp(OAF) page and it's related code?

    Hi,
    Can anybody help on how to open the .jsp and it's related java files to see the coding? I want to know the table and view details related to a particular OAF page. It will be great help if someone explains.
    Thanks in advance.
    Muruga.
    Edited by: Murugeshapps on Jun 26, 2009 6:37 AM

    Hi,
    Please see the following documents.
    Note: 416708.1 - How to find the correct version of JDeveloper to use with eBusiness Suite 11i or Release 12.x
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=416708.1
    Note: 330236.1 - Configuring JDeveloper For Use With Oracle Applications 11i and R12
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=330236.1
    For further OAF questions, please post it in [Technology - OA Framework |http://forums.oracle.com/forums/forum.jspa?forumID=210] forum, you would probably get a better/faster response.
    Regards,
    Hussein

  • OAF Error while deploying OA Project in APPS

    Hi Guyz,
    I'm new to this forums and also to OAF.
    Oracle Applications Version: 12.0.0 RUP6
    Oracle JDeveloper: 10.1.3.3.0
    I've just went through the OA Framework Developers Guide, OA Framework Beginners Guide Chola Press and Deployment of OA Framework Tutorials in APPS Environment by Anjani Pandey and have built a small test EmpDetails Page with Search,DML and Attachments.
    OA Project: MyAdvBookPR.jpr
    Entity Object: EmployeeEO (table: Employees)
    Entity Object: DepartmentEO (table: Departments)
    Association Object: EmpToDeptAO (Employees.employee_id = departments.department_id(+))
    View Object: EmpDetailsVO
    Application Module: AdvBookAM
    View Object Instance : EmpDetailsVO1
    OA Page: EmployeeManagerPG
    OA Controllers: EmployeeManagerCO (handles the form request on submitbutton "Apply" and "Cancel")
    ResultsAdvTableCO (handles the "Add Another Row" on the advanced table "ResultsAdvTable")
    This whole project works perfect on compilation in local m/c, my files are in: 'F:\OAF\jdevhome\jdev\myclasses\MyAdvBookPR'
    SubDirectories: MyAdvBookPR.oracle.apps.fnd.adv.server , MyAdvBookPR.oracle.apps.fnd.adv.webui and MyAdvBookPR.oracle.apps.fnd.schema.server.
    I zipped the folder MyAdvBookPR and uploaded it in $JAVA_TOP, unzipped it there and imported the "EmployeeManagerPG" page from server.
    Server location of files: $JAVA_TOP/MyAdvBookPR/oracle/apps/fnd/adv
    Next I registered a function as:
    Function Name: XXAEPL_FWK_MYADV_BOOK
    Function User Name: Amrit Sample Employee Details
    Properties Type: SSWA jsp function
    HTML Call: OA.jsp?page=/d02/clone-appl/apps/apps_st/comn/java/classes/MyAdvBookPR/oracle/apps/fnd/adv/webui/EmployeeManagerPG
    Next i added this function in "System Administrator" responsibility main menu.
    On running: i get an exception:
    Exception Details.
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_NO_REGION_DATA. Tokens: REGIONCODE = /d02/clone-appl/apps/apps_st/comn/java/classes/MyAdvBookPR/oracle/apps/fnd/adv/webui/EmployeeManagerPG;
         at oracle.apps.fnd.framework.webui.JRAD2AKMapper.getRootMElement(JRAD2AKMapper.java:529)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getWebBeanTypeDataFromJRAD(OAWebBeanFactoryImpl.java:3745)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getRootApplicationModuleClass(OAWebBeanFactoryImpl.java:3467)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1100)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:536)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:424)
         at OA.jspService(_OA.java:212)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:335)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:270)
         at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:42)
         at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:204)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:322)
         at RF.jspService(_RF.java:225)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:335)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    ## Detail 0 ##
    Exception:
    oracle.adf.mds.MetadataDefException: Unable to find component with absolute reference = /d02/clone-appl/apps/apps_st/comn/java/classes/MyAdvBookPR/oracle/apps/fnd/adv/webui/EmployeeManagerPG, XML Path = null. Please verify that the reference is valid and the definition of the component exists either on the File System or in the MDS Repository.
         at oracle.adf.mds.internal.MetadataManagerBase.findElement(MetadataManagerBase.java:1370)
         at oracle.adf.mds.MElement.findElement(MElement.java:97)
         at oracle.apps.fnd.framework.webui.JRAD2AKMapper.getRootMElement(JRAD2AKMapper.java:503)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getWebBeanTypeDataFromJRAD(OAWebBeanFactoryImpl.java:3745)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getRootApplicationModuleClass(OAWebBeanFactoryImpl.java:3467)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1100)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:536)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:424)
         at OA.jspService(_OA.java:212)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:335)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:270)
         at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:42)
         at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:204)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:322)
         at RF.jspService(_RF.java:225)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:335)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Exception:
    oracle.adf.mds.MetadataDefException: Unable to find component with absolute reference = /d02/clone-appl/apps/apps_st/comn/java/classes/MyAdvBookPR/oracle/apps/fnd/adv/webui/EmployeeManagerPG, XML Path = null. Please verify that the reference is valid and the definition of the component exists either on the File System or in the MDS Repository.
         at oracle.adf.mds.internal.MetadataManagerBase.findElement(MetadataManagerBase.java:1370)
         at oracle.adf.mds.MElement.findElement(MElement.java:97)
         at oracle.apps.fnd.framework.webui.JRAD2AKMapper.getRootMElement(JRAD2AKMapper.java:503)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getWebBeanTypeDataFromJRAD(OAWebBeanFactoryImpl.java:3745)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getRootApplicationModuleClass(OAWebBeanFactoryImpl.java:3467)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1100)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:536)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:424)
         at OA.jspService(_OA.java:212)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:335)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:270)
         at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:42)
         at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:204)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:322)
         at RF.jspService(_RF.java:225)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:335)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Plz help me resolve this error or if i've done anything wrong while deploying it plz feel free to pin-point it.
    I would like to apologise for any disobedience to the standards of this forum, in case i have. Plz forgive coz i admit i'm a newbie.
    Hoping and requesting for an immediate response from all the respected members.
    Regards
    Ari
    Edited by: ac4991 on Nov 17, 2012 3:19 AM

    Please ask OAF question in the {forum:id=210}
    Timo

  • Return to parent page in oaf

    Hi All,
    I have created a custom OAF page and linked the same with 3 standard OAF pages(Lets say Standard-Page1, Standard-Page2, Standard-Page3) in such a way that whenever I click the GO button in any of those standard pages it navigates to my custom page.
    As of now when I click the BACK button in the custom page it navigates back to Standard-page1(Because i have given the page1 Path in the pageContext.ForwardImmediately) only even though if I would have opened my custom page from standard-Page2 or 3.
    I need to understand what should I do to navigate back to the exact standard page from which the custom page has been opened.
    Any help on this would be greatly appreciated.
    Many thanks in advance!
    Kind Regards,
    Myvizhi

    Please ask OAF question on the {forum:id=210}
    Timo

  • Is it possible to embed a pdf attachment to a pdf output report?

    Hi community,
    The question is a little bit complex, cause we do not know if belongs to Reports or tu E-Business-Suite. Our development Team has just created a report for a list of purchased/sold goods, which output is a PDF file.
    On the other hand, the customer, is attaching a PDF (an agreement) to the items included in the Sales Orders in the Sales Order Window in the Order Management Responsibility. The customer wants that when they prints the report, the agrreement attached to each item in the sales order, will be printed too.
    Is there any way to include the .pdf attachments in a .pdf's output report?
    Thanks

    1. This is not a OAF question, reports forum would be a better place to post the query.
    2. I had the same requirement of merging multiple PDFs in oracle Quoting, what I did was get a third party code from net which joins two PDFs.
    So, you need to do this
    1. Have a request set, with two conc programs
    2. Program one in the request set would generate the PDF report as it is doing now
    3. Program two in the request set would go back to the order, see if there is a attachment, if yes, pulls it, calls the third party java PDF merge program, merges both the PDFs and then generate the output, which is a consolidated PDF/
    Thanks
    Tapash

  • Change in Item Category KFF after Prod Migration

    Hi
    Our company had to move from a 2 segment Item Category KFF to 3 segment Item Category KFF.
    We know this is not recommended practice, but there was real business need for this.
    Now we have written programs to change all existing transactions to have new categories.
    One thing we are not able to figure out is, when we goto Setup-Items- Category Codes and query Categories, it gives an error "value for the flexfield segment does not exist in the value set". This is coming from the old Item Categories which have been end-dated.
    How can we get rid of this error?

    But this is not an OAF Question!?
    Anyways i got my solution:
    The values on this window are queried from MTL_CATEGORIES_KFV (KFF View) which in turn gets the KFF combinations from MTL_CATEGORIES_B. So deleting the values from MTL_CATEGORIES_B gets rid of this error.

  • Display/popup a message in Page designed in 11.5.10.2 OA Framework

    Hi All,
    Iam trying to develop a page using jdeveloper and I would like to display or popup a message when a button/link is clicked. Does anyone suggest me how can I do this ?
    Thanks
    Skumar

    Skumar,
    OAF question are better out here {forum:id=210}
    Timo

  • HOW TO CHANGE LENGTH ATTRIBUTE OF AN STANDARD ITEM?

    we need to set appropiate "display" lenght to an item (VO attribute) in a standard OAF page.This item has maximum length=30 but length (to display)=25 . This is not acceptable for our customers because they can't see the complete value of the item
    To see the item (Project Name):
    Project Manager resp.--> Project List
    Choose a Project.
    CLick on Setup Page
    There, it appears project information. One of the items is Project Name (Name).
    As I said before, this item has maximun length =30 but displays only 25 characteres wide in the "box". Most of items have the same number in both of their properties, but not this.
    How could we change it?
    (of course respecting standards)
    Page is : BasicInformationPG.xml
    it is in /oracle/apps/pa/project/webui
    I'm trying to see where to modify the attribute length while I'm extending the VO.
    I mean:
    I create in JDeveloper a VO (ProjectBasicInfoVO) extending the original.
    I edit VO and go to Attributes... and I see that "Type" property for "Name" attribute is VARCHAR2(30). But.. 30 is not the number of characters we can see in the screen... so How could I change the "length" property of "Name" attribute while extending the VO?
    Please, provide detailed steps. Sorry, I don't see so easy as you say ...

    OAF questions should go into the OAF forum.
    In general you can use the UI control hints for the attribute to set its display width.

  • Edit a readable region if we click a checkbox

    Hi Team,
    i Have a requirement like i need to edit a noneditable (readonly) line in table region OAF Page when i click a checkbox and should change the colour of the line like yellow.
    please give me the detailed steps how to do the scenario.please do the favour.
    Best Regards,
    Sriram.

    Please post OAF questions on the OAF forum.

  • Some questions on OAF?

    hello friends,
    i have few question on OAF? i checked this in forum, but i could not find anyhting. please give me suitable answers for them.thanks for your help.
    1)what is difference between row count and fetched row count?
    2)What is difference between data model and row model in OAF?
    3)Which are the properties we can set in spel ?
    4)When VO and view attribute will become dirty?
    5)What is difference between set value and populate value in VO attribute?
    Thanks
    krish.

    >
    1)what is difference between row count and fetched row count?
    getRowCount() gives the number of rows after executing the query using vo.executeQuery().
    getFetchedRowCount() gives you number of rows after query is executed and pulled by the beans such as Table or Adv Table etc.
    2)What is difference between data model and row model in OAF?
    Let me know also where have you heard row model in OAF.
    3)Which are the properties we can set in spel ?
    Here are the properties :-
    Required
    Read Only
    Rendered
    Disabled
    4)When VO and view attribute will become dirty?
    Whenever a user changes a value in any of the attribute, it causes VO to become dirty and its setter gets called on form submit.
    5)What is difference between set value and populate value in VO attribute?setAttribute makes a call to setAttributeInternal which posts the changes to cache and marks the VO/EO as dirty while if developer uses populateAttribute instead of setAttributeInternal this post the changes to cache but doesnt marks the VO/EO as dirty.
    Hope i make it clear!!!
    Thanks
    AJ

  • OAF Advanced Questions and Answers

    Dear All,

    Dear All,
    I am having a exam in OAF Advanced topic. If anyone provide the exam questions and answer, it will be more helpful.

  • OAF page customization question - help needed urgently!

    Hi,
    To minimize customizations on an OAF page we are trying to handle some validations at the databse layer using a db trigger. The flow is that when the user hits Save on an OAF page and a certain column in a table is updated by the EO, a db trigger set on this column will fire off. Based upon whether the validation went through or not the db trigger might fail
    with an error message. Question is will this message be displayed on the UI without any customizations so that the user knows what happened or will the OAF page just throw a null pointer exception? Also since OAF is writing directly to DB using an EO, will it be too late by the time the trigger kicks in and validates stuff and then based on if there was an error it rollsback the data? Can we rollback the entire transaction or not?
    Please help!

    Adding to Mukul's reply, yes if you are using OAF, let all the control be through the OAF. In your case any error in the DB will be sent back to the user in a very raw way which surely will annoy any user. Also we cann't comment on the rollback status.
    My suggestion is to make use of a callable statement and call a wrapper pl/sql procedure which does all the validations for you (in case you have varied and complex validations) and returns a true or false based on which you can commit the transaction.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Few question on OAF

    Dear friends.
    i have few questions on OAF..
    1)i have 10 personalization in one page, i want to move only 8 personalization from 10, to anyother destination instance, any steps?
    2)is there any way without extension VO to achieve-by adding some columns or adding eaxtra logic in that vo?
    3)what are all menus and tabs in OAF?
    Thanks
    krish

    1)actuallly i want to move only 8 personalization out of 10 to destination instance,means i have a 10 personalizations in one page need only 8 to move rest 2 should not move to destination? Personalization get exported in one go. What you can do is through Func. Administrator resp you can remove/disable the personalization which you do not want and export the rest one through imort/export facility.
    2)how to find- how many types of tabs and mens in OAF?i checked in dev guide dont have that step. please can you have any list type of menus and tabls in OARead chapter Tabs/Navigation in Dev Guide. What exactly you want to know.
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • First OAF page deployment - many questions

    I am trying deploy my first OAF Page (HelloWorldPG). However, I am getting lost trying to understand the directory
    structure. I tried to read through older posts from other users....but parts of their directory structure is different
    from mine.
    Development Steps:
    1) Created new OA component page using the default package "oracle.apps.ak.hello"
    The Physical location of the page is C:\JDEV\jdevhome\jdev\myprojects\oracle\apps\ak\hello\webui
    I notice that it is also located under C:\JDEV\jdevhome\jdev\myclasses\oracle\apps\ak\hello\webui. why does it get created in both myprojects and myclasses?
    2) Created and attached the controller class (HelloWorldMainCO.class) as suggested in the dev guide
    Physical location of the class file is C:\JDEV\jdevhome\jdev\myclasses\oracle\apps\ak\hello\webui
    3) Build and run the page. Page runs with out any errors
    Deployment steps(This is where I feel like I am running in circles...)
    1) I manually created a directory structure "/hello/webui" under $JAVA_TOP/oracle/apps/ak since I thought that it should match what I had on my PC. Is this step of creating the directory structure manually even needed?
    2) Then I migrated:
    a)"HelloWorldPG.xml" into $JAVA_TOP/oracle/apps/ak/hello/webui from C:\JDEV\jdevhome\jdev\myprojects\oracle\apps\ak\hello\webui
    as ASCII after ftp'ing into in my UNIX via command prompt
    b) "HelloWorldMainCO.class" into $JAVA_TOP/oracle/apps/ak/hello/webui from C:\JDEV\jdevhome\jdev\myclasses\oracle\apps\ak\hello\webui
    as Binary after ftp'ing into in my UNIX via command prompt
    3) I tried to import the page/region in to the DB using the following command in the command prompt from C:\JDEV\jdevbin\jdev\bin
    import C:\JDEV\jdevhome\jdev\myprojects\oracle\apps\ak\hello\webui\HelloWorldPG.xml -username apps -password <password> -rootdir C:\JDEV\jdevhome\jdev\myprojects\ -dbconnection "(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.xx.x.xxx)(PORT=1521))(CONNECT_DATA=(SID=<xxxxxx>)))" -rootPackage /oracle/apps/ak/hello
    Import seems to have completed successfully without any errors. However, I am not sure if I gave the correct rootpackage or not.
    JDR_% tables seem to be updated. I can vouch for only the JDR_PATHS table as only that seems to have the creation date.
    PS: In the above import statement, I masked (only for this post) the password, ip address and the SID for security reasons. I am confident that what I used when importing is accurate.
    4) At this point should I be able to run procedure shown below?
    Begin
    jdr_utils.PrintDocument('/oracle/apps/ak/hello/webui/HelloWorldPG');
    End;
    or should I first create the AOL function/attach it to the menu and then run the above?
    I tried running it, with out creating the AOL Function and attaching the menu. It comes back with the message "Error: Could not find document /oracle/apps/ak/hello/webui/HelloWorldPG".
    5) Then I created the form function called "TOOLBOX_HELLO" with following:
    Type = SSWA jsp function
    HTML Call = "OA.jsp?page=/oracle/apps/ak/hello/webui/HelloWorldPG"
    Now I don't know which menu to add the AOL Function.
    As I mentioned earlier, I tried to read through several other older posts....however, I am getting confused.
    There are multiple places in the above steps where I need guidance. Could any one pls. suggest/correct my steps in deployment?
    Thanks

    Hi there,
    1) Created new OA component page using the default package "oracle.apps.ak.hello"
    The Physical location of the page is C:\JDEV\jdevhome\jdev\myprojects\oracle\apps\ak\hello\webui
    I notice that it is also located under C:\JDEV\jdevhome\jdev\myclasses\oracle\apps\ak\hello\webui. why does it get created in both myprojects and myclasses?
    The folder myclasses holds the .class compiled object files you deploy, the myprojects folder holds the .java source files.
    2) Created and attached the controller class (HelloWorldMainCO.class) as suggested in the dev guide
    Physical location of the class file is C:\JDEV\jdevhome\jdev\myclasses\oracle\apps\ak\hello\webui
    3) Build and run the page. Page runs with out any errors
    Deployment steps(This is where I feel like I am running in circles...)
    1) I manually created a directory structure "/hello/webui" under $JAVA_TOP/oracle/apps/ak since I thought that it should match what I had on my PC. Is this step of creating the directory structure manually even needed?
    Yes. This allows your code to be separate from seeded code so it isn't overwritten on patches.
    2) Then I migrated:
    a)"HelloWorldPG.xml" into $JAVA_TOP/oracle/apps/ak/hello/webui from C:\JDEV\jdevhome\jdev\myprojects\oracle\apps\ak\hello\webui
    as ASCII after ftp'ing into in my UNIX via command prompt
    b) "HelloWorldMainCO.class" into $JAVA_TOP/oracle/apps/ak/hello/webui from C:\JDEV\jdevhome\jdev\myclasses\oracle\apps\ak\hello\webui
    as Binary after ftp'ing into in my UNIX via command prompt
    3) I tried to import the page/region in to the DB using the following command in the command prompt from C:\JDEV\jdevbin\jdev\bin
    import C:\JDEV\jdevhome\jdev\myprojects\oracle\apps\ak\hello\webui\HelloWorldPG.xml -username apps -password <password> -rootdir C:\JDEV\jdevhome\jdev\myprojects\ -dbconnection "(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.xx.x.xxx)(PORT=1521))(CONNECT_DATA=(SID=<xxxxxx>)))" -rootPackage /oracle/apps/ak/hello
    Import seems to have completed successfully without any errors. However, I am not sure if I gave the correct rootpackage or not.
    JDR_% tables seem to be updated. I can vouch for only the JDR_PATHS table as only that seems to have the creation date.
    PS: In the above import statement, I masked (only for this post) the password, ip address and the SID for security reasons. I am confident that what I used when importing is accurate.
    4) At this point should I be able to run procedure shown below?
    Begin
    jdr_utils.PrintDocument('/oracle/apps/ak/hello/webui/HelloWorldPG');
    End;
    Yes, that will show you that it was loaded into mds. This is only for diagnostic purposes, not always required.
    or should I first create the AOL function/attach it to the menu and then run the above?
    You can now to do the AOL function.
    I tried running it, with out creating the AOL Function and attaching the menu. It comes back with the message "Error: Could not find document /oracle/apps/ak/hello/webui/HelloWorldPG".
    5) Then I created the form function called "TOOLBOX_HELLO" with following:
    Type = SSWA jsp function
    HTML Call = "OA.jsp?page=/oracle/apps/ak/hello/webui/HelloWorldPG"
    Now I don't know which menu to add the AOL Function.
    As I mentioned earlier, I tried to read through several other older posts....however, I am getting confused.
    There are multiple places in the above steps where I need guidance. Could any one pls. suggest/correct my steps in deployment?
    You need to bounce the apache server on the middle tier to get it to work.
    Hope this helps.
    Kristofer

Maybe you are looking for