Pop Regions in OAF

Hi all
I have already read the post of Anil's well defined blog over Popup regions in OAF, and I am very much near to achieve it.
I am facing some problem while implementing a popup region in my page. Let me tell you the condition first.
I have a reference document_no field in my query page.
I have created a separate VO and AM for this purpose. Lets say I wrote the query in my VO
select request_no, att1, att2, att3, att4
from my_request
after that I assigned it to an AM. Then I create a standalone region and assign this AM to my recently created region.
Then I go to my search page and create a flowlayout and drag this request_no field to my flowlayout region and also created a popup region under the node of this flowlayout region.
I want to create a parametrized popup region. Now I want my request_no field to appear as a LINK in my search page, on which after clik my popup region should open.
Keep in mind that my query page an my standalone region has separate VO and AM. Does this exercise work ?
Please help me dear gurus, and let me know that how to pass parameter of document_no to my standalone region controller so that I can query the records when I click on the link ? Please provide me the detailed steps
Regards

Hi,
You can set the document_id in session and then you grab that
value anywhere you want.
pageContext.putSessionValue("documentid",document_id);
and you can capture that value at anytime in controller using
pageContext.getSessionValue("documentid");
Thanks,
Gaurav

Similar Messages

  • Is it possible to display Oracle form as a region in OAF Page?

    Hi
    Is it possible to display Oracle form as a region in OAF page something like a master detail relationship such that Master information is displayed in OAF UI but detail information below is displayed in Oracle forms?Is there a tag that lets one do that specific for Form.
    One way could be do to embed applet in OAF page which would call and display oracle form but not sure if using javascript/applet in OAF would violate OAF coding standards or create some session management issues.
    Regards
    Preeti

    Thanks for your reply.I have seen an implementation that uses Adf and able to display form on same page as in inlinefraame in .jspx page using inlineFrame tag
    <af:inlineFrame inlineStyle="height:700px; width:1380px;"
    id="inlineFrm1"
    source="#{gofDrillback01.targetURL}"/>
    But I guess OAF doesnt have a similar tag to support forms.Thoughts?
    Regards
    Preeti

  • Tree Structure in Shuttle Region in OAF

    Does anyone have any idea on how to bring the tree structure within the shuttle region of OAF. I cam across the link http://www.oracle.com/technology/tech/blaf/specs/shuttle.html#hgrid which displays the hgrid within the shuttle region. Unfortunately i don't see any steps that has been mentioned for doing that. If anyone has done this kind of stuff kindly advise.
    Thanks,
    Mohammadi

    Hi,
    I think we need to create it programtically.
    You need to create the shuttle bean ... create hgrid bean and then add this as its child.I havn't done this.But we should do everything programatically.
    Thanks
    Soujanya.

  • How to Open a URL that is displayed in the Column of Results Region in OAF

    I need to open Invoice pdf from OAF page. The link to the pdf is obtained from other table.
    This is similar to Open Image button that we have in Payables--> Invoice: Entry --> Invoice form.
    I need to develop an OAF page where in when the user clicks on the pdf url link, the corresponding pdf has to open for the transaction line.
    I have an OAF page for which in the results region, i retrieve a column that contains URL addresses.
    Say, I have a column named: URL_ADDRESS (www,yahoo.com) in a table and when i press the search button, all the URL addresses are populated in the results region.
    I have defined an item with Style: messageStyledText, and i have set the View Instance and View Attribute properties corresponding to the VO that it is referring to...
    What property do i need to set in DestinationURL??
    My OAF page is based on pure VO. I dont use EO in my OAF page.
    Edited by: user9947366 on Feb 26, 2009 10:56 PM

    My question is more on how to find the resource from a
    particular location.
    To be more specific, when I use /myresource/image.gif,
    how cat I instuct it
    to use the image.gif file which is in myjar.jar?
    Thanks.getResource() will search the CLASSPATH for the given resource. If myjar.jar is your application and contains a file "image.gif" in the directory "myresources" gif the above given code will load the image from the jar.

  • Column Totals of a table region in OAF Page

    Hi,
        I developed a custom OAF page with a table region (NOT an Advanced table region). It has several columns and one of them is a flag column of checkbox type and also there is amount column.
    My requirement is to display totals on the amount column based on the flag value. So if there are 4 records out of which 3 of them have flag = "Y"
    then at footer level, one line should display Total Amount when flag = "Y"   as sum(amount_column) with flag = "Y"
    and another line should display : Total Amount when flag = "N"  as sum(amount_column) with flag = "N".
    Can anybody help me how I can accomplish this?
    Note: I tried to use "Total" property to "True" but it is displaying data irrespective of my flag value. Some how, I should be able to filter the total based on the flag column. Also I need to display as one total per each flag value...
    Please note that I am using Table region NOT Advanced table region.....I appreciate of some one can give me detailed steps to accomplish this. Thanks
    Sample output....
    Flag            Amount
    Y                       100
    N                         50
    Y                         15
    Y                         20
    Total with "Y" = 135
    Total with "N" = 50

    hi Smitha,
        We cannot avoid that. but an alternate is that use another table above this table and which has the number of rows as zero. hide the table header for the below table. you need to adjust the header of above table so that it fits for the below table.
    This works fine if the table doesn't have sorter facility.
    Regards,
    Gopi

  • Single Selection in table Region in OAF .

    Dear Friends ,
    I have a OAF search page developed , and it has table region attach to it . The output of search has several columns
    out of which one of them is header ID .
    Now i would like to have a radio button attached to a every row , and when ever the user selects a specific row
    by selecting the radio button i would like to display a Message saying "Row with header is selected :x " and again if the user selects the other row it has to display "Row with header id :y " is selected . I would like to pass header id as parameter . And its NOT a advance table region .
    This process should happen dynamically , Could you please share you thoughts on this .
    Thanks in Advance ,
    Keerthi.k
    Edited by: user1140193 on Jul 11, 2011 3:09 AM

    Hi Gyan,
    I have a similar requirement where I created a custom checkbox column and when it is checked/unchecked I should update a column in database table based on Wip Entity Name. I am using the following code to get the current row value of "WipEntityName",
    String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    OAApplicationModule am1 = pageContext.getApplicationModule(webBean);
    XXListJobOpsVOImpl poRow1 = (XXListJobOpsVOImpl)am1.findRowByRef(rowReference);
    String JobName = (String)poRow1.getAttribute("WipEntityName");
    I get an error saying Method 'getAttribute' not found. Can you please tell me what is wrong in my code?
    Thanks.

  • Deatail Region in OAF Table - Show not responding for first time click

    I have added a detail region to my OAF results table. A link for 'show' appears for each record of my results table. When I click Show for a purticular record - the page refreshes, The control is going to Process Form Request but nothing is happening.
    If I click the 'Show' for the second time for a purticular record ,Show functionality works and I could see my detail section under that record and the Hide functionality works fine too. Please advise if that is how it is suppose to behave or if we can change any property of the table to make it work for the firest time.
    Thanks, Pradeep

    Pathi,
    Please try to have the WhereClause in the VO query as part of static definition itself. So you would only need to bind the parameter and execute the Query.
    Try and let me know if that helped.
    Thanks
    Sumit

  • Error in creating a new region in OAF

    I have created a new region and wanted to associate it to an existing page through personalization. Initially it errored out just on creating the Flexible layout where i just provided the id name. After bouncing the server several times, at one point of time i was successfull in associating the region by following the same steps, by which it was erroring out previously.
    Things were working fine. Now due to some other requirement i bounced the apache server one more and now again it is erroring out...
    Following is the error message:
    Logout
    Error Page
    Exception Details.
    oracle.apps.fnd.framework.OAException: oracle.adf.mds.exception.MDSRuntimeException: Unable to find component with absolute reference = /xxdev/oracle/apps/po/reqsummary/webui/XXDEVReqSummaryRN.LinesResultsTable.Supplier, 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.apps.fnd.framework.OAException.wrapperException(OAException.java:896)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1169)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:2142)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:532)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:420)
         at OA.jspService(_OA.java:213)
         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 ##
    oracle.adf.mds.exception.MDSRuntimeException: Unable to find component with absolute reference = /xxdev/oracle/apps/po/reqsummary/webui/XXDEVReqSummaryRN.LinesResultsTable.Supplier, 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.MUnResolvedState.resolveState(MUnResolvedState.java:195)
         at oracle.adf.mds.internal.ElementData.resolveState(ElementData.java:509)
         at oracle.adf.mds.internal.ElementData.getUntransAttrVal(ElementData.java:922)
         at oracle.adf.mds.internal.ElementData.getAttrVal(ElementData.java:835)
         at oracle.adf.mds.internal.ElementData.getAttributeValue(ElementData.java:260)
         at oracle.adf.mds.internal.Cache.getAttribute(Cache.java:237)
         at oracle.adf.mds.internal.MetadataManagerBase.getAttributeValueInternal(MetadataManagerBase.java:1103)
         at oracle.adf.mds.internal.MElementImpl.getAttrValueOrExpression(MElementImpl.java:620)
         at oracle.adf.mds.internal.MElementImpl.getAttributeValue(MElementImpl.java:230)
         at oracle.adf.mds.MElement.getLocalRef(MElement.java:291)
         at oracle.adf.mds.internal.XMElementImpl.<init>(XMElementImpl.java:367)
         at oracle.adf.mds.internal.XMElementImpl.createChild(XMElementImpl.java:656)
         at oracle.adf.mds.internal.XMElementImpl.resolveDescendants(XMElementImpl.java:282)
         at oracle.adf.mds.internal.XMElementImpl.resolveDescendants(XMElementImpl.java:283)
         at oracle.adf.mds.internal.XMElementImpl.getGroupings(XMElementImpl.java:120)
         at oracle.apps.fnd.framework.webui.JRAD2AKMapper.processRegion(JRAD2AKMapper.java:1163)
         at oracle.apps.fnd.framework.webui.JRAD2AKMapper.processGrouping(JRAD2AKMapper.java:1403)
         at oracle.apps.fnd.framework.webui.JRAD2AKMapper.processRegion(JRAD2AKMapper.java:1245)
         at oracle.apps.fnd.framework.webui.JRAD2AKMapper.processGrouping(JRAD2AKMapper.java:1403)
         at oracle.apps.fnd.framework.webui.JRAD2AKMapper.processRegion(JRAD2AKMapper.java:1245)
         at oracle.apps.fnd.framework.webui.JRAD2AKMapper.processGrouping(JRAD2AKMapper.java:1403)
         at oracle.apps.fnd.framework.webui.JRAD2AKMapper.processRegion(JRAD2AKMapper.java:1245)
         at oracle.apps.fnd.framework.webui.JRAD2AKMapper.processPage(JRAD2AKMapper.java:1008)
         at oracle.apps.fnd.framework.webui.JRAD2AKMapper.loadPage(JRAD2AKMapper.java:797)
         at oracle.apps.fnd.framework.webui.OAPageBean.initializeCustomizationsMDS(OAPageBean.java:6592)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2317)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1888)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:532)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:420)
         at OA.jspService(_OA.java:213)
         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)
    oracle.adf.mds.exception.MDSRuntimeException: Unable to find component with absolute reference = /xxdev/oracle/apps/po/reqsummary/webui/XXDEVReqSummaryRN.LinesResultsTable.Supplier, 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.MUnResolvedState.resolveState(MUnResolvedState.java:195)
         at oracle.adf.mds.internal.ElementData.resolveState(ElementData.java:509)
         at oracle.adf.mds.internal.ElementData.getUntransAttrVal(ElementData.java:922)
         at oracle.adf.mds.internal.ElementData.getAttrVal(ElementData.java:835)
         at oracle.adf.mds.internal.ElementData.getAttributeValue(ElementData.java:260)
         at oracle.adf.mds.internal.Cache.getAttribute(Cache.java:237)
         at oracle.adf.mds.internal.MetadataManagerBase.getAttributeValueInternal(MetadataManagerBase.java:1103)
         at oracle.adf.mds.internal.MElementImpl.getAttrValueOrExpression(MElementImpl.java:620)
         at oracle.adf.mds.internal.MElementImpl.getAttributeValue(MElementImpl.java:230)
         at oracle.adf.mds.MElement.getLocalRef(MElement.java:291)
         at oracle.adf.mds.internal.XMElementImpl.<init>(XMElementImpl.java:367)
         at oracle.adf.mds.internal.XMElementImpl.createChild(XMElementImpl.java:656)
         at oracle.adf.mds.internal.XMElementImpl.resolveDescendants(XMElementImpl.java:282)
         at oracle.adf.mds.internal.XMElementImpl.resolveDescendants(XMElementImpl.java:283)
         at oracle.adf.mds.internal.XMElementImpl.getGroupings(XMElementImpl.java:120)
         at oracle.apps.fnd.framework.webui.JRAD2AKMapper.processRegion(JRAD2AKMapper.java:1163)
         at oracle.apps.fnd.framework.webui.JRAD2AKMapper.processGrouping(JRAD2AKMapper.java:1403)
         at oracle.apps.fnd.framework.webui.JRAD2AKMapper.processRegion(JRAD2AKMapper.java:1245)
         at oracle.apps.fnd.framework.webui.JRAD2AKMapper.processGrouping(JRAD2AKMapper.java:1403)
         at oracle.apps.fnd.framework.webui.JRAD2AKMapper.processRegion(JRAD2AKMapper.java:1245)
         at oracle.apps.fnd.framework.webui.JRAD2AKMapper.processGrouping(JRAD2AKMapper.java:1403)
         at oracle.apps.fnd.framework.webui.JRAD2AKMapper.processRegion(JRAD2AKMapper.java:1245)
         at oracle.apps.fnd.framework.webui.JRAD2AKMapper.processPage(JRAD2AKMapper.java:1008)
         at oracle.apps.fnd.framework.webui.JRAD2AKMapper.loadPage(JRAD2AKMapper.java:797)
         at oracle.apps.fnd.framework.webui.OAPageBean.initializeCustomizationsMDS(OAPageBean.java:6592)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2317)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1888)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:532)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:420)
         at OA.jspService(_OA.java:213)
         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)
    Logout
    Copyright (c) 2006, Oracle. All rights reserved.

    But this is not happening for other pages..only this page is creating problem...
    This region I am creating for the page whose navigation is as shown below:
    1) Login as PO Super User
    2) Go to Requisition Work Bench -> Requisitions -> Summary -> Lines Tab.
    In this page in the search region I need to add one Criteria Item named Requisition Description
    Now in our development instance,creating a Criteria Itme for this region through personalization is not enabled. But the same thing is enabled in the Test Environment. However if I go and just click on Create Item -> Criteria row and provide the id name and click on Apply the page is erroring out. Would anyone please try replication the same in their available instance and let me know whether they are facing similar issues.

  • Error while running report in DocViewer region through OAF .

    I am trying to run a report , on my custom region embedded in seeded page of service request module.
    I have extended region :
    "/oracle/apps/xdo/oa/common/webui/DocumentViewerRn.MainRegion"
    I followed the steps in this thread :
    http://apps2fusion.com/at/ps/51-ps/294-bi-publisher-document-viewer-common-region-embeded-report-output-in-oa-framework-page-part-2
    When I run the report I get this error :
    "An error encounterd either due to invalied Template details or due to null Data Input Stream."
    I am not sure if the template registration is the problem or it is the code. Most of the custom report templates are attached to Custom application(short code = MAC), but this report will be run from embedded custom region in seeded application....Could that create any problem ?
    please guide.
    Following are the codes in my files :
    CO-PR -
    AppsContext appscontext =
    ((OADBTransactionImpl)am.getOADBTransaction()).getAppsContext();
    String locale = null;
    try
    String as[] = OAHelper.getISOCodes(appscontext, appscontext.getCurrLangCode());
    locale = as[0]+"-"+as[1];
    // System.out.println("CO-PR - locale " + locale);
    catch(SQLException sqlexception)
    throw new OAException(sqlexception.getMessage(), (byte)0);
    // Set the page context parameter required for datasource BlobDomain.
    pageContext.putParameter("p_DataSource", "BlobDomain");
    pageContext.putParameter("p_DataSourceCode", "MAQuestionDataDefinition");
    pageContext.putParameter("p_DataSourceAppsShortName", "MAC");
    pageContext.putParameter("p_XDORegionHeight", "700");
    pageContext.putParameter("p_TemplateCode", "MAQuestionTemplate");
    pageContext.putParameter("p_TemplateAppsShortName", "MAC"); -----------------------------------------could this be a problem ?
    pageContext.putParameter("p_Locale", locale);
    CO-PFR :
    // Handle the Run button event.
    if(pageContext.getParameter("Go") != null)
    System.out.println("user presses run button");
    Serializable params[] = {   problemIdFV  };
    // Generate the Data XML. The data xml should contain the employees of the specified dept
    // number
    XMLNode xmlNode = (XMLNode) am.invokeMethod("getQuestionDataXML",params);
    try{
    // Create a blob object and add the data xml to it.
    BlobDomain blob = new BlobDomain();
    OutputStream os = blob.getBinaryOutputStream();
    xmlNode.print(os);
    os.close();
    pageContext.putSessionValueDirect("XML_DATA_BLOB", blob);
    catch(Exception e)
    throw new OAException(e.getMessage(), (byte)0);
    code AM :
    public XMLNode getQuestionDataXML(String pid)
    ListQuestionsOafRptVOImpl vo = getListQuestionsOafRptVO1();
    vo.initQuery(pid);
    XMLNode xmlNode = (XMLNode) vo.writeXML(4, XMLInterface.XML_OPT_ALL_ROWS);
    return xmlNode;
    Code in VO:
    setWhereClauseParam(0,pIdNum );
    executeQuery();
    thanks in advance

    Hi,
    There may be few possible reasons:
    1. Template has not been designed correctly
    2. Template is not registered correctly or name u r using in code doesn't match with registered Template
    3. While registering you have not used correct language and territory.
    cross check these things, for Template you can check from Ms-Word it self.
    Regards,
    Reetesh Sharma

  • Need to perform validations across the Regions in OAF

    Hi
    There are 4 regions in a seeded page. The hierarchy is like below.
    Region_1
    ---------> Item_1
    ********Region_2
    ********--------> Item_2
    ********Region_3
    ********--------> Item_3
    Region_4
    ---------> Button_1
    NOTE: Region_2 and Region_3 are under Region_1
    I have separate controllers for each and every region.Now the requirement is when i click on Button_1 i have to perform some validation by fetching the values of Item_2 from Region_2 and Item_3 from Region_3 and should throw some exception. How i will be able to achieve it?
    I tried the following code in Button_1 controllers ProcessFormRequest() method.
    ProcessFormRequest()
    if(pageContext.getParameter("Button_1") != null)
    OAMessageTextInputBean textItem = (OAMessageTextInputBean)webBean.findChildRecursive("Item_2");
    System.out.println("Value is "+textItem.getValue(pageContext));
    I am getting Null Pointer Exception on the 2nd line (S.O.P line) but the item is having value. Also i noticed one thing. The if condition which i have written is getting executed only if click twice on the Button_1.
    Kindly let me know how i can achieve it. Your inputs are much needed.
    Thanks

    Pratap
    I am very happy about one thing. You got my requirement exactly.
    ButtonRN is the top most region in the page which is having the "HrNext" button. Item1_RN and Item2_RN are one level below the ButtonRN and they are having Item1 and Item2 respectively. Item2_RN is the last region in that page.
    The controller for ButtonRN, Item1_RN and Item2_RN are CO_1, CO_2 and CO_3 respectively.
    Below is the code which i am referring to.
    Extended CO_2
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAMessageTextInputBean mesBean = (OAMessageTextInputBean)webBean.findIndexedChild(webBean,"HrWorkHours");
    String hoursWorked = (mesBean.getValue(pageContext)==null)?"-1":mesBean.getValue(pageContext).toString();
    pageContext.putSessionValue("sessionHoursValue",hoursWorked);
    I have created a session variable and assigned the value
    Extended CO_3
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    OAApplicationModule am=pageContext.getApplicationModule(webBean);
    if(pageContext.getParameter("HrNext") != null)
    String sessionHoursValue = (( pageContext.getSessionValue("sessionHoursValue"))==null)?"-1":pageContext.getSessionValue("sessionHoursValue").toString();
    OAMessageChoiceBean inpBean = (OAMessageChoiceBean)webBean.findIndexedChild(webBean,"HrEmpCategory");
    String newVariable = (inpBean.getSelectionValue(pageContext)==null)?"-1":inpBean.getSelectionValue(pageContext).toString();
    throw new OAException ("Test Exception - Session Value is "+sessionHoursValue+" Bean Value is "+newVariable);
    super.processFormRequest(pageContext, webBean);
    After migrating this code, if i click on "HrNext" button i am getting an error.
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation.
    *## Detail 0 ##*
    java.sql.SQLException: Missing IN or OUT parameter at index:: 1
    I found that the query belongs to a VO which is not used anywhere in that page. It is just attached to the corresponding AM.
    My point is if it identifying the "HrNext" event why it should try to execute this VO ? Hope you got some more insight on this issue.
    Out of all these things i am bit worried whether i will be able to get handle for an item which is in a outside region. i.e if i am able to get the handle for item2 in item1_RN then my issue will be resolved. Any idea on that ?
    Thanks,
    Praveen

  • Issue with popup region in oaf

    Hi ALL,
    I have a issue in poup region as below.
    I have a popup region that i am invoking from a base page on clicking of a button, in the popup region i have search functionalty , so i am giving some search criteria and clicking find button and able to get the data,
    but the issue is when i am clicking the find button the popup getting closed, i need the popup should display teh search data and after that i have some other functionality to select some rows from the data and need to click one mote button to reflect the data in base page, so how i can retain the poup on click of first button, please help me out

    Raghava,
    Check the vo attribute attached to the Date Field, it should be of Date type at both the level..VO Level as well as Database level.
    Regards,
    Gyan

  • ADF page integrated in OAF as a rich region.

    Hi,
    We are following the post https://blogs.oracle.com/jruiz/entry/embedding_adf_ui_components_into to embded the ADF region into OAF, we are facing a serial of issues here.
    Our ADF page is running on a different server and when we have tried adding the same page to our OAF page.
    Tried a different number of permutation and combination to make it working but all the time its throwing a error.
    This is we set up in the function call :: OA.jsp?targetPage=faces/http://10.117.155.5:7001/TestingExtenstionApps-ViewController-context-root/faces/page/DVTPage.jspx.
    oracle.apps.fnd.framework.OAException: Region could not be found in AK_REGIONS; RegionCode: RegionApplicationId: -1
    Thanks
    Vipin

    After a number of modifications , with OAF expertise (Which I am not :-( ). I am able to render the page with the button click in EBS.
    Now when I am using the same function in my region, I am getting the issue with IE, which is displaying that
    This content cannot be displayed in a frame
    To help protect the security of information you enter into this website, the publisher of this content does not allow it to be displayed in a frame.
    What you can try:
    Open this content in a new window
    ===========================================
    and when I am clicking the link provided, I am able to see my page.
    While in firefox there is no such error and region is rendering But with no content inside.
    Thanks
    Vipin
    Limitations gives you a reason to explore more. :-)

  • Embedding BI Publisher output in OAF Page

    Hi All,
    I want to embed the BI Publisher output in one of the regions on OAF page.
    I was getting error
    Error invoking 'set_xslt_locale':'java.lang.IllegalAccessError: tried to access class oracle.apps.fnd.i18n.common.text.DigitList from class oracle.apps.fnd.i18n.common.text.ExcelNumberFormat'
    Then i followed the same steps as described by Tom in the forum thread "http://kr.forums.oracle.com/forums/thread.jspa?threadID=485021"
    Now i dont get the error messages.
    But whenever i click on submit button, its doing nothing, the page is just refreshed and it shows neither any error nor the report.
    But when I try the traditional approach of exporting the document using "DocumentHelper.exportDocument", its giving me the report output in new pop up. But i want the report output to be embedded in a Page itself.
    Does it mean, document Viewer region is not set properly or there is any other problem?
    Do we need to do some specific setting for document viewer? I have just pasted the value "/oracle/apps/xdo/oa/common/webui/DocumentViewerRn.MainRegion" in the extends property and did nothig else.
    I am working on 11.5.10.2 and jDev is 9.0.3.5(Build 1312)
    I am sorry if you find this thread as duplicate. But i am helpless and finding no way to achieve this.
    Can anyone please help?
    Thanks,
    S

    Hi,
    Did you ever get a response for this issue?
    Regards,
    LC

  • Pop Up in Jdev 10.1.3.3

    Hi all,
    I have a requirement to display a pop up in oaf page
    I saw sample declarative example in Developer Guide 1107973_1_OAF_Developer_Guide.
    but i could not see any region of style Pop up in JDev 10.1.3.3
    OAPopupBean also seems to be not there in my JDev 10.1.3.3
    if it is there any such,then please say me how to show Pop up in JDev 10.1.3.3
    Thanks
    Manoj kumar

    Which version of Oracle EBS you are using? If R12, use the latest version of JDev (compatible version with your EBS) and try using the OAF popups. Otherwise you have to go for javascript popups which is not the best option as you might not get desired behavior in some cases.
    Thanks
    Shree

  • Embedding ADF page in OAF

    Hi,
    We have a requirement where we have to call ADF page as a region in OAF page.
    We are able to deploy ADF application on Web logic server and call them as a standalone application in OAF using "Function and Menu".
    Also, I understand that ADF and OAF interaction back and forth is not possible. ATG seems to be working on this for handling session management.
    However, I need to understand if there is any mechanism by which ADF pages can be embedded in OAF page as a region and work as a region in Oracle Ebiz Suite OAF pages?
    It seems that OAF Rich Interface allows embedding ADF pages in OAF.
    Appreciate some guidance on this.

    Hi YJ,
    Yes, we (ATG) are still working on session management between OA Framework and Oracle ADF, as well as other features of the Oracle E-Business Suite SDK for Java. Stay tuned for an announcement on Steven Chan's blog at https://blogs.oracle.com/stevenChan when that becomes available. My Oracle Support Note 974949.1 will be updated with further information at that time.
    Embedding an Oracle ADF region in an OA Framework page requires, at a minimum, that you create an EBS function security function for your ADF page and add a richContainer item to your OA Framework page that calls the function. You may need session management features depending on what you are trying to do with it. We haven't worked out all the nuances yet for more specific guidelines, sorry.
    Thanks,
    Sara
    (PS--I posted this in the OA Framework forum too)

Maybe you are looking for

  • DVD reader/CD writer-reader doesn'tn work?

    Last week it seemed to work fine. I installed software for an external harddrive and turbo tax. Tonight I went to watch a DVD and it wouldn't recognize it. After a few seconds it automatically ejected the disc. It won't read any discs in the house. L

  • Itunes won't update like it used to!!!

    Hi The last time i tried to update my itunes it didn't work and I had to go through the process of downloading it again like I was a new user. Well I have pressed the update button again and it says itunes 10.5.2 available, with a download itunes but

  • White Scratch Marks Appear When Saving Extracted hair as GIF

    Hi guys, I need your help with a problem that has been driving me up the wall. I've created a web site (my first) for my sister and it's all ready to be uploaded. But I've been held up for a while by a Photoshop problem. I've been trying to extract a

  • Can I print page information (i.e. the file name) on my printout in Reader XI?

    I can do it in Acrobat Pro,  but I don't see any way to do so in Reader.

  • 10.5.3 crashes after update

    I updated to iTunes 10.5.3 this evening and it now crashes every time I load it. Process:         iTunes [2359] Path:            /Applications/iTunes.app/Contents/MacOS/iTunes Identifier:      com.apple.iTunes Version:         10.5.3 (10.5.3) Build I