Image rollver in a dynamic page

I have used several different javascript codings for the function of a image rollover menu and I put this coding within the <body> instead of the <head>. I was told to do this my our webadministrator. I can't remember the reason now but my coding still does not work. I don't get the rollover effect. The coding looks correct. Here is the coding. I only copied over one of onmouseover items as to keep it minimal:
<oracle>
declare
BEGIN
htp.print('
<body bgcolor=#006433 link=yellow alink=yellow vlink=yellow text=#ffffff topmargin=0 leftmargin=0>
<font size=3>
<script language="JavaScript">
<!--
if(document.images) {
var affiliates1 = new Image();
var affiliates2 = new Image();
var agentlocator1 = new Image();
var agentlocator2 = new Image();
var directory1 = new Image();
var directory2 = new Image();
var newsletter1 = new Image();
var newsletter2 = new Image();
var weather1 = new Image();
var weather2 = new Image();
var financial1 = new Image();
var financial2 = new Image();
var job1 = new Image();
var job2 = new Image();
var contact1 = new Image();
var contact2 = new Image();
var password1 = new Image();
var password2 = new Image();
var login1 = new Image();
var login2 = new Image();
affiliates1.src = "/fmh/affiliatestabinactive.jpg";
affiliates2.src = "/fmh/affiliatestabactive.jpg";
agentlocator1.src = "/fmh/agenttabinactive.jpg";
agentlocator2.src = "/fmh/agenttabactive.jpg";
directory1.src = "/fmh/directorytabinactive.jpg";
directory2.src = "/fmh/directorytabactive.jpg";
newsletter1.src = "/fmh/newslettertabinactive.jpg";
newsletter2.src = "/fmh/newslettertabactive.jpg";
weather1.src = "/fmh/weathertabinactive.jpg";
weather2.src = "/fmh/weathertabactive.jpg";
financial1.src = "/fmh/financialtabinactive.jpg";
financial2.src = "/fmh/financialtabactive.jpg";
job1.src = "/fmh/jobtabinactive.jpg";
job2.src = "/fmh/jobtabactive.jpg";
contact1.src = "/fmh/contacttabinactive.jpg";
contact2.src = "/fmh/contacttabactive.jpg";
password1.src = "/fmh/passwordtabinactive.jpg";
password2.src = "/fmh/passwordtabactive.jpg";
login1.src = "/fmh/logintabinactive.jpg";
login2.src = "/fmh/logintabactive.jpg";
function off(imgName) {
if(document.images) {
document[imgName].src = eval(imgName + "1.src");
function on(imgName) {
if(document.images) {
document[imgName].src = eval(imgName + "2.src");
// -->
</script>
<img src="/fmh/affiliatestabinactive.jpg" name="affiliates" border=0 width=100 height=20><br>
Any suggestions as to why this might not work in Oracle Portal. I know I had to eliminate any single quotes and I wonder if that has anything to do with it.
null

Hi,
I don't know if this will give you the answer to your problem.
Once I had same same kind of problem in a Portal page with 2 rollover menu in the top and the bottom of a page (in 2 different dynamic HTML portlet). Running each portlet in the application part of Portal was fine when testing, but no rollover was running in the final page.
The issue was that the rollover script was the not same on each portlet, but the variable names were the same (img1, img2...) !!
SO that why the script on the Portal page couldn't use duplicate var name, but doesn't return any error.
I hope this could help.
Pierre

Similar Messages

  • Caching in Dynamic Pages

    Hi,
    I have created a dynamic page(HTML) and published it as a portlet. I have included a call to display an image(say xyz.jpg) in the code. I have also published this dynamic page as a portlet and use it in a portal page. When I view the page it shows the image. When I change the underlying image(xyz.jpg), the new image(please note that that the images are different but the path and file name are the same) is not showing up in the portal page. Instead, the old image file is displayed. I have given Don't cache for the portal page. I also tried clearing cache for the page group, portal page and the dynamic page and it still displays the old image and not the new one. Is there a way to clear cache dynamically?
    Thanks,
    Manikandan Vembu

    Hi,
    This is a known issue with the way Wordpress generates the URLs to included content:http://forums.adobe.com/message/4774943
    Wordpress generates absolute URLs to content rather than relative URLs, so the current workaround is to either use relative URLs or, if that's not possible, modify the wordpress configuration to use the IP address instead of localhost.
    Hope this helps,
    Mark

  • Show ordimages - dynamic page or portal reports

    Hi all.
    I have one table with 2 columns ordimages and 1 varchar2, im use a oracle portal forms to make inserts, its works perfect, but now a need to display this images, i try to use Portal Reports, but when a try display this images just show a small picture a want to display the original image like:
    Name Product: image in full size
    Can i do this in oracle reports or dynamic page , because later,a want to make a search in this product names ?
    tks
    Carlo.

    Please post this question to the Portal applications forum. This forum is for discussion of content area topics.
    Thanks,
    Jerry

  • How can to show picture in my dynamic page?

    I have a dynamic page where I want to show a logotype or picture in the header same than a template, how can to do it?
    thank by any idea.

    Add in the head:
    <base href="http://desarrollo/pls/portal30/"></HEAD>
    and when you want to call a image:
         <td align=left valign=bottom><img SRC=/images/logo.jpg BORDER=0></td>
    where your image is logo.jpg ....

  • Can a trigger call a dynamic page??

    i'm trying to simply the things:
    for the trigger, just
    begin
    insert into phang.test(qid) values(1);
    end;
    after i log into the portal, yes, the value 1 is inserted into the table
    thus i conclude that the triggering event is correct.
    but if I
    begin
    phang.testpage.show;
    end;
    i still gets log in, but the dynamic page phang.testpage just doesn't show up.
    any way to do it?
    thx.

    hi! the trigger was supposed to call this procedure:
    Create or replace procedure phang.dob_param
    DOB IN DATE,
    UserName IN VARCHAR2)
    as
    age varchar2(3) default 0;
    begin
    htp.p('<html>');
    htp.p('<head>');
    htp.p('<script language="javascript"
    type="text/javascript">
    bCard = new Array("/images/red.gif","/images/blue.gif","/images/yellow.gif")
    cardCount = bCard.length
    function chooseCard()
    if (document.images)
    randomNum=Math.floor((Math.random()*cardCount))
    document.Card.src=bCard[randomNum]
    </script>');
    htp.p('</head>');
    htp.p('<image src ="/images/logo.gif">');
    htp.p('<BR>');
    htp.p('<BR>');
    age:= to_char(sysdate, 'yyyy') - to_char
    (DOB,'yyyy');
    htp.p('Dear '||INITCAP(username)||', ');
    htp.p('Happy Birthday!');
    htp.p('<BR>');
    htp.p('<BR>');
    htp.p('<body onload="window.resizeTo
    (600,500);chooseCard()">');
    htp.p('<image src ="/images/green.gif" width=300
    height=75 name="Card">');
    htp.p('<p>');
    htp.p('Oh, in case you deliberately forget, you
    are ');
    htp.p(age);
    htp.p('years old now.');
    htp.p('<BR>');
    htp.p('<BR>');
    htp.p('<input type ="button" value="Close"
    onClick="window.close()">');
    htp.p('</body>');
    htp.p('</html>');
    end;
    For the dynamic page, it's about the same except it draws the data from the database and display it, no parameter passing in. You can treat is as just:
    <html>
    <body>
    Hello!
    </body>
    </html>
    thx

  • 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

  • Jquery or code for Image loading on Sp Gridview Pager(Next ,Prev) click functionality on sharepoint 2010

    Jquery or dynamic code for Image loading on Sp Gridview Pager(Next ,Prev) click functionality on sharepoint 2010.
    i have a dynamic SP gridview contains Previous and next
    buttons for paging.
    page doesn't contain Update panel.
    grdXRPSUsers.PagerSettings.Mode = PagerButtons.NextPrevious;
    grdXRPSUsers.PagerSettings.PreviousPageText = "< Previous Page";
    grdXRPSUsers.PagerSettings.NextPageText = "Next Page >";
    grdXRPSUsers.PagerSettings.FirstPageText = "First Page";
    grdXRPSUsers.PagerSettings.LastPageText = "Last Page";
    When i click on Next or Previous page in the gridview it will take more time and showing progress bar in th below.
    As per my client request, i need to change the
    progress bar to Loading image (Wheel at middle of the grid at fething time).
    How its possible either through jquery or Programming(code behind).
    Please help

    Hi,
    According to your description, my understanding is that  you want to add loading image when click the paging button to load the data.
    I suggest you can use Jquery BlockUI Plugin to show a block image when loding data in paging click event.
    Here is a similiar thread for your reference:
    How to display a loading image until a gridview is fully loaded
    More information:
    Jquery BlockUI Plugin
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Dynamic page question (or class=RegionHeaderColor)

    Hi there,
    i have a couple of portlets, the top-left-portlet showing a background image.
    however my dynamic-page portlet doesn't show the image
    because in the source i see this:
    <TR><TD class="RegionHeaderColor" WIDTH="100%">
    <H2>Example of A Dynamic Page</H2>
    </TD></TR>
    the problem is the class.
    when i remove it, i see the image...
    my questions are:
    1. where can i remove the class
    2. how can i change the class.
    thanx in advance,
    Teo.

    If your question is related to editing of dynamic pages exposed as a porltet in a particular page then,
    1)Edit the page
    2)Check the name of the component (dynamic page component) created, and the name of the application.
    3) In the applications tab, navigate to the corresponding application and edit the component in question.

  • Dynamic Page Layout - Opportunity Product Revenue

    Hi gurus,
    I am trying to setup a dynamic template for "Opportunity Product Revenues"
    I set it up successfully in the object. However, this data is exposed only as a related list of Opportunity and not directly. Now, when I go into the "Opportunity" customization, it only allows me to set up static page layouts, with no option to setup the Dynamic page layouts through the Related list.
    Please help..

    Hi Jonathan,
    Many thanks for your response.
    Our CTE is already on R19. We want to experiment and be ready when our PROD is upgraded to R19.
    Can you help me with the requirement, if you have an idea please? I would really appreciate the help.
    Thanks

  • In a dynamic page how to share variable between PL/SQL and javascript

    For example, my dynamic page contains such PL/SQL codes:
    <ORACLE>
    DECLARE
    info varchar(100);
    rowid urowid;
    procedure doDelete(
    row_id in urowid
    ) IS
    begin
    Delete From xxx
    WHERE rowid = row_id;
    end doDelete;
    BEGIN
    Select name, rowid INTO info, rowid
    From xxx Where xxx;
    HTP.PRN(' <INPUT TYPE="button" VALUE="show value" onClick="alert(info);">');
    HTP.PRN(' <INPUT TYPE="button" VALUE="delete" onClick="doDelete(_row_id);">');
    END;
    </ORACLE>
    The variable 'info' and '_row_id' are correct, however the two HTP. sentence do not work. What's the problem?
    What I want to do is to show all the records in TABLE A in a page. And at the end of each line (record), there' re a 'delete' and a 'update' button to let user operate on this record. Is this possible? I know form can do delete an update, but it can not show all the records in a page like what report does. Besides dynamic page, is there any other better choice? Report can do it?
    One more question. In a report, I employed link on one field to a second report. It works well. But I want to open the second report in a new window when the link is click. Is this possible?
    I was almost driven crazy by these :( I so appreciate if anyone can help.

    The code written by you is insufficient for the funtionality you are trying to achieve. Below is a method to achieve the same.
    Note: Used standard scott.emp table for the example which is located in my db provider schema.
    Do the below modifications as per your local configuration
    xxxxx -> Replace it with your Portal schema
    yyyyy -> Replace it with your db provider schema
    <<module_id_of_form>> -> Replace with the module id of form created in step 1 & 2.
    First and foremost... oracle does not allows variables starting with '_'. So if you want to use it you have to place it in double quotes ("")
    rowid -> illegal
    "_row_id" -> legal.
    However, I will advice you not to use variable names starting with "_".
    Now lets get started...
    1. Create a form on the table you are using in the dynamic page. Just have the update button. Remove the other buttons.
    2. Get the module id of this form. Instruction for getting the module id:
    a) Right-click on the form's run link and copy the shortcut
    b) Get the value of p_moduleid parameter. This is your module id.
    3. Create a procedure "save_action_details" in your db provider schema. This procedure will accomplish the delete operation on the record.
         CREATE OR REPLACE Procedure save_action_details(
         p_rowid IN VARCHAR2,
         p_action IN VARCHAR2,
         p_dyn_ref_path IN VARCHAR2,
         p_dyn_page_url IN VARCHAR2)
         is
         l_sto_session xxxxx.wwsto_api_session;
         begin
         l_sto_session := xxxxx.wwsto_api_session.load_session(
         p_domain => 'DynStore',
         p_sub_domain => 'DynStore_' || p_dyn_ref_path
         l_sto_session.set_attribute(
         p_name => 'rowid',
         p_value => p_rowid
         l_sto_session.set_attribute(
         p_name => 'action',
         p_value => p_action
         l_sto_session.save_session;
         htp.init;
         owa_util.redirect_url(p_dyn_page_url);
         end save_action_details;
    Explaination: The above procedure creates a session and keeps the rowid and action in the session. This information is used by the below dynamic form to perform the necessary action. In our exampl, the action is always going to be delete so you may go ahead and hard code it, else leave it as it is.
    4. Grant execute privilege on the procedure "save_action_details" to public.
    sql> grant execute on save_action_details to public;
    5. Create your Dynamic page.
    a) In HTML code section have the below code. This code shows some columns from the table and "update" and "delete" buttons to perform the respective action.
         <ORACLE>select empno,ename,rowid,
         '<input type="button" value="Update" onClick="doAction(this.form,''UPD'',''xxx'','''
         || xxxxx.wwv_standard_util.url_encode(rowid) || '''); tWin();">
         <input type="button" value="delete" onclick="doAction(this.form,''DEL'',''' || rowid || ''',''xxx'');">' Action
         from yyyyy.emp</ORACLE>
    b) In additional pl/sql code section of dynamic page, have the below pl/sql block "in after displaying the header" section.
         declare
         l_sto_session xxxxx.wwsto_api_session;
         l_del_rowid varchar2(20);
         l_action varchar2(10);
         begin
         htp.comment('User code starts here ...');
         htp.p('<script>');
         htp.p('var winHandle;');
         htp.p('
         function doAction(formObj, action, rowid, erowid)
              if (action == "UPD")
              var formURL = "' || xxxxx.wwctx_api.get_proc_path('wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=<<module_id_of_form>>&p_arg_names=_rowid&p_arg_values=') || '" + erowid;
              winHandle = window.open(formURL, "winDynUpd", "width=750,height=500,resizable=yes");
              else
              formObj.p_rowid.value = rowid;
              formObj.p_action.value = action;
              formObj.submit();
         function tWin() {
              if (winHandle.closed) {
              document.location = document.location;
              else {
              setTimeout("tWin()", 500);
         htp.p('</script>');
         htp.p('<form name="dynRowProcess" method="POST" action="'
         || xxxxx.wwctx_api.get_proc_path('save_action_details','yyyyy')
         || '">');
         htp.p('<input type="hidden" name="p_rowid">');
         htp.p('<input type="hidden" name="p_action">');
         htp.p('<input type="hidden" name="p_dyn_ref_path" value="' || p_reference_path || '">');
         htp.p('<input type="hidden" name="p_dyn_page_url" value="' || p_page_url || '">');
         l_sto_session := xxxxx.wwsto_api_session.load_session(
         p_domain => 'DynStore',
         p_sub_domain => 'DynStore_' || p_reference_path
         l_del_rowid := l_sto_session.get_attribute_as_varchar2('rowid');
         l_action := l_sto_session.get_attribute_as_varchar2('action');
         if l_action = 'DEL' then
         delete from yyyyy.emp
         where rowid = l_del_rowid;
         end if;
         end;
    Explaination: The session information (rowid and action) stored by "save_action_details" procedure is retrieved by the dynamic page and is used to delete the record.
    6. Once you are through with the above steps, test it by placing the above "dynamic page" portlet on a page.
    a) When you click on delete button the record gets deleted and the automatically refreshed page will not show the deleted record.
    b) On clicking update button, a form will appear. do the necessary modifications in data and click update. the data in the form gets updated. Once you close the form the dynamic page gets refreshed automatically and it will show you the updated information.

  • Image item to open a page in a new pop window

    Hi,
    How can I have an image to open a page in a popup window. As I can define an item as a link and define Destination URI and Target Frame as _blank. But I need to show an image that when clicked should open the Destionation URI in a popup blank page. How can I achieve this functionality. Currently I have used an item as image but it opens the page in the same window as I need to open it in a new window.
    Thanks

    try this..
    javascript:var a=window.open('http://www.oracle.com', 'a','height=500,width=900,status=yes,toolbar=no,menubar=no,location=no'); a.focus();
    --Prasanna                                                                                                                                                                                                                                                                                                                                       

  • 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.

  • How to create a form based on table using dynamic page?

    Hi,
    I need to create a form using dynamic page. How do you pass values from the html form to a oracle procedure that will get executed on submission of the form ? I could not find any documents which shows how to do that. Can anyone please help me out with an example ?
    thanks,
    Mainak

    Hi,
    Something seems to get added to the form action because of "http". Hence I am removing it.
    You need to write a procedure with the values in the as parameters. Say for example you want to insert a record into dept
    table then
    Dynamic page code
    <html>
    <body>
    <form action="portalschema.insert_dept">
    <input type="text" name="p_deptno">
    <input type="text" name="p_dname">
    <input type="submit" name="p_action" value="save">
    </form>
    </body>
    </html>
    Procedure code.
    create or replace procedure insert_dept
    (p_deptno in number,
    p_dname in varchar2,
    p_action in varchar2)
    is begin
    if p_action = 'save' then
    insert into scott.dept(deptno,dname) values(p_deptno,p_dname);
    commit;
    end if;
    end;
    grant execute on insert_dept to public;
    Hope this helps.
    Thanks,
    Sharmila

  • Can I change header image on one or more pages of a template site?

    Hi all,
    I have a site I created in D.W CS3. I'm kicking around the idea of adding an affiliate store. I think I might be better served if the store has a different header image than the main site. I can either create a whole new site for the store, or what I'd rather do for now is just make a new page from the main template, and change the header image just for that page to see how it goes. Does anyone know the code I could use to have a page from template override the CSS and use a new header image just for that one page?
    The URL is http://isuckatgolf.net if that is needed.
    Thanks!
    ken

    Take images out of the HTML and put them in the background of your #header div with CSS.
    #header {
    background: url(header1.jpg) no-repeat
    width: xxxpx; /**same width as image**/
    min-height: xxxpx; /**same height as image**/
    Use embedded CSS on child pages requiring a different background.
    <style type="text/css">
    #header {
    background: url(header2.jpg) no-repeat;
    </style>
    Nancy O.

  • How to get page URL in a dynamic page in 10.1.4?

    Does anyone know how to get the page URL in a Dynamic Page in 10.1.4 without using javascript.
    I know that you can use a PL/SQL portlet and the portlet_record, but this is specifically for a Dynamic Page.
    Regards
    Jenny

    Hi,
    I am trying the suggested approach in 10.1.4 but unfortunatley I get the following error:
    PLS-00302: component 'SHOW_INTERNAL' must be declared
    In my Dynamic Page I have the following code
    htp.p(cms_context.urlpage);
    In the '... before displaying the page' I have the following
    schema_name.cms_context.urlpage := schema_name.dynamic_page_name.show_internal.p_page_url;
    Can anyone help?
    Cheers
    Chris

Maybe you are looking for

  • ITunes isn't recognising my iPhone, what should I do?

    I've used multiple lightning cables and this hasn't worked, uninstalled ITunes and reinstalled it again and it still doesnt work, I'm not sure what the problem is and concerned that there could be a problem with my phone port as it has the capability

  • How to handle system errors in XI using BPM? please help!

    Hi Experts,      I have a requirement where I have to handle system errors. For example when I am making RFC call using RFC adapter if the remote destination is down then I have create a understandable error message and store it in another SAP table.

  • HR Function /  BAPI  to add details into PB30

    Hello, I am trying to find a function or Bapi to input data into transaction PB30, this is basically name , address , cand number etc.. I am currently using BDC , and I am not really happy with this approach. Thanks

  • SRM attachments transferred to ECC?

    Hi all, Can anyone confirm if the attachment from PO in SRM(ECS) are replicated to ECC PO with SRM 7.0 EHP1?

  • ADOBE Interactive forms / Automatic handling by SAP via mail

    Hi All, Short question. Is it possible that for example, an email with a predifined body is send to a SAP SMTP port and that the content is read bij an service(for so far this is possible)and that this service creates an ADOBE interactive form autmat