#REGION_ID# for pagination

Hi all,
I want to show on the pagination bar in the report the button "Go to first page".
I can change the report template. But when I use the substitution String #REGION_ID# I get the ID in the following format: Rxxxxxxxx.
But I need to get only numbers for the link: pg_R_xxxxxx:NO:pg_min_row=1&pg_max_rows=15&pg_rows_fetched=15
Is there any way to solve this?
HTMLDB 2.0
Regards,

Hello Leonid,
The #REGION_ID# is only available during page rendering and not after the page has been load. That means that you can't directly manipulate it using JavaScript, you need first to put it on the page. The principle is to put an initial broken link, using #REGION_ID#, and then fix it, using JS and a onload event.
First, you should duplicate the report template you are using, and use the new template for all your experiments.
The first page link should appear for the second set of records, and onward. This is a static link – always pointing to the first set of records – so you can add it in the "Previous Set Template" field, in the pagination section of the report template. The link should look something like this:
< a id="P1" href="f?p=&APP_ID.:&APP_PAGE_ID.:&SESSION.:pg_#REGION_ID#:NO&pg_min_row=1&pg_max_rows=10&pg_rows_fetched=10">Page 1We will use the "P1" id to identify the link on the loaded page, and fix it. On the page, you should define an onload code like the following: onload = fixLink('P1');
The related JS function should look something like this:
function fixLink(pId) {
   var elm = $x(pId);
   if (elm) {
     var brLink = elm.href;
     var newLink = brLink.replace(/:pg_R/,":pg_R_");
     elm.href = newLink;
}This function takes the original #REGION_ID# value, in its regular format – Rxxx…xx – and change it to the pagination format of R_xxx…xx.
Hope this helps,
Arie.

Similar Messages

  • Issue While executing the Query for Pagination using ROWNUM with like

    Issue While executing the Query for Pagination using ROWNUM with like.
    Database is Oracle11G.
    Oracle Database Table contains 8-9 lakh records
    1) SQL equal (=)
    SELECT /*+ FIRST_ROWS(n) */ ROWNUM RNUM, A.* FROM LINE A
    WHERE A.REFERENCE = 'KMF22600920'
    Execution Time:- 0.00869245 seconds
    Returns 2 resultsets
    2) SQL like (one %)
    SELECT /*+ FIRST_ROWS(n) */ ROWNUM RNUM, A.* FROM LINE A
    WHERE A.REFERENCE = 'KMF22600920%'
    Execution Time:- 0.01094301 seconds
    Returns 2 resultsets
    3) SQL like (two%)
    SELECT /*+ FIRST_ROWS(n) */ ROWNUM RNUM, A.* FROM LINE A
    WHERE A.REFERENCE like '%KMF22600920%'
    Execution Time:- 6.43989658 seconds
    Returns 2 resultsets
    In Pagination, we are using Modified version of SQL Query 3) with ROWNUM as mentioned below :-
    4) SELECT * FROM (
    SELECT /*+ FIRST_ROWS(n) */ ROWNUM RNUM, A.* FROM LINE A
    WHERE REFERENCE like '%KMF22600920%' AND ROWNUM <= 20 ) WHERE RNUM > 0
    Execution Time:- Infinite
    ResultSets:- No as execution time is infinite
    a) Instead of like if we use = in the above query it is returning the 2 resultsets (execution time 0.02699282 seconds)
    b) Instead of two % in the above query, if use one example REFERENCE like 'KMF22600920%' it is returning the 2 resultsets (execution time 0.03313019 seconds)
    Issue:- When using two % in like in the above query i.e. REFERENCE like '%KMF22600920%' AND ROWNUM <= 20 ) , it is going to infinite.
    Could you please let us know what is the issue with two % used in like and rownum
    5) Modified version of Option1 query (move out the RNUM condition AND RNUM <= 20)
    SELECT * FROM (
    SELECT /*+ FIRST_ROWS(n) */ ROWNUM RNUM, A.* FROM LINE A
    WHERE REFERENCE like '%KMF22600920%' ) WHERE RNUM > 0 AND RNUM <= 20
    Execution Time:- 7.41368914 seconds
    Returns 2 resultsets
    Is the above query is best optimized query which should be used for the Pagination or still can improve on this ?

    This would be easier to diagnose if there was an explain plan posted for the 'good' and 'bad' queries. Generally speaking using '%' on both sides precludes the use of any indexes.

  • Best Approach for Pagination  in 11.1.1.6 or 11.1.1.7  for Portals

    Hi ,
    We have a requirement for using pagination in webcenter portal . We already installed Jdev 11.1.1.6 , So is their any approach or a solution for Pagination in 11.1.1.6 . If not could you please suggest any other approach for upgrading to 11.1.1.7 .
    If we upgrade to Jdev 11.1.1.7 , Is it compatable with Webcenter Portals . Could you please suggest the best appraoch for this.
    Thank you,
    Sashank P

    I do believe pagination is coming back in .7 but am not 100% sure.
    Anyway you can build your own custom pagination by following this blog: http://andrejusb.blogspot.co.uk/2011/05/oracle-adf-11g-custom-table-pagination.html
    edit: it's back in .7: http://andrejusb.blogspot.co.uk/2013/04/adf-11g-ps6-adf-10g-table-pagination.html
    Edited by: Yannick Ongena on Apr 15, 2013 11:51 PM

  • Which keys do I have to press for pagination shortcut in pages?

    Hi,
    I'd like to use the shortcut for pagination shown in pages. It looks like this:
    Can you tell me which key that is?
    Best
    Sarah

    No, I'm not talking about iTunes.  The music icon is orange with a dark brown series of notes.  It should be in thel lower right side of your home screen.
    If it's not there, you might try Settings > General > Reset > Reset home screen layout.

  • Pagination navigation values

    We currently have a page which utilizes two drop down boxes to filter the data into a report region.
    When there are more than the set amount of values to be displayed, Oracle Express provides pagination navigation in several formats.
    The issue we are having is that we would like to be able to add some values to the end of the pagination url that is created but have not been able to locate where this could be done. The reason we would like to be able to do this, is to populate the values within the drop downs to preserve the correct query.
    Any suggestions would be very helpful.

    Hello User…. (Please tell us your first name)
    I don't really understand what you are trying to do, but in the following post you can see an example of manipulating the pagination URL using JavaScript code - Re: #REGION_ID# for pagination
    If it's not helping you'll have to be more specific on what you are trying to do.
    Regards,
    Arie.

  • Pagination and interactive sort for drilldown report doesn't work fine

    Hi Anyone,
    I have a drilldown report includes three groups. I add the last group for pagination. But the details in each page doesn't accord to I specified and the detail record number is different in different page.
    Another issue is the interactive sort always sort in the first page scope. I set the data region or grouping to the table, and evaluate expression scrope to Detail scope.
    Anyone has experience on that?
    Thanks a lot

    Can you explain your scenario giving screenshot to make us understand how your groups are?
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Problem in pagination

    hi,
    I am working on the pagination concept using JSP and SQL.
    I written stored procedure for pagination..its nicely working and i am using callable statement to call the procedure in my jsp code....if i am passing values within the parameter ..i am getting the answer....but i have to get the value at runtime...
    In my jsp code.i am calling the procedure like this:
    java.sql.CallableStatement proc =
    cn.prepareCall("{call newPage2('%telic%',2,10,24)}");
    its working fine...But i have to get the string from html..I have get the values at runtime rather than passing the values directly...
    Details about the above parameters which i have used in my code :
    The string that be searched - "telic"
    2 = Refers to the current page
    10 = page size(no of items per page)
    24 = total number of records;
    for Example if i am searching for the word "telic".I have the fields in the database such as names,address.
    The word "telic" has to be searched in the above fields.
    My doubts are:
    1) How do i pass the text from the HTML to the stored procedure.
    2) I am not sure about passing the values to a stored procedure at runtime.
         java.sql.CallableStatement proc =
    cn.prepareCall("{call newPage2(?,?,?,?)}");
         How should i pass the values at runtime instead of "?" mark.
    3)Suppose if i am using the getParameter method to get the string value..How can i pass the string variable instead of question mark(?).
    can anyone help me...
    Thanks in advance.

    Read the documentation for CallableStatement. There are methods for setting parameters.
    http://java.sun.com/j2se/1.4.2/docs/api/java/sql/CallableStatement.html

  • APEX 3.1 Report pagination style limited by max row count

    I am working on an application using APEX 3.1 and am having trouble keeping the report pagination style as a select list when the max row count for the report is greater than 8000. If I use the select list as the pagination method, the first time that the first page is viewed is fine however all subsequent pages begin to use the "next" and "previous" link method of pagination. This is only occurring when the max row count is higher than 8000 and a select list is used for pagination.
    My question is: is the style of pagination, in Oracle APEX (3.1), limited by the potential number of rows returned for the report? If not, is this a bug with my version of Oracle APEX?

    The source of my problem was that the report referenced a page item for the number of rows. That select list referenced a named List of Values (LOV) that limited the number of rows that the report could display. I removed that reference and my problem disappeared!

  • Pagination example 1 ... | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17

    Hello there. As I have sought out a reasonable solution for paging nagivation and compared designs such as Google's search result paging to designs such as this forum's paging navigation, I have decided to go with this forum's design which I found somewhat better and more of a challenge. I did however, step it up a notch and attempt to improve it by acheiving a constant page group return size (with the exception of undersized page group lists and end groups that don't span the default page group size). This is one behaviour I noticed this forum's paging lacking. You can notice it when you are first starting your paging through the forum, the number of pages listed varies each time you page forward/backward until you reach a stable point deeper into the pages.
    This paging utility, however, maintains a constant page group list size which may be preferred when looking to fit the navigator into a constrained area.
    Anyhow, the following is a complete working example:
    package web.util;
    import java.util.ArrayList;
    import java.util.List;
    * @author javious
    public class Pagination {
        /** Creates a new instance of Pagination */
        public Pagination() {
         * @param totalItems is the total of all items to be paged.
         * @param currentPage is a page from the returning list to be currently displayed.
         * @param defaultCursorPosition (zero based) is the usual position within the
         *        returning list in which
         *        we want to display the current page. Should the current page be less than
         *        this position, then this parameter gets overridden with the page's position.
         *        Should the current page be greater than the final(of the last page group)
         *        page position minus the preferred page position, then this
         *        parameter gets overridden with the page's position.
         * @return List of page numbers in relation to the supplied parameters.
        public static List<Integer> getList(int totalItems,
                                            int currentPage,
                                            int resultPageSize,
                                            int pageGroupSize,
                                            int defaultCursorPosition)
            List<Integer> pageList = new ArrayList<Integer>();
            // first obtain the first item index of the absolute last page of
            // all known records.
            int finalPageItemStartIndex = (totalItems - totalItems % resultPageSize);
            if(totalItems % resultPageSize == 0)
                finalPageItemStartIndex-=resultPageSize;
            // Now obtain the final page index
            int finalPage = 0;
            if(finalPageItemStartIndex > 0)
                finalPage = 1+(int)Math.ceil((double)finalPageItemStartIndex/resultPageSize);
            int offset = pageGroupSize;
            if(currentPage > defaultCursorPosition)
                offset -= defaultCursorPosition;
            else
                offset -= (int)Math.min(pageGroupSize, currentPage);
            int endPage = Math.min(finalPage, currentPage + offset);
            int startPage = 0;
            if(currentPage > defaultCursorPosition && finalPage >= endPage)
                startPage = Math.max(1,endPage - pageGroupSize + 1);
                pageList.add(0);
            for(int i=startPage;i<endPage;i++)
                pageList.add(i);
            return pageList;
    }and the initial servlet
    package web;
    import java.io.*;
    import java.net.*;
    import java.util.ArrayList;
    import java.util.List;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import web.util.Pagination;
    * @author javious
    * @version
    public class PaginationTest extends HttpServlet {
        private static final int testItems[][] = {new int[210],
                                            new int[133],
                                            new int[7], // good test for within boundaries
                                            new int[111],
                                            new int[10], // good test of matching group size.
                                            new int[20] // good test of divisible
        static {
            for(int i=0;i<testItems.length;i++)
                for(int j=0;j<testItems.length;j++){
    testItems[i][j] = (int)Math.ceil(Math.random()*10000);
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    int resultPageSize = 10;
    int pageGroupSize = 10;
    int defaultPageCursorPosition = 3;
    response.setContentType("text/html;charset=UTF-8");
    // add parent total so jsp can list links for them.
    request.setAttribute("parentTotal", testItems.length);
    String sParentIndx = request.getParameter("parentId");
    String sCurrentPage = request.getParameter("itemPg");
    int parentIndex = (sParentIndx != null ? Integer.parseInt(sParentIndx) : 0);
    int currentPage = (sCurrentPage != null ? Integer.parseInt(sCurrentPage) : 0);
    request.setAttribute("parentId", parentIndex);
    request.setAttribute("itemPg", currentPage);
    int targetItems[] = testItems[parentIndex];
    int totalItems = targetItems.length;
    int startIndex = currentPage*resultPageSize;
    request.setAttribute("pageStart", startIndex+1);
    int maxResultIndex = Math.min(totalItems, startIndex + resultPageSize);
    List pageItems = new ArrayList();
    for(int i=currentPage*resultPageSize;i<maxResultIndex;i++)
    pageItems.add(targetItems[i]);
    request.setAttribute("pageItems", pageItems);
    // add totalPages so jsp can determine whether or not
    // to show "previous" link
    int totalPages = totalItems/resultPageSize; // 2 pages = 0 to 1
    if(totalItems % resultPageSize > 0)
    totalPages++;
    request.setAttribute("totalPages", totalPages);
    // add this so jsp can tell when to add "..."
    request.setAttribute("defaultPageCursorPosition", defaultPageCursorPosition);
    List pageList = Pagination.getList(totalItems, currentPage,
    resultPageSize, pageGroupSize, defaultPageCursorPosition);
    request.setAttribute("pageList", pageList);
    request.getRequestDispatcher("pagination_test.jsp").forward(request,response);
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
    public String getServletInfo() {
    return "Short description";
    and now for the nagivator portion of your JSP/JSTL
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%--
    The taglib directive below imports the JSTL library. If you uncomment it,
        you must also add the JSTL library to the project. The Add Library... action
        on Libraries node in Projects view can be used to add the JSTL 1.1 library.
        --%>
        <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
        <!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=UTF-8">
    <title>JSP Page</title>
    <STYLE type="text/css">
    .pagingLink {text-decoration: none}
    </STYLE>
    </head>
    <body>
    <h1>Parent Lists</h1>
    <c:forEach begin="0" end="${parentTotal-1}" var="indx" varStatus="loopStat">
    <c:choose>
    <c:when test="${parentId == indx}">
    <b>${loopStat.count}</b>
    </c:when>
    <c:otherwise>
    <a href="PaginationTest?parentId=${indx}">${loopStat.count}</a>
    </c:otherwise>
    </c:choose>
    </c:forEach>
    <h1>Items</h1>
    <ol start="${pageStart}">
    <c:forEach var="item" items="${pageItems}" varStatus="loopStat">
    <li>${item}
    </c:forEach>
    </ol>
    <table border="0" cellpadding="2" cellspacing="1">
    <tr>
    <c:if test="${itemPg-1 >= 0}">
    <td><a class="pagingLink" href="PaginationTest?parentId=${parentId}&itemPg=${itemPg-1}"><<</a>
    </td>
    </c:if>
    <%-- Loop through paging numbers list --%>
    <c:forEach var="pg" items="${pageList}" varStatus="loopStat">
    <c:if test="${!(loopStat.index eq 0 and loopStat.last)}">
    <td>
    <c:if test="${loopStat.count > 1}">
    |
    </c:if>
    <c:choose>
    <c:when test="${itemPg == pg}">
    <b>${pg+1}</b>
    </c:when>
    <c:otherwise>
    <a class="pagingLink" href="PaginationTest?parentId=${parentId}&itemPg=${pg}">${pg+1}</a>
    <c:if test="${loopStat.count == 1 && itemPg > defaultPageCursorPosition}">...</c:if>
    </c:otherwise>
    </c:choose>
    </td>
    </c:if>
    </c:forEach>
    <c:if test="${itemPg+1 < totalPages}">
    <td><a class="pagingLink" href="PaginationTest?parentId=${parentId}&itemPg=${itemPg+1}">>></a>
    </td>
    </c:if>
    </tr>
    </table>
    </body>
    </html>

    hi
    I m giving a code for pagination. this is for displaying 5 records per page i think it may help ful to you
    <html>
    <body>
    <link href="Stylesheet/style.css" rel="stylesheet" type="text/css">
    <script language="javascript" src="TableSort.js">
    </script>
    <br>
    <br>
    <center><H2> Student Details </H2></center>
    <%
                   int loop_var=Integer.parseInt(request.getParameter("i"));
                   Vector vecResults=new Vector();
    // store the records in vector
                   vecResults=dataAccessLayer.readObjects("QueryToAllStudents");
                   String strSortable="sortable";
                   int rec=vecResults.size();
                   int i=0,roll_number;
                   HashMap hmRecord;
                   if (rec==0)
                        roll_number=1;
                   else
                        hmRecord = (HashMap)vecResults.elementAt(rec-1);
                        roll_number=Integer.parseInt((String )hmRecord.get("std_rno"))+1;
                   session.setAttribute("roll_number",roll_number+"");
                   if (rec==0)
                        out.println("There are no records in database please enter");
    %>
                        <br>
                        Add &nbsp
    <%
                   else
    %>
                             <table border="1" width="70%" align="center" id="studentdetails" class=<%=strSortable%>>
                                       <tr>
                                       <th bgcolor="PINK" sort="true" align=center>Roll No</th>
                                       <th bgcolor="PINK" sort="true" align=center>Name </th>
                                       <th bgcolor="PINK" sort="true" align=center>Date Of Birth </th>
                                       <th bgcolor="PINK" sort="true" align=center>Subject1 </th>
                                       <th bgcolor="PINK" sort="true" align=center>Subject2 </th>
                                       <th bgcolor="PINK" sort="true" align=center>Subject3 </th>
                                       <th bgcolor="PINK" sort="true" align=center>Total </th>
                                       <th bgcolor="PINK" sort="true" align=center>Modby </th>
                                       </tr>
    <%
                             String s;
                             while (i<5 && loop_var<rec)
                                       hmRecord = (HashMap)vecResults.elementAt(loop_var);
                                       s=((String )hmRecord.get("std_dob")).substring(1,10);
    %>
                                       <tr>
                                       <td><center><%=hmRecord.get("std_rno")%></center></td>
                                       <td><center><%=hmRecord.get("std_name")%></center></td>
                                       <td><center><%=s%></center></td>
                                       <td><center><%=hmRecord.get("std_sub1")%></center></td>
                                       <td><center><%=hmRecord.get("std_sub2")%></center></td>
                                       <td><center><%=hmRecord.get("std_sub3")%></center></td>
                                       <td><center><%=hmRecord.get("std_tot")%></center></td>
                                       <td><center><%=hmRecord.get("std_modby")%></center></td>
                                       </tr>
    <%
                                       loop_var++;
                                       i++;
    %>
                             </table>
                             <center>
                             <br>
                             <br>
    <%
                             if (loop_var>=11)
    %>
                                  <a href="List.jsp?i=<%=(((loop_var/5)*5)-5)%>">Prev &nbsp|</a>
    <%                    }
                             else
    %>
                                  <a href="List.jsp?i=<%=0%>">Prev &nbsp|</a>
    <%                    }
                             int j=1;
                             for (i=0;i<rec/5;i++,j++)
    %>
                                       <a href="List.jsp?i=<%=(i*5)%>"><%=j%>&nbsp|</a>
    <%
                             if (rec%5!=0)
    %>
                                       <a href="List.jsp?i=<%=(i*5)%>"><%=j%></a>
    <%
                             if (loop_var<rec)
    %>
                                  <a href="List.jsp?i=<%=loop_var%>">| &nbsp Next</a>
    <%                    }
                             else
                             if (rec%5==0)
    %>
                                  <a href="List.jsp?i=<%=(loop_var-5)%>">| &nbsp Next</a>
    <%                    }
                             else
    %>
                                  <a href="List.jsp?i=<%=(loop_var-rec%5)%>">| &nbsp Next</a>
    <%
    %>
                             </center>
                             <br>
                             <br>
                             Add &nbsp
                             Edit / Delete &nbsp
                             List
    <%
    %>
         </body>
         </html>

  • ADF 11g - Issue with Custom Skin for CommandButton & InputNumberSlider.

    Hi,
    Any Help relative will be greatly appreciated !!!
    Currenlty we have an requirement to override the UI Skin of ADF to custom one.
    Where the page design has some command button & InputNumberSlider(replace with skin of scroll bar)
    FYI, we are working with Integrated Weblogic Server, Jdeveloper Version(Build JDEVADF_MAIN.BOXER_GENERIC_081002.2127.5156)
    Following is the JSPX, containing style (CSS) with in
    ==============================================================================================================================
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:trh="http://myfaces.apache.org/trinidad/html">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <af:document binding="#{backingDisplayImageShell.document1}" id="document1">
    <af:form binding="#{backingDisplayImageShell.form1}"
    inlineStyle='align:center; background-image:url("img/flex-skin.jpg");background-repeat:repeat;'
    id="form1">
    <style type="text/css">
    @platform window, linux {
    @agent ie, gecko {
    af|inputNumberSlider::minus-button {
    background-image: url('../img/skin/horizontal_scrollbar_arrowUp.gif');
    af|inputNumberSlider::plus-button{
    background-image: url('../img/skin/horizontal_scrollbar_arrowDown.gif');
    af|inputNumberSlider::thumb-icon-style{
    background-image : url('../img/skin/horizontal_scrollbar_knobLarge.gif');
    af|inputNumberSlider::thumb{ 
    background-image: url('../img/skin/horizontal_scrollbar_knobLarge.gif');
    af|inputNumberSlider:vertical::thumb{ 
    background-image: none;
    af|inputNumberSlider:vertical::thumb:rtl{ 
    background-image: none;;
    af|inputNumberSlider:vertical:disabled::thumb{ 
    background-image: none;
    af|inputNumberSlider:vertical:disabled::thumb:rtl{ 
    background-image: none;
    af|inputNumberSlider:disabled::minus-button{ 
    background-image: none;;
    af|inputNumberSlider:disabled::plus-button{
    background-image: none;;
    af|inputNumberSlider:disabled::thumb{ 
    background-image: none;
    af|inputNumberSlider::minor-tick{
    background-image : none;
    </style>
    <trh:script>goGetShuffled = function(event) { var source =
    event.getSource(); AdfCustomEvent.queue( source, "OnImageClick"
    , {}, false); event.cancel(); }; /*function hidePopUpWindow(){
    hide(); }*/</trh:script>
    <af:spacer height="100"/>
    <af:panelGroupLayout layout="horizontal" halign="center"
    id="panelGroup4CmdButtons"
    inlineStyle="width:45%; height:16px; background-color:transparent;"
    clientComponent="true">
    <af:commandButton text="Download" icon="/img/download.jpg"
    inlineStyle='background-image:url("img/skin/commandButton.gif"); background-repeat:no-repeat; border-color:transparent; border-style:none;'/>
    <af:commandButton text="Promote" icon="/img/promote.jpg"
    inlineStyle='background-image:url("img/skin/commandButton.gif"); background-repeat:no-repeat; border-color:transparent; border-style:none'/>
    <af:commandButton text="Delete" icon="/img/delete.jpg"
    inlineStyle='background-image:url("img/skin/commandButton.gif"); background-repeat:no-repeat; border-color:transparent; border-style:none'/>
    <af:commandButton text="Zoom" icon="/img/zoom.jpg" partialSubmit="true"
    immediate="true"
    inlineStyle='background-image:url("GlowingButton_disabledSkin.png"); background-repeat:no-repeat; border-color:transparent; border-style:none'></af:commandButton>
    <af:commandButton text="Open" icon="/img/open.jpg"
    inlineStyle='background-repeat:no-repeat; border-color:transparent; border-style:none'/>
    </af:panelGroupLayout>
    <af:spacer height="50"/>
    <!-- Scroll Bar for pagination : Start -->
    <af:panelGroupLayout id="panelGrpScrollBar" layout="horizontal"
    halign="center" valign="top"
    inlineStyle="width:60%; background-color:transparent;">
    <af:commandImageLink icon="img/skin/horizontal_scrollbar_arrowUp.gif"
    action="#{backingDisplayImageShell.previousShelf}"/>
    <af:inputNumberSlider simple="true" autoSubmit="true" immediate="true"
    binding="#{backingDisplayImageShell.inputNumberSlider1}"
    id="inputNumberSlider1"
    valueChangeListener="#{backingDisplayImageShell.sliderValueChgLstnr}"
    minimum="0" maximum="7" minimumIncrement="1"
    contentStyle="width:1100px;" rendered="true"
    inlineStyle="text-decoration:none; border-color:transparent; border-style:none; border-width:0px; font-size:0%;"/>
    <!-- 0.05 -->
    <af:commandImageLink action="#{backingDisplayImageShell.nextShelf}"
    icon="img/skin/horizontal_scrollbar_arrowUp.gif"/>
    <af:commandLink/>
    <af:outputText value="0 - 20"
    binding="#{backingDisplayImageShell.outputText1}"
    noWrap="true" id="outputText1"/>
    </af:panelGroupLayout>
    <!-- Scroll Bar for pagination : End-->
    </af:form>
    </af:document>
    </f:view>
    <!--oracle-jdev-comment:auto-binding-backing-bean-name:backingDisplayImageShell-->
    </jsp:root>
    ==============================================================================================================================
    Thanks
    Rani Velu

    With the Skin changes provided in CSS is not been reflected.
    Since, it seems to have ADF Skin, but not the custom one.
    I tried even using this way as well, but not progress.
    <af:inputNumberSlider simple="true" autoSubmit="true" immediate="true" styleClass="af|inputNumberSlider::major-tick { border-color: red; }"
    id="inputNumberSlider1" inlineStyle="border-color:transparent; border-style:none"
    minimum="0" maximum="7" minimumIncrement="1"
    contentStyle="width:100px;" rendered="true"
    />

  • How to set url in .jhm file to open specific table of content for javaHelp

    Hi,
    I need help on to set the url for mapping JavaHelp
    Inside my JavaHelp content, i used to have a main topic and sub topic, for example:
    1.0 Mathematics
    1.2.1 Algebra
    in map.jhm file. how can i try to link direct to 1.2.1 Algebra?
    example link in my map.jhm
    <mapID target="MATHS" url="MATH/MATHEMATICS.html#1.2.1. ALGEBRA" />
    but cannot directly point to the MATHEMATICS.html#1.2.1. ALGEBRA. it go straight to MATHEMATICS.html
    really appreciate any help on this
    Thanks
    Regards
    Aznimah

    No, you can't use this for pagination on a desktop device.
    Check out http://andrejusb.blogspot.de/2011/05/oracle-adf-11g-custom-table-pagination.html
    Timo

  • Fonts for Pages

    My wife is wondering if there is any more fonts, Windows type, for "Pages"? She is only using 67 Windows True-Type. She's worried about compatibility in e-mails, attachments, with our friends who are all Windows/PC users.

    The great thing about this was that Apple licensed to Microsoft the TrueType technology that rescued PCs from type that looked totally and utter cr@p both onscreen and in print. In return Microsoft never delivered on their promise of a TruePrint technology. There must be high-fives all round at Microsoft every time they sucker Apple.
    Like most matters in life, it's not so simple, sorry.
    Bas, the scalable spline technology, was developed by Sampo Kaasila who in 1983 graduated top of his class from Kungliga Tekniska Högskolan in Stockholm, that is, from the Royal Polytechnic. Kaasila then went to work for Imagen Corporation in the US, and then from August 1987 to August 1989 for Apple on the spline programming language. Kaasila also developed what came to be known as the TrueType Variations technology. Kaasila is now R&D Director for Bitstream.
    Royal, the internationalisation logic, was developed by two of the contributors acknowledged in the Unicode Proposal of 1988, David Opstad and Eric Mader. Opstad now works for Monotype and Mader for IBM on ICU International Components for Unicode, that is, on the internationalisation element of what once was Taligent. TrueType Specification version 1.0 was published in parallel with the Adobe Type 1 Specification, that is, in mid-1990.
    TrueType 1.0 for simple obligatory shaping with the CMAP Character Map was implemented for Microsoft Windows 3.1 by Gregory Hitchcock. The intention was that Microsoft TrueImage would compete with Adobe PostScript and Apple TrueType would compete with Adobe Type 1 (and Agfa/HP Intellifont, Sun F3 Folio, Bitstream/HP Speedo and Fontware i.e. any and all so-called simple character-coded composition models).
    With the Apple TrueType Specification and the Adobe Type 1 Specification going open and going public, Linotype which had partnered with Adobe and Apple in late 1984 saw the writing on the wall announced at DRUPA Druck und Papier in Düsseldorf that its leading composition products would be merged with the leading H e l l separation products to form the world's largest and most powerful prepress platform for imagesetting type matter and tone matter.
    At FOGRA Forschungsgesellschaft Druck und Medien in München in April 1992, Adobe showed Carousel (later Acrobat) and it was announced that at that point the number of PostScript font program dictionaries available as Adobe Type 1 stood at 12,000 (twelve thousand). Following the publication of the PostScript Language Reference, Second Edition, in December 1990, Microsoft announced to Seybold in 1991 that TrueImage would not stay compatible with PostScript since PostScript did not have a colour architecture that supported the screen (a CSA > CRD transform is not invertible from CRC > CSA so it is possible to preview the printable colour appearance on the screen).
    The deal between IBM and Microsoft on OS/2 and its Presentation Foundation fell through at the same time. In the grab bag OS/2 table of the TrueType Specification a sub-tag, the FSTYPE function, was introduced in order to support editable embedding of the font file in the file format of authoring applications including Microsoft Word. In technical terms, this approach preserved the source character string and the simple obligatory shaping of the CMAP Character Map so that style of face, size of face, justification, hyphenation and tabulation was WYSIWYG and at the same time editable since the font file travelled inside the Microsoft Word document.
    Adobe went another way, arguing that if all professional production was by way of PostScript, then first capturing professional production in PostScript and then converting PostScript which is a page-dependent sequential access page description model into a page-independent random access page description model that permits pages to the accessed in any order the way the pages of a printed book are accessed in any order was the way ahead. The problem with it was that Adobe began by corrupting the source character string and then had to fall back to synthesising the source character string from cross-font glyph identifiers, whether the Adobe Glyph List or the Association for Font Information Interchange name list.
    In mid-1993, Adobe published Acrobat 1.0 without search and Apple started seeding QuickDraw GX which included Apple Portable Digital Document technology. The International Color Consortium was formed in 1993, but the the transformation technology was somewhat simplistic in that it assumed that a print device was luminous linear in XYZ and that matrix-based transforms would suffice. The objections to this lead to the introduction of LUT Look-up Tables for print devices alongside matrix transforms for more linear devices such as monitors. The ICC archicture, unlike the PostScript architecture, was invertible and bidirectional from the start in order to support repurposing requirements including proofing.
    In May 1994, Adobe acquired Aldus and thus blocked the QuickDraw GX graphics architecture that competed with PostScript. Aldus and Linotype-**** had already formed the Font Consortium to try to pressure Apple to make TrueType 2 cross-platform, but seeing the success Microsoft had with TrueType 1 and Microsoft applications that supported as well the source character string as WYSIWYG, Apple did not want to licence TrueType 2 whereas the file format of ColorSync 2 became the foundation of the International Color Consortium because Prof Dr Gerald Murch who headed the talks was convinced that Apple would never sell a single operating system on the argument that it was CIE managed from the ground up.
    On the world wide web you can find posts in developer discussions where David Opstad says that in his view Apple should not licence TrueType 2 in order to preserve the advantage for Apple. The ColorSync 2 file format did survive to be succesful, but the TrueType 2 file format hitherto has lingered with John Jenkins posting that Apple internally does not have high regard for the rival extension tables termed OpenType, but on the other hand it is plain to see that Apple has done an truly terrible job of evangelising its internationalisation models, let alone supporting them in Apple system software and Apple application software.
    In 1994, Dr Timothy Berners-Lee succeeded in setting up the World Wide Web Consortium and CEO's had to change perspective. I seem to remember William Gates as well as Dr John Warnock changing perspective at that point. But by then the starting point was unequal as in abstract archival space the condition is that you identify digital documents by their content of character information, and here Adobe's strategy that started by destroying the source character string was technically harakiri. So, now we have the problem of unknown amounts of viral type and unknown amounts of PDF that preserves the appearance but not the content.
    In 2005, Microsoft made it clear that Adobe Type 1 would not be supported under the Presentation Foundation of Microsoft Windows Vista and in 2006 Microsoft left the International Color Consortium, of which it was a co-founder. The disagreement was over the ColorSync 2/ICC model which defines determinate, runtime-independent rendering for colour-colourant transforms, which incidentally is the same mould as the TrueType 2 model for determinate, runtime-independent rendering. The main opponent of this development model has been Adobe, by the bye.
    This is a short summary, based on public posts with the people involved as well as private talks.
    In 2005, Adobe had Pamella Pfiffner write a twentieth anniversary book on the Publishing Revolution, but the book is a celebration of Adobe's business model and not a discussion of Adobe's drawing models for composition, drawing models for separation, and document models for pagination.
    References:
    http://www.unicode.org/history/unicode88.pdf
    http://lists.gnu.org/archive/html/freetype-devel/2001-10/msg00142.html
    http://www.mail-archive.com/[email protected]/msg15529.html

  • Using rownum in EJB-QL ..Pagination using CMP 2.1

    Hi ,
    Hope this is the right forum .. rather than JDBC .
    My requirement is to implement Pagination using EJB2.1 on weblogic with Oracle DB. This is for an application which is quite old system and is not ready yet to be migrated to EJB3.0. So we are struck with EJB2.1 at the moment.
    We are using EJB-QL to get Search result and now need to add Pagination logic in it. I can find weblogic.ejb.PreparedQuery.setMaxElements() API to specify the upper limit but what am looking for is a lower limit ..somthing like setFirstRow() ..
    Can it be done using CMP Entity Bean 2.1 .. EJBQL or someother way ?
    I have the sql for pagination but am not sucessful in translating it to EJB-QL
    select * from
    select /*+ FIRST_ROWS(n) */ a.*, ROWNUM rnum from
    (your_query_goes_here) a
    where ROWNUM <=:MAX_ROW_TO_FETCH
    where rnum >= :MIN_ROW_TO_FETCH;
    Thanks in advance ! I hope I get a solution soon ..
    Edited to get some answers !!!
    is it possible to use rownum in EJBQL ? I know rownum is specific to Oracle and my application will stay with Oracle. I get this exception
    "EJB QL compilation encountered error: [EJB:013042]The Identifier 'rownum' is neither a cmp-field nor a cmr-field. Re-examine your query."
    Edited by: user11305835 on Oct 12, 2009 10:48 PM

    Beevin
      Both two are not even validated,
      but with the first one as select max(c.id) from customer as c , in this case it is validated but while deploying it is error as , object must be return
      But when i saw  the ejb2.1 specification we can write this type of queries also ?
      Is it problem with was any thing
    Regards
    Somaraju

  • Pagination using JSP Presentations.

    Hi,
    I have implemented a search function in my JSP presentation. The search shows an array of bpm objects in a table and I want to put them in pages with a pagination like google does. I've tried with a taglib, importing the jar in my library and modifying the web.xml of the workspace. But it doesn´t work because I don't know How to use the bpm instances inside scriplets. How can I implement this functionality, is that possible?. I know that this kind of jsp works different than in a normal web application because we use the jsp fuego taglibrary.
    Thanks for your help,
    Guillermo

    About the fuego tags and scriplets, for example, I have created a group[] of BPMObjects, then I call my BPM Object method by an invoke instruction in my jsp. This method has the query and constructs the group of BPMObjects. My problem is when I try to manage this array with Java inside an Scriplet, because the pager taglib requires it.
    I understand how to use the rownum for pagination, my doubt in this case are the parameters that I have to send to BPM from the links of my jsp. ( First _1_ _2_ _3_ _4_ _5_ Last) . Do you have an example or documentation about how to send this parameters?
    You mencioned DynamicSQL, I used it to implement the SQL script. About this, I have decide what is better to implement when I call a SELECT. I know that the DynamicSQL improves performance because it sends the statement and runs in the database server. Another option is to use a "Parametric Query" but I don't know if the performance is the same than a DynamicSQL. On the other hand, I'm implementing Stored procedures and call them from bpm to improve performance, leaving the execution of the SQL Statement to the database server. It is successful when the stored procedure is an insert or update, but when the procedure is for SELECT, I don't know how to receive the cursor from the stored procedure and stores the values inside my BPM objects group[]. Do you have any idea about this?
    Thanks Mark,
    Guillermo
    Edited by: user9241304 on 07-abr-2010 15:41

  • Entity Framework Generated SQL for paging or using Linq skip take causes full table scans.

    The slq genreated creates queries that cause a full table scan for pagination.  Is there any way to fix this?
    I am using
    ODP.NET ODTwithODAC1120320_32bit
    ASP.NET 4.5
    EF 5
    Oracle 11gR2
    This table has 2 million records. The further into the records you page the longer it takes.
    LINQ
    var cnt = (from errorLog in ctx.ERRORLOGANDSERVICELOG_VIEW
                        select errorLog).Count();
                    var query = (from errorLog in ctx.ERRORLOGANDSERVICELOG_VIEW
                                 orderby errorLog.ERR_LOG_ID
                                 select errorLog).Skip(cnt-10).Take(10).ToList();
    Here is the query & execution plans.
    SELECT *
    FROM   (SELECT "Extent1"."ERR_LOG_ID"  AS "ERR_LOG_ID",
                   "Extent1"."SRV_LOG_ID"  AS "SRV_LOG_ID",
                   "Extent1"."TS"          AS "TS",
                   "Extent1"."MSG"         AS "MSG",
                   "Extent1"."STACK_TRACE" AS "STACK_TRACE",
                   "Extent1"."MTD_NM"      AS "MTD_NM",
                   "Extent1"."PRM"         AS "PRM",
                   "Extent1"."INSN_ID"     AS "INSN_ID",
                   "Extent1"."TS_1"        AS "TS_1",
                   "Extent1"."LOG_ETRY"    AS "LOG_ETRY"
            FROM   (SELECT "Extent1"."ERR_LOG_ID"                                  AS "ERR_LOG_ID",
                           "Extent1"."SRV_LOG_ID"                                  AS "SRV_LOG_ID",
                           "Extent1"."TS"                                          AS "TS",
                           "Extent1"."MSG"                                         AS "MSG",
                           "Extent1"."STACK_TRACE"                                 AS "STACK_TRACE",
                           "Extent1"."MTD_NM"                                      AS "MTD_NM",
                           "Extent1"."PRM"                                         AS "PRM",
                           "Extent1"."INSN_ID"                                     AS "INSN_ID",
                           "Extent1"."TS_1"                                        AS "TS_1",
                           "Extent1"."LOG_ETRY"                                    AS "LOG_ETRY",
                           row_number() OVER (ORDER BY "Extent1"."ERR_LOG_ID" ASC) AS "row_number"
                    FROM   (SELECT "ERRORLOGANDSERVICELOG_VIEW"."ERR_LOG_ID"  AS "ERR_LOG_ID",
                                   "ERRORLOGANDSERVICELOG_VIEW"."SRV_LOG_ID"  AS "SRV_LOG_ID",
                                   "ERRORLOGANDSERVICELOG_VIEW"."TS"          AS "TS",
                                   "ERRORLOGANDSERVICELOG_VIEW"."MSG"         AS "MSG",
                                   "ERRORLOGANDSERVICELOG_VIEW"."STACK_TRACE" AS "STACK_TRACE",
                                   "ERRORLOGANDSERVICELOG_VIEW"."MTD_NM"      AS "MTD_NM",
                                   "ERRORLOGANDSERVICELOG_VIEW"."PRM"         AS "PRM",
                                   "ERRORLOGANDSERVICELOG_VIEW"."INSN_ID"     AS "INSN_ID",
                                   "ERRORLOGANDSERVICELOG_VIEW"."TS_1"        AS "TS_1",
                                   "ERRORLOGANDSERVICELOG_VIEW"."LOG_ETRY"    AS "LOG_ETRY"
                            FROM   "IDS_CORE"."ERRORLOGANDSERVICELOG_VIEW" "ERRORLOGANDSERVICELOG_VIEW") "Extent1") "Extent1"
            WHERE  ("Extent1"."row_number" > 1933849)
            ORDER  BY "Extent1"."ERR_LOG_ID" ASC)
    WHERE  (ROWNUM <= (10))
    | Id  | Operation              | Name                   | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT       |                        |    10 | 31750 |       |   821K  (1)| 02:44:15 |
    |*  1 |  COUNT STOPKEY         |                        |       |       |       |            |          |
    |   2 |   VIEW                 |                        |  1561K|  4728M|       |   821K  (1)| 02:44:15 |
    |*  3 |    VIEW                |                        |  1561K|  4748M|       |   821K  (1)| 02:44:15 |
    |   4 |     WINDOW SORT        |                        |  1561K|  3154M|  4066M|   821K  (1)| 02:44:15 |
    |*  5 |      HASH JOIN OUTER   |                        |  1561K|  3154M|       |   130K  (1)| 00:26:09 |
    |   6 |       TABLE ACCESS FULL| IDS_SERVICES_LOG       |  1047 | 52350 |       |     5   (0)| 00:00:01 |
    |   7 |       TABLE ACCESS FULL| IDS_SERVICES_ERROR_LOG |  1561K|  3080M|       |   130K  (1)| 00:26:08 |
    Predicate Information (identified by operation id):
       1 - filter(ROWNUM<=10)
       3 - filter("Extent1"."row_number">1933849)
       5 - access("T1"."SRV_LOG_ID"(+)="T2"."SRV_LOG_ID")

    I did try a sample from stack overflow that would apply it to all string types, but I didn't see any query results differences.  Please note, I am having the problem without any order with or where statements. Of course the skip take generates them.  Please advise how I would implement the EntityFunctions.AsNonUnicode method with this Linq query.
    LINQ
    var cnt = (from errorLog in ctx.ERRORLOGANDSERVICELOG_VIEW
                        select errorLog).Count();
                    var query = (from errorLog in ctx.ERRORLOGANDSERVICELOG_VIEW
                                 orderby errorLog.ERR_LOG_ID
                                 select errorLog).Skip(cnt-10).Take(10).ToList();
    This is what I inserted into my model to hopefully fix it.  FROM:c# - EF Code First - Globally set varchar mapping over nvarchar - Stack Overflow
    /// <summary>
    /// Change the "default" of all string properties for a given entity to varchar instead of nvarchar.
    /// </summary>
    /// <param name="modelBuilder"></param>
    /// <param name="entityType"></param>
    protected void SetAllStringPropertiesAsNonUnicode(
       DbModelBuilder modelBuilder,
       Type entityType)
       var stringProperties = entityType.GetProperties().Where(
      c => c.PropertyType == typeof(string)
       && c.PropertyType.IsPublic
       && c.

Maybe you are looking for

  • Quick Guide to install OCS on Redhat AS 2.1

    If you're having problems installing OCS check this link. How to install 9ias on Linux quick guide (by Orlando Kelly)

  • Awesome + pcmanfm :: can't open pcmanfm if it's the only client

    Hello, If you are running awesome WM + pcmanfm, can you repeat this ? : - go to a fresh tag with no clients - open pcmanfm with your keyboard shortcut Does it fail ? Me it fails. BUT - go to a tag with already open clients - open pcmanfm with your ke

  • BI Discoverer install problem

    I am a new Oracle user, and so admit ignorance to a high degree. There is a 10g database instance to which I would like to connect via Discoverer. Since it's a prototype database, I have downloaded the BI 10g files, and am attempting to install them

  • How to activate Server 2012 Datacenter VMs using a DreamSpark retail key?

    Hello, I got a Windows Server 2012 Datacenter Retail key, and I was wondering how I should activate my virtual machines in order to have them recognize that they are in fact, virtual machines and that I should get unlimited activations. From what I'v

  • Query or Procedure?

    Hi all, i try to explain my need by an example because i dont know how to tell it. i have a table like this : product | year  | quantity paper   | 2008  | 147  cd      | 2008  | 258  paper   | 2009  | 369  cd      | 2009  | 456  end so on ... 2007 20