Editing a Package - Dynamic Page

I am a developer in Portal. I created a Dynamic page. Unfortunately there is only one way that a query could be displayed, Tabular and with colors by default. The problem comes when you want to display the fields in a diferent order and also format the HTML table where the records are being displayed. So I try to go to the "Database Objects" section and it only lets me edit the package if is less than 30K. Is there a way to raise this quota or just erase it? Does it make a diference if it gets raised to say..... 1MB?
I know that I can always go to the SQL file and twig it there, but is there a way to do it through Portal?
Any suggestions or comments are welcomed!

Hi,
The value in the textarea can go up to 32767 bytes. This is a limitation of varchar2 in plsql. If the package exceeds this
then you will have to open it as a SQL file.
Thanks,
Sharmila

Similar Messages

  • Editing Local Dynamic Pages - How To?

    I figure this should be something simple but I can't seem to figure out how to do it. In the past I believe this is something I was able to do in DW.
    I've set up my website locally running off my local server and everything there seems to be working in DW. I can view the live page and live code. However, I can't view the live page and edit that page.
    Does anyone have any recommendation on how I can best add some code into a dynamic page? I'm running CS5. Here's a screenshot of an example. Let's say I wanted to insert some simple code where the arrrow is.
    I really need some help on this as it's something I was under the impression I could do. Thanks for any help you can give.

    When I turn off Live Code and leave Live View on the code displayed is just of index.php (no matter what live page I'm on). So I can't really edit anything.
    That's right.  Those files contain nothing to edit.  It's all just PHP programming that the server parses into content from the database and countless other files (server-side includes).  
    A WordPress site really is a one page site -- index.php.  That page is re-created on the fly each time someone clicks a link or uses the search bar.
    If you have worked with WordPress before, you should know you cannot edit dynamic pages in DW.  You can only edit the parts that make up those pages.  Those parts are inside your Themes folder.
    header.php
    sidebar.php
    footer.php
    index.php
    single.php
    page.php
    archive.php
    category.php
    tag.php
    etc...
    Design View is pretty much useless.  You must be able to work with code.
    Nancy O.

  • Dynamic Page Edits

    anyone know how to edit the info that is returned from a dynamic search. such as font, color, style. the results that are returned when a user runs a dynamic page do not look to user friendly, and the color is goldish-brown.
    any help
    thanks,
    Darren

    Darren,
    Please post this question to the Portal Applications forum.
    Regards,
    Jerry

  • Issue in customizing ESS Dynamic Page

    Hi All,
    I am working on Customization of ESS portal.
    I am able to build and deploy application successfully .We are able to customize Detail View.
    Problem Here is , I am Supposed to modify in BIzcard Iview which is a dynamic page.
    Can any body help in understanding  how data is fetched in bizcard iview and  where the logic is to  be added to modify the page (in which method).
    Any pointer related to dynamic Customization of ESS portal is appreciated.

    Thank You staurt.
    I also got the SdnTechEd Documnet now. Was going through that.
    It Tells about the creation of Std Package.
    I need quick help  on my first Change . I.e
         for (int i = 0; i < wdContext.nodeSelectedInfotype().size(); i++)
    if(wdContext.nodeSelectedInfotype().getSelectedInfotypeElementAt(i).getBanka()== "1")
    wdContext.nodeSelectedInfotype().getSelectedInfotypeElementAt(i).setZlsch("T");
    wdContext.currentContextElement().setVa_Payment_Enable(false);
    I have requirement.
    If the Bank type is other bank (banka=1) then payment method should be of type T and non editable.
    I have wrote the above logic in Detail view init method of Controller and tried in View init too.It is making Payment method non editable in both the pages.
    Any pointer for above details.

  • Passing parameter to a dynamic page portlet

    We need to create a drill-down report using pl/sql, but it's not working when we passed a parameter. We did the following:
    1. Create a package and a store procedure.
    2. The store procedure creates the report and the look-and-feel of the report.
    3. Create a dynamic page with the following code:
    <ORACLE>DECLARE
    BEGIN
    mvdata.interbay_ops_rpts_pkg.ops_detail_procssr_rpt(p_processor);
    END;
    </ORACLE>
    4. Set the parameter to "public" in the "customization form display option".
    5. Create a page group and a page.
    6. Clicked on properties of page and then clicked on the parameter tab.
    7. Added a parameter named "p_processor_code"
    8. We also added the portlet parameter under the "portlet parameter values" and set the parameter to be a page parameter and select the name of the parameter and click OK.
    9. Launch the URL: ttp://iasdev01.bftg.com:7782/pls/portal/url/page/PG_GRP_DEVELOPMENT/PG_OPS_DETAIL_PROCESSOR?p_processor_code=DUBOIS.
    10. When we tried to launch the application we get an empty report(doesn't execute the parameter).
    11. Edit the page and went into layout mode.
    12. Click on the "edit default" of the dynamic page portlet and put the value of the parameter and it works without any problems.
    I don't understand why it doesn't take the parameter with the page url. Any help is greatly appreciated.

    I had more luck with PL/SQL items. Try something like this:
    declare
    zip varchar2(10);
    begin
    zip := portal.wwpro_api_parameters.get_value('zip', 'a');
    if zip='94065' then
       ... do something ...
    end if;
    end;Peter

  • Database Driven Dynamic pages

    Hi all,
    I am new to jsp/servlets but I know java. I have been teaching myself jsp for a few weeks now, but i am unclear about a few things. I figure a good exercise would be to make a ecom. website for someone i know, which would help me learn and they would get a site for free. I am just unclear on creating the dynamic pages. Say i have 6 categories. I would like to click on the link and select all the products from that category and display them in a table on the page. I know you need to create a servelet that will query the db then you can create the table adding in the data from the DB and send it back to the client side. Im just not sure what its the best way to do this. I have seen code the looks like product?productCode=123131. and i believe this calls a servelet and passes in the 123131 as a parameter. I have a pretty good idea of how to do this but i am looking for an example or some kind of tutorial to help me along. I have been searching for a while and came up with nothing. I have been using this book while teaching myself.
    Murach's Java Servlets and JSP
    They have a pretty good example of an entire site but i am just getting stuck in this spot.
    TIA
    John

    Sorry i was in rich text mode
    web.xml
    <servlet>
            <servlet-name>DisplayProducts</servlet-name>
            <servlet-class>category.DisplayProducts</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>DisplayProducts</servlet-name>
            <url-pattern>/product</url-pattern>
        </servlet-mapping>Product.java
    package ecom;
         import java.text.NumberFormat;
         import java.io.Serializable;
         public class Product implements Serializable
              private int code;
              private String style;
              private String description;
              private double price;
              private String color;
              private String size;
              private String thumb;
              private String full;
              public Product()
                   code = 0;
                   style = "";
                   description = "";
                   price = 0;
                   color = "";
                   size = "";
                   thumb = "";
                   full = "";
              public void setCode(int code)
                   this.code = code;
              public int getCode()
                   return code;
              public String getStyle() {
                   return style;
              public void setStyle(String style) {
                   this.style = style;
              public void setDescription(String description)
                   this.description = description;
              public String getDescription()
                   return description;
              public void setPrice(double price)
                   this.price = price;
              public double getPrice()
                   return price;
              public String getColor() {
                   return color;
              public void setColor(String color) {
                   this.color = color;
              public String getSize() {
                   return size;
              public void setSize(String size) {
                   this.size = size;
              public String getThumb() {
                   String imageURL = "/images/" + thumb;
                   return imageURL;
              public void setThumb(String thumb) {
                   this.thumb = thumb;
              public String getFull() {
                   String imageURL = "/images/" + full;
                   return imageURL;
              public void setFull(String full) {
                   this.full = full;
              public String getPriceCurrencyFormat()
                   NumberFormat currency = NumberFormat.getCurrencyInstance();
                   return currency.format(price);
         }ProductDB.java
    package data;
    import java.sql.*;
    import java.util.*;
    import ecom.Product;
    public class ProductDB {
        //This method returns null if a product isn't found.
        public static Product selectProduct(int productID)
            ConnectionPool pool = ConnectionPool.getInstance();
            Connection connection = pool.getConnection();
            PreparedStatement ps = null;
            ResultSet rs = null;
            String query = "SELECT A.PROD_SKU_ID, B.STYLE, B.DESCRIPTION, B.PRICE, A.COLOR, A.SIZE, C.THUMB_IMAGE, C.FULL_IMAGE "+
            "FROM TB_PRODUCT_SKU A "+
            "JOIN TB_PRODUCT B ON(A.PRODUCT_ID = B.PRODUCT_ID) "+
            "JOIN TB_WEB_IMAGE C ON(C.WEB_IMAGE_ID = B.WEB_IMAGE_ID) "+
            "WHERE A.PROD_SKU_ID = ? AND A.QUANTITY > 0";
            try
                ps = connection.prepareStatement(query);
                ps.setInt(1, productID);
                rs = ps.executeQuery();
                if (rs.next())
                    Product p = new Product();
                     p.setCode(rs.getInt("PROD_SKU_ID"));
                       p.setStyle(rs.getString("STYLE"));
                       p.setDescription(rs.getString("DESCRIPTION"));
                       p.setPrice(rs.getDouble("PRICE"));
                       p.setColor(rs.getString("COLOR"));
                       p.setSize(rs.getString("SIZE"));
                       p.setThumb(rs.getString("THUMB_IMAGE"));
                       p.setFull(rs.getString("FULL_IMAGE"));
                    return p;
                else
                    return null;
            catch(SQLException e)
                e.printStackTrace();
                return null;
            finally
                 UtilDB.closeResultSet(rs);
                 UtilDB.closePreparedStatement(ps);
                pool.freeConnection(connection);
        //This method returns null if a product isn't found.
        public static ArrayList<Product> selectProducts(String cat_id)
             ConnectionPool pool = ConnectionPool.getInstance();
             Connection connection = pool.getConnection();
             PreparedStatement ps = null;
             ResultSet rs = null;
             String query = "SELECT A.PROD_SKU_ID, B.STYLE, B.DESCRIPTION, B.PRICE, A.COLOR, A.SIZE, C.THUMB_IMAGE, C.FULL_IMAGE "+
                            "FROM TB_PRODUCT_SKU A "+
                            "JOIN TB_PRODUCT B ON(A.PRODUCT_ID = B.PRODUCT_ID) "+
                            "JOIN TB_WEB_IMAGE C ON(C.WEB_IMAGE_ID = B.WEB_IMAGE_ID) "+
                            "WHERE CATEGORY_ID = " +cat_id+ "AND A.QUANTITY > 0";
             try
                  ps = connection.prepareStatement(query);
                  rs = ps.executeQuery();
                  ArrayList<Product> products = new ArrayList<Product>();
                  while (rs.next())
                       Product p = new Product();
                       p.setCode(rs.getInt("PROD_SKU_ID"));
                       p.setStyle(rs.getString("STYLE"));
                       p.setDescription(rs.getString("DESCRIPTION"));
                       p.setPrice(rs.getDouble("PRICE"));
                       p.setColor(rs.getString("COLOR"));
                       p.setSize(rs.getString("SIZE"));
                       p.setThumb(rs.getString("THUMB_IMAGE"));
                       p.setFull(rs.getString("FULL_IMAGE"));
                       products.add(p);
                  return products;
             catch(SQLException e)
                  e.printStackTrace();
                  return null;
             finally
                  UtilDB.closeResultSet(rs);
                  UtilDB.closePreparedStatement(ps);
                  pool.freeConnection(connection);
        public static ArrayList<Product> selectProducts()
             ConnectionPool pool = ConnectionPool.getInstance();
             Connection connection = pool.getConnection();
             PreparedStatement ps = null;
             ResultSet rs = null;
             String query = "SELECT A.PROD_SKU_ID, B.STYLE, B.DESCRIPTION, B.PRICE, A.COLOR, A.SIZE, C.THUMB_IMAGE, C.FULL_IMAGE "+
                            "FROM TB_PRODUCT_SKU A "+
                            "JOIN TB_PRODUCT B ON(A.PRODUCT_ID = B.PRODUCT_ID) "+
                            "JOIN TB_WEB_IMAGE C ON(C.WEB_IMAGE_ID = B.WEB_IMAGE_ID) "+
                            "WHERE A.QUANTITY > 0";
             try
                  ps = connection.prepareStatement(query);
                  rs = ps.executeQuery();
                  ArrayList<Product> products = new ArrayList<Product>();
                  while (rs.next())
                       Product p = new Product();
                       p.setCode(rs.getInt("PROD_SKU_ID"));
                       p.setStyle(rs.getString("STYLE"));
                       p.setDescription(rs.getString("DESCRIPTION"));
                       p.setPrice(rs.getDouble("PRICE"));
                       p.setColor(rs.getString("COLOR"));
                       p.setSize(rs.getString("SIZE"));
                       p.setThumb(rs.getString("THUMB_IMAGE"));
                       p.setFull(rs.getString("FULL_IMAGE"));
                       products.add(p);
                  return products;
             catch(SQLException e)
                  e.printStackTrace();
                  return null;
             finally
                  UtilDB.closeResultSet(rs);
                  UtilDB.closePreparedStatement(ps);
                  pool.freeConnection(connection);
    }Display products.java
    package category;
    import java.io.IOException;
    import java.sql.Connection;
    import java.util.List;
    import javax.servlet.RequestDispatcher;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession;
    import data.ConnectionPool;
    import data.ProductDB;
    import ecom.Product;
    public class DisplayProducts extends HttpServlet{
         protected void doGet(HttpServletRequest request,
                   HttpServletResponse response)
                 throws ServletException, IOException
              List<Product> products = ProductDB.selectProducts();
              HttpSession session = request.getSession();
              session.setAttribute("products", products);
              String url = "/bracelets.jsp";
              RequestDispatcher dispatcher =
                   getServletContext().getRequestDispatcher(url);
              dispatcher.forward(request, response);
    }bracelets.jsp
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
        pageEncoding="ISO-8859-1"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    </head>
    <body>
    <table>
      <thead>
        <tr><th>ID</th><th>Product Name</th><th>Price<th></tr>
      </thead>
      <tbody>
        <c:forEach var="products" items="${products}">
          <!-- formatting probably required for price -->
          <tr>
          <td>${product.code}</td>
          <td>${product.style}</td>
          <td>${product.description}</td>
          <td>${product.price}</td>
          <td>${product.color}</td>
          <td>${product.size}</td>
          <td>${product.thumb}</td>
          <td>${product.full}</td>
          </tr>
        </c:forEach>
      </tbody>
    </table>
    </body>
    </html>index.jsp
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
        pageEncoding="ISO-8859-1"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    </head>
    <body>
    <p><a href="product">Bracelets</a></p>
    </body>
    </html>Edited by: jonnyd9191 on Jul 14, 2008 1:49 PM

  • Need to display column names in a dynamic page

    Hi
    I am displaying some rows returned from an sql querry in a dynamic page ...I hv written the sql querry between <ORACLE> AND </ORACLE> TAGS...The problem is ,i am not able to display the column names ...Why ? pl help....
    ram

    You must to use the htp package. Example:
    <ORACLE>
    begin
    htp.tableopen('1','CENTER',null,null,'BORDER="1"');
    htp.tableheader('NParte','CENTER');
    htp.tableheader('Descripcisn','CENTER');
    htp.tableheader('Precio/Unit','CENTER');
    htp.tableheader('Servicio','CENTER');
    htp.tableheader('IVA','CENTER');
    htp.tableheader('Total','CENTER');
    for cursor_cotiza in (select
    r.Nparte as Nparte, r.Descripcion as Descripcion,
    r.preciounit as preciounit,
    NVL(f.servicio,0) as servicio,
    round((0.145)*r.preciounit,3) as IVA,
    round((0.145)*r.preciounit,3) + r.preciounit +
    NVL(f.servicio,0) as PrecioTotal
    from
    carryin.repuestos r,
    carryin.casos c, carryin.facturacion f
    where r.NCaso =:NCaso
    and r.Ncaso=c.NCaso
    and c.Ncaso=f.Ncaso(+)
    and f.servicio(+)<>0
    union
    select
    r.Nparte as Nparte, r.Descripcion as Descripcion,
    r.preciounit as preciounit,
    NVL(f.servicio,0) as servicio,
    round((0.145)*r.preciounit,3) as IVA,
    round((0.145)*r.preciounit,3) + r.preciounit +
    NVL(f.servicio,0) as PrecioTotal
    from
    carryin.casosneq r,
    carryin.facturacion f
    where r.NCaso =:NCaso
    and r.Ncaso=f.Ncaso(+)
    and f.servicio(+)<>0
    ) loop
    htp.tableRowOpen('CENTER','CENTER');
    htp.tableData(cursor_cotiza.Nparte,'CENTER');
    htp.tableData(cursor_cotiza.Descripcion,'CENTER');
    htp.tableData(cursor_cotiza.preciounit,'CENTER');
    htp.tableData(cursor_cotiza.servicio,'CENTER');
    htp.tableData(cursor_cotiza.IVA,'CENTER');
    htp.tableData(cursor_cotiza.PrecioTotal,'CENTER');
    htp.tableRowClose;
    end loop;
    htp.tableclose;
    end;
    </ORACLE>
    This example show a table with header and borders. You must to see this package for more information.

  • Error creating dynamic page in an application with a schema other than portal30

    Running 9iAS 1.0.2.2 on Solaris.
    Database 8.1.7.1
    I cannot seem to create a default dynamic page (select 'x' from dual) in an application that has a schema (e.g. test) other
    than portal30. The error seems to be when portal tries to compile the dynamic-page package, it references itself from
    within the package but prefixing the call with the other (test) schema. It never seems to compile? What seems to be the
    problem? Any ideas?

    If you are using any database object other than the applcation owned,then it has to be prefixed with the schema owner.
    For example,
    if the application schema is based on the schema "schema1" (say)
    and your query is based on one of the object on "schema2"
    and if you have necessary privilegves to access that object from schema2, then the compiler wont throw any error.
    Can u explain, what u problem you are experiencing in detail?
    (Also, if u give me the portal version, I can cross-verify that).

  • Auto Query in Master Detail Form using dynamic page doesn't work

    I created a Master-Detail form, and implement AutoQuery using a dynamic page
    with the following code :
    <HTML>
    <BODY>
    <ORACLE>DECLARE
    nre_ VARCHAR2(100);
    BEGIN
    nre_ := emp_nre;
    if nre_ is not null then
    net_portal.Popula_Agregados(nre_);
    net_portal.Popula_Docs_Agregados (nre_);
    htp.p('<iframe id=myFrame name="myFrame" frameborder=0 width="250%"
    height="300"
    src="/pls/portal/PORTAL.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=
    3
    388118140&p_arg_names=_show_header&p_arg_values=NO&p_arg_names=_cad_nre_cond&p_a
    rg_values=%3D&p_arg_names=cad_nre&p_arg_values='||nre_||'">
    </iframe>');
    end if;
    EXCEPTION
    WHEN OTHERS THEN
    htp.p(SQLERRM);
    END;
    </ORACLE>
    </BODY>
    </HTML>
    It works fine when we access the first time to the page, but if i press the
    save button after inserting or updating a detail record, the header record is
    lost. How can i avoid this situation ?

    I changed query:
    select
    Replace(
    '<img src="#IMAGE_PREFIX#ed-item.gif" border="0" alt="EditMap" usemap="#editmap***id***"></img>
    <map name="editmap***id***">
    <area shape="rect" coords="0,0,16,16" href="http://apex.oracle.com/pls/otn/f?p=&APP_ID.:'
    || decode ( type, 'FOLDER', '33', '22' )
    || ':&APP_SESSION.::&DEBUG.::P'
    || decode ( type, 'FOLDER', '33', '22' )
    || '_ID,P'
    || decode ( type, 'FOLDER', '33', '22' )
    || '_CALLING_PAGE:' || id || ',&APP_PAGE_ID." ></area></map>' ,
    '***id***', id
    ) Edit,
    id,
    type,
    name,
    decode ( type, 'FOLDER', 33, 22 ) target
    from tThe idea is - each img uses its own map.
    It works now.
    Check:
    http://apex.oracle.com/pls/otn/f?p=20980:13
    Lev
    Edited by: le on Nov 3, 2010 11:11 AM

  • Dynamic Page that calls DB procedure to update data gets PLS222 or PLS306

    This seems a bit odd to me: I'm getting either "procedure no in scope" (when I call a procedure with the right args) or "wrong # or type of arguments" (when I call it with the wrong ones, so it is checking the procedure) in a dynamic page.<P>
    I'm trying to build a dynamic page that will display data and checkboxes (basically to get around the multi-select limitations -- management has told me that the "fake" md form is not acceptable)<P>
    So I build the page, it displays the data just fine exactly as we want it to:<P>
    <HTML><FORM><ORACLE>declare
    p_mdoc_user portal.wwv_utl_api_types.vc_arr;
    p_mdoc_user_seq portal.wwv_utl_api_types.vc_arr;
    p_seg_id portal.wwv_utl_api_types.vc_arr;
    p_cb portal.wwv_utl_api_types.vc_arr;
    p_action varchar2(20):='Save Changes';
    begin
    htp.p('Select your segments');
    htp.p('< p>');
    htp.p('<table border=2 cellpadding=2 cellspacing=0>');
    htp.tablerowopen;
    htp.tableheader('Seg#');
    htp.tableheader('Included');
    htp.tablerowclose;
    for r1 in (select seg_id, build_seg
    from web.mdoc_create_seg
    where mdoc_user = :mdoc_user
    and mdoc_user_seq = :mdoc_user_seq)
    loop
    htp.p('<input_type="hidden" name="p_mdoc_user" value='||:mdoc_user||'>');
    htp.p('<input_type="hidden" name="p_mdoc_user_seq" value='||:mdoc_user_seq||'>');
    htp.p('<input_type="hidden" name="p_seg_id" value='||to_char(r1.seg_id)||'>');
    htp.p('<tr><td>');
    htp.p(r1.seg_id);
    htp.p('</td><td>');
    if r1.build_seg='TRUE' then
    htp.p('<input type="checkbox" name="p_cb" value="Y" checked>');
    else
    htp.p('<input type="checkbox" name="p_cb" value="Y">');
    end if;
    htp.p('</td></tr>');
    end loop;
    htp.p('</table>');
    htp.p('< p>');
    /*note, this is where I'm putting in a procedure call to update*/
    end;
    </ORACLE></FORM></HTML><P>
    so then I try to add the procedure call (where the sql*plus comment is above)<P>
    htp.p('<input type="button" value="Save Changes" onclick='||
    mdoc_seg_create_choice_p(
    p_mdoc_user,
    p_mdoc_user_seq,
    p_seg_id,
    p_cb)
    ||'>');<P>
    When I try to run as portlet, I get pls 222 not in scope. <but>
    When I take a value out (say remove the last ",p_cb") - I get pls 306 wrong number or type of args to call.<P>
    I've granted the procedure and its underlying tables to portal/public/and portal_public, even though I'm building the dynamic page under a DB provider that is the same as the schema I wrote the procedure in.<P>
    I've tried specifying the schema, using a public synonym, and putting it in a package: same thing occurs, either I get pls 00222 not in scope when I call it with the right columns, or if I purposefully leave one out I get PLS 00306 wrong # or type of args.<P>
    Any ideas?
    -Mike

    Hi guys
    Check out the last 2 posts in this thread for ideas on how to implement 1.
    Report on user data from LDAP
    Varad

  • Why is the template not being used when dynamic page called ?

    Hi,
    I have created a dynamic page and assigned a template to it. When I call the dynamic page using the 'show' procedure from a form, I do not see the template.
    Why is the template not being used ? How can I get the template working when I call the dynamic page ?
    I even tried to show the page from the dynamic page's manage components tab and there is same problem. Template is not being used.
    thanks,
    Mainak

    You can alter the generated package body to include the following function in the header and footer sections.
    Header:
    PORTAL.wwv_headings.show_header(
    p_template => 'PUBLIC.TEMPLATE_3',
    p_heading => 'Dynamic Page',
    p_help_link => 'PORTAL_DEMO.EXAMPLE_DYNAMIC_PAGE.help',
    p_about_link => 'PORTAL_DEMO.EXAMPLE_DYNAMIC_PAGE.about');
    Footer:
    PORTAL.wwv_headings.show_footer(
    p_template => 'PUBLIC.TEMPLATE_3',
    p_help_link => 'PORTAL_DEMO.EXAMPLE_DYNAMIC_PAGE.help');
    where
    <PORTAL_DEMO> indicates application schema
    <PORTAL> indicates the name of the portal (normally this will be portal30 by default).

  • How to use Custom Search in Dynamic Page or HTML Portlet ?

    Gurus,
    1. I have a tab called My Space in the portal web site, where user gets a personalized view of the content.
    2. I am using custom attributes and custom item types. I have a custom attribute called 'Location', which is a attribute of custom item types.
    3. I have 2 pages - News and Events.
    4. All the content in News and Events page is tagged by the attribute 'Location'.
    5. The requirement is to let the user search the News and Events by Location.
    6. To achieve this I used the Custom Search portlet and the user can select the attribute Location and see the resultant News and Event items by location in the Search portlet.
    7. The requirement is to present the News items and Event items in separate regions on the page and show only the first 5 News and Event items in the result and show a More link which would guide the user to rest of the News and Event items.
    8. Eventually there may be more content other than News and Events tagged by location. If so, the requirement is to create a new region and display the new content.
    9. How would I do this using custom search ? I was thinking if there is anyway I could use the custom search api (where can i find it ?) in the HTML portlet or Dynamic page and submit the result to IFRAMES in each region and show the output ?
    Pls advise.
    Thanx a bunch.

    I would suggest that you use two custom search portlets; one for the news items and one for the events items. Switch the custom search portlets to "AutoQuery" mode and add the relevant criteria. On the results display tab of the the "edit defaults" screen, choose to show just 5 items.
    To add a link to show the user mode results, I'd create two new pages that have just a single custom search portlet on it that is customised to show more of the results and maybe has the pagination links enabled.
    Then I'd add two "Page Link" items underneath the two news and events portlets on the first page in an item region.
    I'm sure there are other ways of doing this as well. Hope that helps to get you started.

  • Oracle Portal Dynamic Pages?

    I grabbed this from the Primer on Portlets "<b>By simply cutting and pasting the HTML provided by affiliates into Oracle Portal dynamic pages, you can create a portlet specifically for that affiliate program and embed it into your portal.</b>"
    How is this Oracle Portal Dynamic Page created?

    The dynamic page is a portal application component. You can create one within any portal application that you have been granted edit privileges (for a sample, go to the Navigator, click on the Applications tab and open EXAMPLE APP). For additional information, check out the on-line help (search for dynamic) or glance at the components section of the product features whitepaper: http://technet.oracle.com/products/iportal/pdf/portal_twp.pdf

  • Has anyone tried changing the color of the table header in Dynamic Pages?

    When you generate the sample Dynamic Page you get a table header with the color of #C0C0A0.
    Has anyone ever found where this value is coming from within the database ?
    I'd like to change it so I can control the background color in the TH tag for Dynamic Pages.
    TIA
    Mark.

    You probabli dispay the data as
    <oracle> select empno,empname from scott.emp</oracle>
    However, you could do it like this:
    <oracle>
    being
    htp.p('<table>');
    htp.p('<tr>');
    htp.p('<td bgcolor=#ffaabb>empno</td>');
    htp.p('<td bgcolor=#ffaabb>empname</td>');
    htp.p('</tr>');
    for c in (select empno,empname from scott.emp) loop
    htp.p('<tr>');
    htp.p('<td>');
    htp.p(c.empno);
    htp.p('</td>');
    htp.p('<td>');
    htp.p(c.empname);
    htp.p('</td>');
    htp.p('</tr>');
    end loop;
    htp.p('</table>');
    end;
    </oracle>
    htp is package in sys schema in oracle.

  • Portal bind variables in Dynamic Pages

    I have two bind variables in a dynamic Page:
    Variable Default Value
    :p_lrg_item_id 12153
    :p_lrg_color 'Rock/Black'
    I put the two variables in the where clause of my select
    statement:
    <ORACLE>
    Select distinct
    prod.prfield5,
    prdat.paval
    from product@ecom2 prod,
    prodatr@ecom2 prdat
    where prod.prprfnbr = :p_lrg_item_id
    and prdat.paprnbr = prod.prrfnbr
    and prod.prpub = 1
    and prdat.paname = 'color'
    and prdat.paval = :p_lrg_color;
    Then when I run the Page the query does not return any rows. So
    I tested my query on the database and it returned the row. So I
    took out the "and prdat.paval = :p_lrg_color" and the query
    returned all of the rows. I also put the following line in the
    code to view the variable: "htp.p('<p>'||upper(:p_lrg_color)
    ||'</p>')" and it printed 'Rock/Black' on my page. Has anyone
    else ran into this problem with bind variables.
    Thanks Steve

    Why are you using dynamic sql for that?
    Is it really necessary to proceed as such?
    It will be better to use Static PL/SQL(stored procedures , functions and package) as far as there will be an "auto binding". If you use static SQL you will not have to care about using bind variables inside your PL/SQL code. All you have to do is to make sure you will call your stored PL/SQL procedure using bind values in the input parameters
    see the following blog article for more details
    http://hourim.wordpress.com/2011/06/16/bind-variable-shared-pool-and-cursor-sharing-parameter/
    Best regards
    Mohamed Houri
    www.hourim.wordpress.com

Maybe you are looking for