Conditionally displaying a portlet based on parameter?

Hi, I've been looking for a way to show or hide on a page a portlet (the standard Oracle search one, but it could be anything else) depending on whether a parameter is set to 0 or 1. So far the only "solution" I've found is to instead have two copies of the page, one with and one without the portlet in question, but obviously this scales very badly and is a bad idea from a maintenance POV.
Is there a clean way to do something like this?
Thanks,
Cedric

Yes, You can do it .. but it is little tricky. We have done something like this.
First, you may know that all portlets are rendered by PPE , so we can not pass parameters to PPE to display particular portlets based on parameter.
Instead, with in that Portlet, If the parameter is "N" then don't display any HTML from that portlet. Hope you know How to Pass page parameters to Portlets.
Other way to implement this is by Portal Groups and granting access to those portlets,
Still , if you are not convinced you can have a look at Portlet SecurityManager Class..
Thanks
Shan

Similar Messages

  • Conditional display HTML Portlet

    Hi all, how can I conditionally display HTML portlet? I have a couple of html portlets on the page, but I want to use the page para to control the display of them. For Java/plsql portlets, it's fine. I don't know how to do that for html portlets. Any advice or suggestion is appreciated.

    we want to embed the part of html in to portlet at run time. portlet has a single navigation parameter defined (for run time)
    so for example, i write a jsr portlet and then I drag the portlet from resource catalog (composer) on to the webcenter page during run time. and then we would pass
    www.xyz.com/index.html as a value of navigation parameter to the portlet. and portlet would consume this index.html.
    problem is what is the attribute within portlet which would get binded and finally consume the index.html at run time ? is it
    src = .......... ???
    is it file = ......... ??
    is it url = ........... ??
    what is it ?
    we are not using UCM so entire Content Presenter taskflows is useless for us
    if it is say src = ... attribute, then we were not able to PASS the index.html TO src attribute as Navig Param at run time.
    remember, even if we able to pass index.html to portlet .............. then we do not want portlet to show index.html URL but rather would want to show the content of index.html (which is "Hello There, Greetings from the server") to show.

  • How to conditional display Report Region based on number of rows returned

    I have a page with two Report Regions.
    One Region should display if the Query returns 0-1000 rows. The other should display if the same Query returns more than 1000 rows.
    The only way I can figure out how to do this is have ANOTHER query in the conditions field for each Region to Select count(*) from etc.
    I know there is a #TOTAL_ROWS# value but that is only available after the Region is displayed. Is there some other built-in variable that can be used to put in the Conditions field or is doing duplicate SQL queries the only way?
    Any help would be appreciated.

    Rather than running your query 4 times (by embedding it in your condition), you can have a region that is not displayed, with a hidden item, and set the value of the item in a before header computation to the count of your query. Now you can conditionally display based upon the value of that item.
    -- Sharon

  • Conditional display of headings based on drill-down page or section shown

    <div>Crystal Reports 10</div><div>I have a report (originally written by someone else) with 1 drill down page.</div><div>The drill down shows section group footer 2.</div><div>I am adding a new drill down from the 1st drill down. This will show the details section.</div><div>There are headings which are displayed in the page header section.</div><div>I would like to suppress or hide these headings when the 2nd drill down page (details section) is shown.</div><div>I figured I could do it based on whether a section, or a field within a section, is displayed on the page or not.</div><div>How to accomplish this?</div>

    Thanks for asking this question.Â
    There is a formatting function (under the Document Properties group of functions) called GroupLevel(). It returns what level of group you're on. You can use this along with the Suppress conditional format to show/hide a section based on where the user is located. Â
    This would be a great one to "show" as a sample. I'll add it to my task list for submissions up here.Â
    Again, thanks for asking the question and start the ball rolling!
    Â Â Â Â Â - Kathryn Webster (Report Design Specialist)

  • Conditional display in textbox based on calculated value

    Hello,
    I have radio buttons that each have a numeric value. For example A=1 B=2 C=0. In the example below, the total equals 5.
    The sum is displayed at the bottom of the document and is passed to another text box:
    Instead of "5" being displayed in the text box on the right, it needs to display a word "Mastery" like this:
    The word displayed is based on the totals via this range:
    1 to 2 = "Acquiring"
    3 to 4 = "Practicing"
    5 to 6 = "Mastery"
    The script I used to pass the value from the left to the right text box in the graphic above is:
    // name for the text box field;
    var cTextBox = "Firm-Wide Talent Strategy Knowledge - Totals";
    // get the value of the field with the name in cTextBox;
    var sTextBox = this.getField(cTextBox).value;
    // set the value of this field;
    event.value = sTextBox;
    What would I need to add to this script to display one of the words, such as "Mastery" above?
    I'm a complete neophyte to scripting. I found the script above online and somehow got it to work.
    Thank you all very much for any help or pointers you can provide.
    Best Regards,
    Chris

    Hi try67,
    Thank you so much for your help. Your code has brought me one step closer, I would never have gotten even this far without it!
    Initially, it was giving me and error, so I added a ")" and now it does display "Mastery", but I cannot get it to display the other two ("Acquiring" and "Practicing"), it just displays a blank space but does not give me an error.  I tried to fix it on my own by searching for some help, so I found and started playing around with jsbeautifier.org and JSLint. However, since I really don't know much about coding or syntax I hope these were not harmful. So now the code looks like this:
    // name for the text box field;
    var cTextBox = "Firm-Wide Talent Strategy Knowledge - Totals";
    // get the value of the field with the name in cTextBox;
    var sTextBox = +this.getField(cTextBox).value;
    if (sTextBox >= 1 && sTextBox <= 2) {
        event.value = "Acquiring";
    if (sTextBox >= 3 && sTextBox <= 4) {
        event.value = "Practicing";
    if (sTextBox >= 5 && sTextBox <= 6) {
        event.value = "Mastery";
    } else {
        event.value = "";
    Do you know what I might be missing that prevents "Acquiring" and "Practicing" from displaying? 
    Thank you so much again for your help,
    Chris

  • How to display advance table based on parameter pls give me solution urgent

    Co code:
    public class PosASEBacklogCO extends OAControllerImpl
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    // PosASEBackShipAMImpl am = (PosASEBackShipAMImpl)pageContext.getApplicationModule(webBean);
    //am.showPrintNShip();
    // System.out.println("i am in Pfreq ");
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    PosASEBackShipAMImpl am = (PosASEBackShipAMImpl)pageContext.getApplicationModule(webBean);
    OAViewObjectImpl ASEBacklogVO = (OAViewObjectImpl)am.findViewObject("ASEBacklogVO");
    String CSDTxt = pageContext.getParameter("CSDTxt");
    String Csdto = pageContext.getParameter("CSDTo");
    String partnumberTxt = pageContext.getParameter("partnumberTxt");
    String CustomerTxt = pageContext.getParameter("CustomerTxt");
    String salesorderlineTxt = pageContext.getParameter("salesorderlineTxt");
    String ASE = pageContext.getParameter("ASE");
    if( "Submit".equals(pageContext.getParameter(EVENT_PARAM)) )
    if(CSDTxt !=null && CSDTxt!="") {
    am.getASEBacklogVO1().setWhereClauseParam(0,CSDTxt);
    else {
    am.getASEBacklogVO1().setWhereClauseParam(0,null);
    if(Csdto !=null && Csdto!="") {
    am.getASEBacklogVO1().setWhereClauseParam(1, Csdto);
    else {
    am.getASEBacklogVO1().setWhereClauseParam(1,null);
    if(partnumberTxt !=null && partnumberTxt!="") {
    am.getASEBacklogVO1().setWhereClauseParam(2, partnumberTxt);
    else {
    am.getASEBacklogVO1().setWhereClauseParam(2,null);
    if(CustomerTxt !=null && CustomerTxt!="") {
    am.getASEBacklogVO1().setWhereClauseParam(3, CustomerTxt);
    else {
    am.getASEBacklogVO1().setWhereClauseParam(3,null);
    if(salesorderlineTxt !=null && salesorderlineTxt!="") {
    am.getASEBacklogVO1().setWhereClauseParam(4, salesorderlineTxt);
    else {
    am.getASEBacklogVO1().setWhereClauseParam(4, null);
    if(CSDTxt == "" && Csdto == "" && partnumberTxt == "" && CustomerTxt == "" && salesorderlineTxt == "")
    am.getASEBacklogVO1().setWhereClauseParam(0, null);
    am.getASEBacklogVO1().setWhereClauseParam(1, null);
    am.getASEBacklogVO1().setWhereClauseParam(2, null);
    am.getASEBacklogVO1().setWhereClauseParam(3, null);
    am.getASEBacklogVO1().setWhereClauseParam(4, null);
    am.getASEBacklogVO1().executeQuery();
    // am.showPrintNShip();
    System.out.println("Execute Query:- "+ASEBacklogVO.getQuery());
    if(pageContext.getParameter("event").equals("ShippingDetailsAction"))
    pageContext.setForwardURL("OA.jsp?page=/oracle/apps/pos/salesorder/webui/PosASEShippingDetailsPG", null, (byte)0, null, null, true, null, (byte)99);
    else
    if(pageContext.getParameter("event").equals("printCS"))
    String salesOrderLineShippement = pageContext.getParameter("SalesOrderLineShippement");
    am.printCS(salesOrderLineShippement);
    } else
    if(pageContext.getParameter("event").equals("ShipConfirmAction"))
    String OperatingUnitform = pageContext.getParameter("OperatingUnitform");
    am.shipConfirmAction(OperatingUnitform);
    } else
    if(pageContext.getParameter("event").equals("SelectRowAction"))
    am.showPrintNShip();
    Vo:
    SELECT
    'N' selectRow
    ,customer_name
    ,so_line_shipment
    ,part_number
    ,customer_item_number
    ,cust_po_number
    ,ordered_date
    ,promise_date
    ,schedule_ship_date
    ,shipping_terms
    ,shipping_method
    ,ordered_quantity
    ,shipping_instructions
    ,ship_to_address
    ,ship_to_contact
    ,ship_to_phone
    ,"Hold Name"
    ,"Hold Release Flag"
    ,order_number
    ,OPERATING_UNIT
    FROM APPS.XXSY_SYNA_ASE_BACKLOG
    where (to_date(promise_date,'dd-mm-rrrr')
    between nvl(:1,to_date(promise_date,'dd-mm-rrrr')) and nvl(:2,to_date(promise_date,'dd-mm-rrrr')))
    and part_number = NVL(:3, NVL(part_number,1))
    AND customer_name = NVL(:4, NVL(customer_name,1))
    and so_line_shipment = NVL(:5, NVL(so_line_shipment,1))
    AM:
    public class PosASEBackShipAMImpl extends OAApplicationModuleImpl {
    /**This is the default constructor (do not remove)
    public PosASEBackShipAMImpl() {
    /**Sample main for debugging Business Components code using the tester.
    public static void main(String[] args) {
    launchTester("xxsy.oracle.apps.pos.salesorder.server", /* package name */
    "PosASEBackShipAMLocal" /* Configuration Name */);
    public void executegetASEShippingInfoVO(String salesOrderLineShippement) {
    this.getASEShippingInfoVO1().getDetails(salesOrderLineShippement);
    public void printCS(String salesOrderLineShippement)
    OADBTransaction dbtrans = getOADBTransaction();
    String sql = "BEGIN xxsy_call_wrapper_pkg.Invoice_wrapper(?,?,?); END;";
    OracleCallableStatement callablestatement = (OracleCallableStatement)dbtrans.createCallableStatement(sql,1);
    try{   
    callablestatement.setString(1,salesOrderLineShippement);
    callablestatement.registerOutParameter(2,Types.VARCHAR);
    callablestatement.registerOutParameter(3,Types.VARCHAR);
    callablestatement.executeUpdate();
    String Returncode = callablestatement.getString(3);
    String ReturnMsg = callablestatement.getString(2);
    callablestatement.close();
    if(Returncode != null && (!Returncode.equalsIgnoreCase("2")) )
    throw new OAException(ReturnMsg,OAException.ERROR);
    if(Returncode != null && (!Returncode.equalsIgnoreCase("0")) )
    throw new OAException(ReturnMsg,OAException.INFORMATION);
    }catch(SQLException _sqle)
    try{
    callablestatement.close();
    }catch (Exception e) {e.printStackTrace();}
    throw OAException.wrapperException(_sqle);
    String sql1 = "BEGIN xxsy_call_wrapper_pkg.Ship_wrapper(?,?,?); END;";
    callablestatement = (OracleCallableStatement)dbtrans.createCallableStatement(sql1,1);
    try{
    callablestatement.setString(1,salesOrderLineShippement);
    callablestatement.registerOutParameter(2,Types.VARCHAR);
    callablestatement.registerOutParameter(3,Types.VARCHAR);
    callablestatement.executeUpdate();
    String Returncode = callablestatement.getString(3);
    String ReturnMsg = callablestatement.getString(2);
    callablestatement.close();
    if(Returncode != null && (!Returncode.equalsIgnoreCase("2")) )
    throw new OAException(ReturnMsg,OAException.ERROR);
    if(Returncode != null && (!Returncode.equalsIgnoreCase("0")) )
    throw new OAException(ReturnMsg,OAException.INFORMATION);
    }catch(SQLException _sqle)
    try{
    callablestatement.close();
    }catch (Exception e) {e.printStackTrace();}
    throw OAException.wrapperException(_sqle);
    public void shipConfirmAction(String OperatingUnitform)
    OADBTransaction dbtrans = getOADBTransaction();
    String sql = "BEGIN xxsy_call_wrapper_pkg.One_Touch_wrapper(?,?,?); END;";
    OracleCallableStatement callablestatement = (OracleCallableStatement)dbtrans.createCallableStatement(sql,1);
    try{
    callablestatement.setString(1,OperatingUnitform);
    callablestatement.registerOutParameter(2,Types.VARCHAR);
    callablestatement.registerOutParameter(3,Types.VARCHAR);
    callablestatement.executeUpdate();
    String Returncode = callablestatement.getString(3);
    String ReturnMsg = callablestatement.getString(2);
    callablestatement.close();
    if(Returncode != null && (!Returncode.equalsIgnoreCase("2")) )
    throw new OAException(ReturnMsg,OAException.ERROR);
    if(Returncode != null && (!Returncode.equalsIgnoreCase("0")) )
    throw new OAException(ReturnMsg,OAException.INFORMATION);
    }catch(SQLException _sqle)
    try{
    callablestatement.close();
    }catch (Exception e) {e.printStackTrace();}
    throw OAException.wrapperException(_sqle);
    public void showPrintNShip() {
    System.out.println("i am show Print Method1 ");
    ASEBacklogVOImpl aseBacklogVOImpl = getASEBacklogVO1();
    for(int i=0; i < aseBacklogVOImpl.getRowCount(); i++){
    ASEBacklogVORowImpl aseBacklogVORowImpl = (ASEBacklogVORowImpl) aseBacklogVOImpl.getRowAtRangeIndex(i);
    System.out.println("i am show Print Method2 ");
    if(aseBacklogVORowImpl != null){
    String selectRow = aseBacklogVORowImpl.getSelectrow();
    System.out.println("i am show Print Method3 ");
    if(selectRow != null && selectRow.equalsIgnoreCase("Y")) {
    System.out.println("i am show Print Method4 ");
    aseBacklogVORowImpl.setShowPrintReport(new Boolean(true));
    aseBacklogVORowImpl.setShowShipConfirm(new Boolean(true));
    aseBacklogVORowImpl.setShowShippingDetails(new Boolean(true));
    }else {
    System.out.println("i am show Print Method5 ");
    aseBacklogVORowImpl.setShowPrintReport(new Boolean(false));
    aseBacklogVORowImpl.setShowShipConfirm(new Boolean(false));
    aseBacklogVORowImpl.setShowShippingDetails(new Boolean(false));
    public void enableToUpdate() {
    ASEShippingInfoVOImpl aseShippingInfoVOImpl = this.getASEShippingInfoVO1();
    Row row = aseShippingInfoVOImpl.getRowAtRangeIndex(0);
    if(row != null)
    row.setAttribute("EditFlag", new Boolean(false));
    public void setDefaultReadonly() {
    /**Container's getter for ASEShippingInfoVO1
    public ASEShippingInfoVOImpl getASEShippingInfoVO1() {
    return (ASEShippingInfoVOImpl)findViewObject("ASEShippingInfoVO1");
    /**Container's getter for ASEShiplogVO1
    public ASEShiplogVOImpl getASEShiplogVO1() {
    return (ASEShiplogVOImpl)findViewObject("ASEShiplogVO1");
    /**Container's getter for ASEBacklogVO1
    public ASEBacklogVOImpl getASEBacklogVO1() {
    return (ASEBacklogVOImpl)findViewObject("ASEBacklogVO1");
    it is showing null pointer exception pls help me asap

    Exception Details.
    oracle.apps.fnd.framework.OAException: java.lang.NullPointerException
         at oracle.apps.fnd.framework.OAException.wrapperException(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at OA.jspService(_OA.java:71)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    ## Detail 0 ##
    java.lang.NullPointerException
         at oracle.apps.pos.salesorder.webui.PosASEBacklogCO.processFormRequest(PosASEBacklogCO.java:107)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at OA.jspService(_OA.java:71)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    java.lang.NullPointerException
         at oracle.apps.pos.salesorder.webui.PosASEBacklogCO.processFormRequest(PosASEBacklogCO.java:107)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at OA.jspService(_OA.java:71)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    jest i change code in co so i am getting this type of error the query executing i given sop in evety block
    CO:
    // if(CSDTxt == "" && Csdto == "" && partnumberTxt == "" && CustomerTxt == "" && salesorderlineTxt == "")
    thanks.

  • Conditionally display button based on number of rows in rpt query results?

    I know that I can conditionally display a button based on the number of rows returned in a query entered in the condition. However, I have a report region button that I only want to display if any data was returned by a report query. Since I've already executed the query to generate the report, I do not want to execute it again to determine whether any rows were returned. Is there any way to detect whether any rows were returned for a report other than to reissue the query?

    http://htmldb.oracle.com/pls/otn/f?p=24317:52
    OK, so it looks like it contains the rowcount of the report region rendered just before the variable (apex_application.g_flow_total_row_count) is referenced.
    Sort of like how SQL%ROWCOUNT contains the no. of records affected by the last SQL DML statement.
    Note that the pagination scheme affects the result. In the example above, the 2nd report region is showing 10 rows with a 'Rows X to Y' pagination scheme. So g_flow_total_row_count=11 because I guess the reporting engine has to fetch the 11th row (and discard it) to determine whether to render the 'Next' pagination link.
    If you select a pagination scheme that forces the reporting engine to fetch all the rows 'Rows X to Y of Z', g_flow_total_row_count will always be Z, not the number of rows actually rendered on the screen.
    Thanks

  • Conditional Display based on Function and Application Item?

    I have a function within my DB that checks if the STAFF_ID (an application level item) is a "Super User" within my application. The function ("is_super-user") returns 1 if the STAFF_ID given is a Super User. (I am not using ApEx users/groups)
    How would I call this function within the Conditional Display of a button?
    I tried the following with no luck... (although it does not give me an error)
    Conditional Type: PL/SQL
    Expression 1: is_super_user(&STAFF_ID.)=1

    Matt is that you? You're not makin it real easy to identify you by name...
    The function ("is_super-user") returns 1...
    That should be is_super_user (without quotes, of course).
    Your previous attempt should have produced an error. But this should work:
    Conditional Type: PL/SQL
    Expression 1: is_super_user(:STAFF_ID)=1
    ...assuming the function has a varchar2 input parameter.
    And then to make it secure, you'll want to make that application item Restricted so nobody can pass in a value from the page. This kind of condition is a good use of authorization schemes which you can name/create once and attach to all sorts of components throughout the app. Speaking of other components, you should protect DML processes using the same condition/authorization scheme because just because there is no button visible on the page doesn't mean someone can't put one there and submit the page anyway.
    Scott

  • WSDL for portlet based taskflow - doesn't show up input parameter

    Hi,
    I have created a taskflow which takes an input parameter in an ADF application. When I drag and drop on the page it works as expected.
    My requirement is to show this taskflow as part of webcenter portal app.
    I have created portlet entry based on this taskflow. When I deploy this ADF application, in the generated wsdl I am not finding the inputParameter which I have defined in taskflow. I am looking for how to pass parameter when I embed/consume this portlet in webcenter portal.
    I can see the parameter in generated [portlet.xml|http://adf-sample.googlecode.com/files/wsrp2.xml] file. And for the taskflow (in portlet section) the parameter is picked in public render parameters.
    Any hints would be appreciated.
    I am using Jdev 11.1.1.5

    Hi Daniel,
    Thanks for the update.
    Well, I haven't thought of this approach. I will try and let you know. Pls share if you have any reference for this.
    Appreciate if you can also share, when to go for taskflow based portlets vs consuming taskflows directly in portal app.
    Thanks,
    Srini.

  • Conditional display based on Page Template

    I'd like to make some conditional display based on Page temlate value (definition). Example:
    return page_template='TABS';With such an feature it will be easy to exclude some elements defined on "Page 0" on some pages. I know that this could be done by enumerating page_id's...but in this way it will be much flexible...
    Is there such a feature? Will it be ever possible?

    A more flexible way (IMHO) to do this sort of thing would be to define onload application-level computations that set a application item to either SHOW or HIDE depending on the conditions you need. Then make the Page 0 components conditional upon this application item's value.

  • Conditional Display Based on a Field Value

    I'm a newbie ...
    I developed an application that shows payment information.
    Record type one is a cheque
    Record type two is a payment stub
    Rec Type Account Amount PDFFile
    1 888888 1234.00 summary.pdf
    2 888888 10.00
    2 888888 400.00
    2 888888 800.00
    2 888888 24.00
    I have developed a program that assimilates a number of cheque images into a single pdf file. I write the filename and location of that pdf file into a field on 'record type one' (cheque record).
    I want to have a button that only renders on records that that have a value in this field.
    I've looked at conditional display, but can't seem to find the right option.
    Can anyone get me pointed in the right direction?
    Thanks
    Dave

    Dave - Where do you "write" this field? On the same page or from a previous page? What is the display type of this field (which I hope is implemented as an Application Express page item)?
    It's all about having a value in session state for that page item at the time your button is rendered. If you've got that, then the button condition will be trivial.
    Scott

  • Conditional Display of Interactive Report Based on Field Above

    Page one has simple text box entry for a Vendor # with a button that branches to a page displaying information for that vendor. In a region below, I would like an interactive report that displays all of the item and description that vendor provides to our company. I have tried to use the Conditional Display to disply only items in the report but have been unsuccessful. Your help is appreciated!
    Thanks.

    Hello user2961006 (please tell us your name),
    I understand your question to be, "how do I make a report on page two only show rows related to an item entered on page one". Putting a condition on a region isn't the answer here - you want the report to always display, but just with different rows depending on the vendor number entered. A condition on a region is used to either display the region or not.
    What you need to do is put a WHERE clause on the SELECT statement that your report is using to get its data. For example, if the item holding the entered vendor number is P1_VENDOR_NUM, the SELECT statement for your report would look something like:
    SELECT item, description
      FROM my_items
    WHERE vendor_num = :P1_VENDOR_NUMNote my_items is a fictitious name. This will tell the DB to only retrieve rows where the vendor number is the vendor number entered by the user.
    Hope this helps, I'll gladly accept reward points if it does ;-)
    John

  • Conditional display based on row count

    I have a report region with sql query (PL/SQL function body returning sql query). In this region i have text item above the report. I would like to have a condition on this item that it should only show if there exists records in the report (row count > 0).
    How can this be done?
    Best regards
    Erik

    There are many options available for conditional display. You can use this one here:
    http://apex.oracle.com/pls/otn/f?p=31517:7
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Conditional display of report

    hi
    i have a batch table (batch_id,batch_name,batch_type..)
    i have to pass batch_name and batch_type as a parameter so i have 2 item on a page
    batch_name :-select list
    batch_type :-select list with submit and it values select from the values of batch_name
    create button :- when i hit the create buttons it will show me 2 report in the same page based on the latest batch_id
    so i have to apply conditional display on the reports
    what would be the condition for the conditional display so that i will get to reports in the same page
    dependency between report is batch_id
    Regards
    Amu

    Hi Tobias,
    i have interactive report.
    the content of report is displayed based on the input values(from select lists),
    1)select list -p_cust
    2)select list-p_switch(the values of the list select from the values of p_cust i.e select d r from switch_t where cust_name=:p_cust)
    requirement like this
    1)First i have to select a customer
    2)when i select a values (switch) from the switch select list -the result of the report for a paticular switch .
    e;g-p_cust='ABC' and p_switch='XYX'
    the output of the report would be the all records for 'ABC' customer for a Paticular Switch that is-'XYZ'
    3) again when i select a value "All_switches" from the switch select list it should returns all the records for all switches
    Regards
    Amu

  • Conditional display in a SQL-Report/Report Region

    Hi,
    here I have an example for "Conditional display in a SQL-Report/Report Region". I figured it out in Firefox 3.6.2 using Firebug as development tool on Apex 3.2.1.00.12.
    First you have to put the following javascript code in the Page HTML-Header:
    <script type="text/javascript">
    <!--
    // SOURCE
    // W:\oracle\PRJ DWLS\javascript.07.js
    // Beispiel Funktion zur bedingten Formatierung einer Tabellenzelle.
    // Help (Substitution Strings):
    // http://htmldb.oracle.com/pls/otn/wwv_flow_help.show_help?p_lang=de&p_session=2412201185523196&p_flow_id=4003&p_step_id=420,4003
    // HTML Expression:
    // <script>ex_conditional_td('R094260001010', #ROWNUM#, #COLNUM#-1);</script>#DFT_COND1#
    function ex_conditional_td
    ( p_id
    , p_rownum
    , p_cellnum
      var l_td;
      l_td = vd_getColumn(p_id, p_rownum, p_cellnum);
      // hier die Bedingung definieren
      if (true) {
        l_td.style.color = '#808080';
    }  // -- eof ex_conditional_td -- //
    // Beispiel Funktion zum Abstellen der onMouse Funktionalität der Tabellenzeile
    // HTML Expression:
    // <script>ex_conditional_tr('R094260001010', #ROWNUM#);</script>#DFT_ID#"
    function ex_conditional_tr
    ( p_id
    , p_rownum
      var l_tr;    // TABLE.TR
      var l_td;    // TABLE.TR.TD
      if (true) {
        l_tr = vd_getRow(p_id, p_rownum);
        l_tr.onmouseover = null;
        l_tr.onmouseout  = null;
        for (var i=0; i<l_tr.cells.length; i++) {
          l_td = l_tr.cells;
    l_td.style.backgroundColor = '#DDDDDD';
    } // -- eof ex_conditional_tr() -- //
    var g_DEBUG = false;
    var g_TBODY = null;
    // Liefert das Body-Element der Tabelle mit der ID <p_id>.
    // Parameter
    // p_id - die Id der HTML-Tabelle
    // Return
    // das Body-Element oder NULL, wenn die Zeile nicht gefunden wurde
    function vd_getBody
    ( p_id
    if (g_TBODY == null) {
    var l_table = null;
    l_table = document.getElementById( p_id );
    if (l_table == null) {
    l_table = document.getElementByName( p_id );
    if (l_table != null) {
    if (vd_debug()) {
    alert("Tabelle gefunden, " + l_table.nodeName);
    g_TBODY = vd_search( l_table, 'TD', 't10data', 'TBODY');
    return g_TBODY;
    } // -- eof vd_getBody() -- //
    // Liefert die Zeile <p_rownum> der HTML-Tabelle mit der Id <p_id>.
    // Parameter
    // p_id - die Id der HTML-Tabelle
    // p_rownum - die Zeilennummer
    // Return
    // die Zeile oder NULL, wenn die Zeile nicht gefunden wurde
    function vd_getRow
    ( p_id
    , p_rownum
    var l_body = vd_getBody(p_id);
    if ( l_body != null
    && l_body.nodeName == 'TBODY'
    && l_body.children[p_rownum].nodeName == 'TR') {
    return l_body.children[p_rownum];
    else {
    return null;
    } // -- eof vd_getRow() -- //
    // Liefert die Spalte <p_column> der Zeile <p_rownum> der HTML-Tabelle mit der
    // Id <p_id>.
    // Parameter
    // p_id - die Id der HTML-Tabelle
    // p_rownum - die Zeilennummer
    // p_column - der Index der Spalte / Zelle
    // Return
    // die Zelle oder NULL, wenn die Zelle nicht gefunden wurde
    function vd_getColumn
    ( p_id
    , p_rownum
    , p_column
    var l_tr = vd_getRow(p_id, p_rownum);
    if ( l_tr != null
    && l_tr.nodeName == 'TR'
    && l_tr.children.length >= p_column
    && l_tr.children[p_column].nodeName == 'TD') {
    return l_tr.children[p_column];
    else {
    return null;
    } // -- eof vd_getColumn() -- //
    // Rekursives Suchen nach einem Node.
    // Zweck: Das bedingte Formatieren einer Tabellenzelle in einem Apex Standard
    // SQL-Report.
    // Diese Funktion durchsucht rekursiv, ab einem Ausgangsknoten <p_node>, alle
    // darunter befindlichen Elemente, ob in dem Element <p_seachIn> sich die
    // Klasse <p_class> befindet.
    // Bei Standard-Reports ist die Reportzelle (TD) mit der Klasse
    // "t10data" formatiert.
    // Zunächst muss dazu die Tabellenzelle (TD) selbst, die übergeordnete
    // Tabellenzeile (TR), der Tabellenbody (TBODY) oder die Tabelle (TABLE)
    // selbst ermittelt werden.
    // Der Beispielaufruf:
    // var l_body;
    // var l_node = document.getElementById( 'R112233' );
    // l_body = search( l_node, 'TD', 't10data', 'TBODY');
    // durchsucht also das mit der Id "R112233" versehene Element [der Report, für
    // den in Apex eine statischen ID vergeben werden musste] rekursiv, bis er
    // die [erste] Tabellenzelle "TD" findet, die als Klasse "t10data"
    // definiert hat. Für diese ermittelt er dann das übergeordnete TBODY-Element.
    // Parameter
    // p_node - das Ausgangselement
    // p_searchIn - der Knotenname, der durchsucht werden soll
    // [node.nodeName == p_searchIn]
    // p_class - der Name der CSS Klasse
    // [node.classList[<index>] == p_class
    // p_parentName - der Name [node.parentNode.nodeName == p_parentName]
    // des Elements, das zurückgeliefert werden soll. Wird als
    // p_parentName der Suchname p_searchIn angegeben, wird
    // das Element selbst zurückgegeben.
    // Return
    // das per p_parentName gesuchte Element (TD, TR, TBODY, TABLE)
    function vd_search
    ( p_node
    , p_searchIn
    , p_class
    , p_parentName
    var LN = "vd_search";
    var l_element = null;
    // DEBUG
    if (vd_debug()) {
    alert(LN + ":" + "Untersuche " + p_node.nodeName + ", id=" + p_node.id);
    // 1) der aktuelle Knoten ist der, der durchsucht werden soll
    if (p_node.nodeName == p_searchIn) {
    if (p_node.classList.length > 0) {
    for(var c=0; c<p_node.classList.length; c++) {
    if (p_node.classList[c] == p_class) {
    // Parent Node dynmisch suchen
    l_node = p_node;
    if (l_node.nodeName == p_parentName) {
    return l_node;
    while(l_node != null && l_node.parentNode != null) {
    if (l_node.parentNode.nodeName == p_parentName) {
    return l_node.parentNode;
    else {
    l_node = l_node.parentNode;
    // 2) wenn nicht 1) oder nicht in 1) gefunden, dann in den Kindelementen
    // weitersuchen
    if (p_node.children.length > 0) {
    var i = 0;
    while (i<p_node.children.length && l_element==null) {
    l_element = vd_search( p_node.children[i], p_searchIn, p_class, p_parentName);
    i++;
    return l_element;
    } // -- eof vd_search() -- //
    // Gibt an, ob Debug ein- (true) oder ausgeschaltet (false) ist.
    // Return
    // true - debug ist eingeschaltet
    // false - debug ist ausgeschaltet
    function vd_debug()
    return g_DEBUG;
    -->
    </script>
    Maybe you have to modify the "vd_getBody" function. I'm searching the table cell with having the class "t10data". When you use another theme, there's maybe another class used.
    Second is, that you set an static id for your report region. I prefer this structure:
    R<app-id><page-id><seq> (Raaaaappppsss) e.g. R094260001010.
    First example is to turn off the onMouse-Effect. Maybe on the first or last column definition you put this code in the "HTML-Expression" area:
    <script>ex_conditional_tr('R094260001010', #ROWNUM#);</script>#ID#This will call the example function ex_conditional_tr with the parameter
    a) the region id
    b) the rownum (as oracle always starts with 1 this is the first data row [rownum=0 is the table header row])
    Second example is the conditional formatting of a table cell. Put this in the HML-Expression area:
    <script>ex_conditional_td('R094260001010', #ROWNUM#, #COLNUM#-1);</script>#ENAME#This will call the example function ex_conditional_tr with the parameter
    a) the region id
    b) the rownum
    c) the cellnum (here we have to subtract 1 to get the "real" cell index)
    The "ex_conditional" functions are just a representation of how to get the row or cell node.
    Hope this help a bit.
    Tom

    I would use a CASE statement in the select....
    each CASE would be an img src tag for a different button if the button is an image.
    does that make sense? I can include an example if you would like...

Maybe you are looking for

  • How to get the values of Select-options from the screen.

    The value of parameter can be obtained by function module 'DYNP_VALUES_READ' but How to get the values of Select-options from the screen? I want the F4 help values of select-options B depending on the values in Select-option A.So I want to read the S

  • It says my superdrive isnt supported so i cant burn a dvd????!!

    Both me and my sister have Macbooks with the latest verison of iLife i recently made a movie on imovie for school. My teacher just told me that i had to burn the movie to a dvd. Right when i opened IDVD (for the first time) a message came up saying t

  • How to calculate average value?

    Hi all, I'm using Lumira 1.15. I'm doing some practices with the sample dataset BestRunCorp... I want to calculate the average value of gross margin which is grouped by lines so that I can use a line chart to show the difference between the gross mar

  • Generic data source issue very urjent

    HI All, this is regarding Generic datasource in Quality system . I have to change selection and Hide options i mean i have make check for generic data source. can you please let me know if anybody knows how to change. i tried to change it's showing d

  • Cfquery dynamic return columns and fields to a table

    Problem in the following code...