Displaying bulky ResultSet page wise, in jsp!
Hello Guyes,
I am back to the most asked problem again! I have a massive resultset of 5,000 records and I want to display it page wise in my jsp with giving 'Next' and' Back' buttons. I can open the resultset on each page as it will kill my application and server!
Pls help and give a simple solution in which I can do it!
It is very urgent!
Thanks,
- Rahul
USE a Scrollable ResultSet object and put it in the session. Keep a variable that identifies where in the resultset ur pointer is at any point of time.
Scrollable ResultSets are a feature only available with JDBC 2.0 onwards... so make sure u have THAT first.
Create a Statement like this...
Statement st =
con.createStatement(ResultSet.SCROLLABLE);
Then run the query n store it in the resultset
ResultSet rs = st.executeQuery(sql);
Then move ur pointer to any record u want with methods present in the ResultSet interface:
relative(int rows) that takes you 'rows' rows ahead.
absolute(int row) that takes your pointer to the 'row'th ROW.
Make sure u use 'refreshRow()' so u have the latest content at any point of time. This refreshes the contents in that row. there is also something called refresh() BUT THAT would minimise performace.
Store this resultset object in the session and call it in each page u want starting with the record number u want to. !!
Hope this helps... aXe!
Similar Messages
-
How to display a website page in a JSP textarea ?
Hi all...
I am developing an application where i need to display a web page in a text area, the same
way it gets displayed in a web browser (like IE, mozilla). After that i will read the page and will extract text from it for further processing.
My JSP contains a text field where i can type the URL address (say http://www.yahoo.com)
What i want is, when i will click a submit button, the web page at the given URL should be retrieved and should get displayed in the textarea that is present on the same page. (It should be displayed in the same way as it
gets displayed on the browser.)
Is that possible ? Can it be done using some other ways ?
It is a small application that i am developing using struts 1.1.
Can some one help in this regard ?
Thanks in advance..
Regards
PrasadThanks BalusC..
I have used iframe now and it is working for the URL specified.
But even then i have couple of doubts..
1. How should i use the iframe if i want to navigate on the further web pages within the same frame ?
(e.g. if with URL say http://www.yahoo.com, the home page is displayed in the frame, now if i click any link
on the page the next navigation should occur within given frame only.)
2. Can i read the page from the frame and write the text into some file say text file ?
Hope you understand my problem...
Thanks a lot..
Prasad -
Displaying Same ResultSet Twice In A JSP Page
I have a table that lists team names in my database. I'm trying to create a page with 2 dropdown boxes where each lists all the teams in the league (in other words, the data read in from the table). I got the first dropdown box to populate w/ this info. My question is about the 2nd dropdown box:
Since I already have the ResultSet from the 1st dropdown, I would think it would be a waste to make another DB-read to fill in the 2nd dropdown. However, when I tried to call ResultSet.first() it gave me the error that it was TYPE_FORWARD_ONLY. I checked the documentation for Connection and it looks like there are some overloaded methods for createStatement. However, the API documentation (see below) is pretty confusing. I'm not sure what "resultSetConcurrency" or "resultSetHoldability" I need if I just want to read the same data twice. Can someone point me in the right direction?
Statement createStatement(int resultSetType, int resultSetConcurrency)
Creates a Statement object that will generate ResultSet objects with the given type and concurrency.
Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability)
Creates a Statement object that will generate ResultSet objects with the given type, concurrency, and holdability.I am also having a very similar problem.
I am having a table having 20 fileds.some of them r to be displayed in one table
others in some other table.
for this i am using a bean which returns a resultset which is then used in jsp page
for display.But i have to call the javabean method twice which fires the query & returns the resultset.
I cannot store so many fileds with so many rows of values in list of objects also i do not want to
fire query twice.
rs.movefirst() does not work, so what should i do. -
Hello,
I have a requirement to display the limited records from the query which returns large number of records.
Assume that select * from orders order by order_id is giving me 1000 rows.
now i have to do a filter, display records from 25 to 50 or 50 to 150 etc...
i can pass the start range and number of records to be displayed as an input parameter to the query.
above example, start range is 25 and number of records should display is 25 from 25th record to next 25 records. (something like , select * from orders order by order id where rownum between 25 and 50)
again, start range is 50 and number of next records should display is 100 starting from 50th record to next 150 record.(something like , select * from orders order by order id where rownum between 50 and 150)
how can i achive this using a query. remember the start range and number of display count i can pass as an input to the query.
Appreciating the great help...
good dayAre you really sure that you need PARTITION BY clause in the row_number() function?
SQL> var p_start number
SQL> var p_range number
SQL> exec :p_start := 2
PL/SQL procedure successfully completed.
SQL> exec :p_range := 6
PL/SQL procedure successfully completed.
SQL> SELECT *
2 FROM (SELECT a.*, rownum rn
3 FROM emp a
4 ORDER BY sal)
5 WHERE rn BETWEEN :p_start AND :p_start + :p_range
6 /
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO RN
7900 JAMES CLERK 7698 03-DEC-81 950 1 30 8
7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1 30 5
7844 TURNER SALESMAN 7698 08-SEP-81 1500 1 30 7
7499 ALLEN SALESMAN 7698 20-FEB-81 1600 1 30 6
7782 CLARK MANAGER 7839 09-JUN-81 2450 1 10 3
7698 BLAKE MANAGER 7839 01-MAY-81 2850 1 30 2
7566 JONES MANAGER 7839 02-APR-81 2975 1 20 4
7 rows selected.
SQL> SELECT *
2 FROM (SELECT a.*, row_number() over (order by sal) rn
3 FROM emp a
4 ORDER BY sal)
5 WHERE rn BETWEEN :p_start AND :p_start + :p_range
6 /
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO RN
7900 JAMES CLERK 7698 03-DEC-81 950 1 30 2
7876 ADAMS CLERK 7788 12-JAN-83 1100 1 20 3
7521 WARD SALESMAN 7698 22-FEB-81 1250 1 30 4
7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1 30 5
7934 MILLER CLERK 7782 23-JAN-82 1300 1 10 6
9999 MILLER CLERK 7782 23-JAN-82 1300 1 10 7
7844 TURNER SALESMAN 7698 08-SEP-81 1500 1 30 8
7 rows selected.
SQL>
SQL>Cheers
Sarma. -
Database query ResultSet from servlet to JSP page
Hi there,
I have an Access 2000 database. I am running Apache and Tomcat on Windows Me.
I would like to know if it is possible for me to use a Servlet to search the
database (I know this bit is possible!), but then I would like the servlet to
forward to a jsp page which will then display the ResultSet that the servlet has
retrieved, i.e. when forwarding from a servlet to a jsp, is it possible for the
jsp page to have access to the servlet's data? I know that it gets access to
the response and request objects, but what about a ResultSet?
Sorry it this sounds a little silly - i am a bit of a newbie.
Thanks in advance for your help,
SJ
HttpServletRequest.setAttribute let's you share data for a particular
request. When you call forward you can store the resultset in the request.
Make sure your JSP does close the result set though, because what you are
trying to do doesn't sound good :)
If you want to share data across the session, take a look at the HttpSession
object.
read through the servlet specification, it is fairly easy to read and will
give you all the info you need
Filip
~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[email protected]
www.filip.net
"SJ" <[email protected]> wrote in message
news:[email protected]...
>
> Hi there,
>
> I have an Access 2000 database. I am running Apache and Tomcat on Windows
Me.
> I would like to know if it is possible for me to use a Servlet to search
the
> database (I know this bit is possible!), but then I would like the servlet
to
> forward to a jsp page which will then display the ResultSet that the
servlet has
> retrieved, i.e. when forwarding from a servlet to a jsp, is it possible
for the
> jsp page to have access to the servlet's data? I know that it gets access
to
> the response and request objects, but what about a ResultSet?
>
> Sorry it this sounds a little silly - i am a bit of a newbie.
>
> Thanks in advance for your help,
>
> SJ
-
Jsp files displaying a blank page
Hi I have integrated tomcat5 and Apache 2 using mod_jk in Fedora 7.
I had no problem starting Tomcat5 and Apache 2 server. The problem is when I tried to browse my
jsp file.. it display a blank page. I try to see the log files but there is no error related to this.
here is my jsp file..
<%@ page contentType="text/html; charset=iso-8859-1" language="java" errorPage="" %>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Hello World JSP</title>
</head>
<body>
<h1><% out.println(" Hello world JSP!"); %></h1>
</body>
</html>please help me.. Thanks in advance for your help..here is my new HelloWorld.jsp..
<%@ page contentType="text/html; charset=iso-8859-1" language="java" errorPage="" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Hello World JSP</title>
</head>
<body>
<h1><% out.println(" Hello world JSP!"); %></h1>
</body>
</html>
it still display a blank page.
here is my context path..declared in server.xml
<Context path="" docBase="/var/www/myweb" debug="0" reloadable="true"/>
My HelloWorld.jsp is save in /var/www/myweb
what is the problem? thanks.. -
Page wise display through a query
hi all,
i have a 3 records displayed block and i have more than 30 rows/records from a select query.
i want display all the data page wise one by one by clicking specified 4 buttons .
i have 4 buttons 1st for first page, 2nd for nest page, 3rd for last page and 4th for previous page.
how can i do this page wise query display through programming in oracle forms 10g.
for a query you can take (select * from emp;)
can anybody help me to do this.Base your block on query, execute-query and scroll using following:
For first and last page buttons :
first_record;
last_record; Next page and Prev page requires little more coding...
Next Page:
go_record(:system.cursor_record + get_block_property('block',RECORDS_DISPLAYED ));Prev Page:
go_record(get_block_property('block',TOP_RECORD)- get_block_property('block',RECORDS_DISPLAYED ));Also take a look in forms help on scroll_up , scroll_down buit-in. They do not do exactly page up/down, but may be it's good enough for you
Make sure buttons set as Mouse Navigate=No
Edited by: Slava Natapov on Apr 23, 2010 1:25 PM -
Struts -- LogonView.jsp Displays A Blank Page
I am using the Struts. My LogonView.jsp displays a blank page. I have no idea why nothing is written while the MessageResources.properties file is found. (I would have gotton HTTP Status 500 if the MessageResources.properties is not found or the value of the corresponding key in the bean:message tag cannot be picked up.)
Here is my MessageResources.properties file:
button.submit=Send for Verification
button.reset=Clear the Form
logonForm.userId=User Name
logonForm.password=Password
logonForm.confirm_password=Confirm Password
logonForm.emailAddress=E-mail Address
logonForm.hear_from_us=How did you hear about the StudentScholar.org?
logonForm.subscriber=Subscribe to the StudentScholar.org newsletter
logonForm.send_updates=Occassionally send me updates
logonForm.fname=First Name
logonForm.lname=Last name
logonForm.streetAddress=Street Address
logonForm.city=City
logonForm.state=State
logonForm.zip=Zip Code
logonForm.country=Country
logonForm.phone=Telephone
logonForm.degree_type=Degree Type(s)
logonForm.major=Majoring Field(s)
logonForm.cumulativeGPA=Cumulative GPA
logonForm.collegeID=College ID
logonForm.permissionID=Permission ID
logonForm.last_logon_date=Last Logon Date
heading.logon=<H2>Enter your user information</H2>
title.logon=Logon Screen
error.invalid.logon=<li>The User ID and/or Password are invalid. Please try again.</li>
errors.header=<h3><font color="red">Validation Error</font></h3>You must correct the following error(s) before proceeding:<ul>
title.mainmenu=Welcome
heading.mainmenu=<H1>Welcome!</H1>
label.userType=<H2>You are authorized to use this system as a</H2>
errors.prefix=<LI>
errors.suffix=</LI>
errors.footer=</UL><hr>
errors.minlength={0} can not be less than {1} characters.
errors.required={0} is required.
errors.date={0} is not a date.
errors.double={0} must be an double.
errors.email={0} is an invalid e-mail address.Here is my LogonView.jsp:
<!-- LogonView.jsp -->
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<html>
<head><title><bean:message key="title.logon" /></title>
<html:javascript formName="logon" />
</head>
<body bgcolor="white">
<bean:message key="heading.logon" />
<html:errors />
<html:form action="/logon" onsubmit="return validateLogon(this)" >
<table border="0" width="100%">
<tr>
<th aligh="right">
<bean:message key="logonForm.userId" />:
</th>
<td align="left">
<html:text property="userId" size="10" />
</td>
</tr>
<tr>
<th aligh="right">
<bean:message key="logonForm.password" />:
</th>
<td align="left">
<html:password property="password" size="10" />
</td>
</tr>
<tr>
<th aligh="right">
<bean:message key="logonForm.confirm_password" />:
</th>
<td align="left">
<html:password property="confirm_password" size="10" />
</td>
</tr>
<tr>
<th aligh="right">
<bean:message key="logonForm.emailAddress" />:
</th>
<td align="left">
<html:text property="emailAddress" size="25" />
</td>
</tr>
<tr>
<th aligh="right">
<bean:message key="logonForm.hear_about_us" />:
</th>
<td align="left">
<html:text property="hear_about_us" size="25" />
</td>
</tr>
<tr>
<th aligh="right">
<bean:message key="logonForm.subscriber" />:
</th>
<td align="left">
<html:checkbox property="subscriber" />
</td>
</tr>
<tr>
<th aligh="right">
<bean:message key="logonForm.send_updates" />:
</th>
<td align="left">
<html:checkbox property="send_updates" />
</td>
</tr>
<tr>
<th aligh="right">
<bean:message key="logonForm.fname" />:
</th>
<td align="left">
<html:text property="fname" size="15" />
</td>
</tr>
<tr>
<th aligh="right">
<bean:message key="logonForm.lname" />:
</th>
<td align="left">
<html:text property="lname" size="15" />
</td>
</tr>
<tr>
<th aligh="right">
<bean:message key="logonForm.streetAddress" />:
</th>
<td align="left">
<html:text property="streetAddress" size="50" />
</td>
</tr>
<tr>
<th aligh="right">
<bean:message key="logonForm.city" />:
</th>
<td align="left">
<html:text property="city" size="15" />
</td>
</tr>
<tr>
<th aligh="right">
<bean:message key="logonForm.state" />:
</th>
<td align="left">
<html:text property="state" size="25" />
</td>
</tr>
<tr>
<th aligh="right">
<bean:message key="logonForm.zip" />:
</th>
<td align="left">
<html:text property="zip" size="10" />
</td>
</tr>
<tr>
<th aligh="right">
<bean:message key="logonForm.country" />:
</th>
<td align="left">
<html:text property="country" size="25" />
</td>
</tr>
<tr>
<th aligh="right">
<bean:message key="logonForm.phone" />:
</th>
<td align="left">
<html:text property="phone" size="15" />
</td>
</tr>
<tr>
<th aligh="right">
<bean:message key="logonForm.degree_type" />:
</th>
<td align="left">
<html:textarea property="degree_type" rows="9" cols="90" />
</td>
</tr>
<tr>
<th aligh="right">
<bean:message key="logonForm.major" />:
</th>
<td align="left">
<html:text property="major" size="15" />
</td>
</tr>
<tr>
<th aligh="right">
<bean:message key="logonForm.cumulativeGPA" />:
</th>
<td align="left">
<html:text property="cumulativeGPA" size="4" />
</td>
</tr>
<tr>
<th aligh="right">
<bean:message key="logonForm.collegeID" />:
</th>
<td align="left">
<html:text property="collegeID" size="5" />
</td>
</tr>
<tr>
<th aligh="right">
<bean:message key="logonForm.permissionID" />:
</th>
<td align="left">
<html:text property="permissionID" size="5" />
</td>
</tr>
<tr>
<th aligh="right">
<bean:message key="logonForm.last_logon_date" />:
</th>
<td align="left">
<html:text property="last_logon_date" size="15" />
</td>
</tr>
<tr>
<td align="right">
<html:submit>
<bean:message key="button.submit" />
</html:submit>
</td>
<td align="right">
<html:reset>
<bean:message key="button.reset" />
</html:reset>
</td>
</tr>
</table>
</html:form>
</body>
</html>Any feedback. Your help would be much appreciated.
-
How to display page wise totals in Smartforms
hi,
I created Tax Invoice for SD my quetion is i have 10 items 5 items are displaying in first page and rest of 5 items are displaying next page.
in first page 5 items i have to display the total amount in first page and same like second page also please help me.
regardsHi,
Create two global data variables called pag_total & currentpage and initialize currentpage as 1.
if currentpage <> sfsy-page.
pag_total = 0.
pag_total = pag_total + column value(which values u want to add).
currentpage = sfsy-page.
else.
pag_total = pag_total + column value(which values u want to add).
endif.
Write these lines in main area table row of that particular column cell and store the SFSY-page value also in a global variable(currentpage).
Then write the pag_total variable in the footer.
Thanks,
Venkat -
I tried to display gif image from oracle to jsp but nothing appear
i tried to display image from oracle DB to jsp directly without using file processing , and i used Servlet and jsp , Servlet to get image from DB and jsp to use <img> tag , when i Run Servlet code
the image appaer on Microsoft Photo Editor , and when i run jsp the image dose not appear on jsp page , so please anyone has an idea about this broblem ,send the soluation or any information to my e-mail [email protected] , and I'll thankful about your help.
the Servlet and jsp code are below .
thank for your help
Servlet:
import java.io.InputStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.PrintWriter;
import java.io.IOException;
public class Servlet extends HttpServlet
public void init(ServletConfig config) throws ServletException
super.init(config);
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
response.setContentType("image/gif");
int id = Integer.parseInt(request.getParameter("no"));
// int id = 2 ; when Run Servlet .
ResultSet rs = null;
Connection Lcon = null;
String stmt = " select Image from ImageTable where lmage_id ="+id;
Statement sm = null;
String data1 ="";
try
Lcon = getConntcion();
sm = Lcon.createStatement();
rs = sm.executeQuery(stmt);
if(rs.next())
InputStream in = rs.getBinaryStream(1);
ServletOutputStream sout = response.getOutputStream();
int c;
while((c=in.read())!= -1)
sout.write(c);
in.close();
sout.flush();
sout.close()
}catch(Exception e)
System.out.println("error in selectValue the error is "+e);
finally
rs .close( );
sm .close( );
Lcon.close( );
public Connection getConntcion()
Connection con = null;
try{
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
con = DriverManager.getConnection(",,,,,,,, DB Info ,username and password ,,,,,,,,,,,");
}catch(Exception e)
System.out.println("error in connection the error is "+e);
return con;
Jsp code :
<%@ page contentType="text/html"%>
<html>
<head
</head>
<title> testing image </title>
<body>
<form>
<img src="servlet/Servlet?no=2">
</form>
</body>
</html>InputStream in = rs.getBinaryStream(1);
byte[] image= null;
ByteArrayOutputStream baos = new ByteArrayOutputStream();
byte[] buffer = new byte[8192];
int bytesRead = 0;
while ((bytesRead = in.read(buffer, 0, 8192)) != -1)
baos.write(buffer, 0, bytesRead);
image= baos.toByteArray();
in.close();
ServletOutputStream sout = response.getOutputStream();
if (image != null)
sout.write(image);
sout.flush();
} -
XML Publisher - Page Wise Total
We are facing problem in incorporating ‘Page Wise Total’ in Invoice Report - Invoices print at format CAP_ETA for Germany. It an XML Report and its output appear in PDF format. As per the new requirement sent by L1 team, we are required to make changes in RTF, to show ‘Page Wise Total’.
We have worked on this enhancement but unable to display ‘Page Wise Total’. We are able to display Sum Total of all the records appeared in three different blocks of records for that particular page at the end of the footer of Page, but not yet able to SUM UP total of these three Sum Total of three different blocks on that particular page.
For e.g. First page of my XML Report display three different Block of data as shown below with Subtotal of 38,600.00, 4,453.47 for 1st and 2nd Block respectively, but 3rd block records appeared partially on the first page and remaining appeared on the next page. So My Report should display ‘Page Wise Total’ or ‘Amount Forward’ as 52853.47, which sholud be carried forward to next page as ‘Amount Forward’ - 52853.47. The next page/second page will dispaly the remaing line records of the 3rd block and Subtotal( Please see attachment New_Layout_Invoice_TUM_English.doc)
Name Description Unit Quantity Price Amount in Euro
Rösner Fees Day 17.00 1,400.00 23,800.00
Schreiber, Clemens Fees Day 2.00 1,400.00 2,800.00
Slegers, Arnd Fees Day 4.00 1,400.00 5,500.00
Weiler, Andreas Fees Day 4.00 1,400.00 6,400.00
Subtotal: 27.00 38,600.00
Römer, Michael Expenses 2,253.79
Schreiber, Clemens Expenses 157.69
Slegers, Arnd Expenses 519.78
Weiler, Andreas Expenses 1,522.21
Subtotal: 4,453.47
Rösner, Michael Travel expenses 2,400.00
Schreiber, Clemens Travel expenses 2,000.00
Siegers, Arndt Travel expenses 1,800.00
Weiler, Andreas Travel expenses 2,000.00
Marek, Gruchala Travel expenses 1,600.00
Amount forward 52853.47
As mentioned above we are able to show independently three different Page Wise Total of each of these blocks by using syntax:
<?add-page-total:block1amount;’L_AMOUNT’?>, this syntax is used to sum up all the line records appeared in a block for a particular page and
<?show-page-total: block1amount;’#####.##0,000’;’ ###.##0,000)’?> is used to display the Sum Total calculated by above syntax.
But we are not able to further sum up all these Page Wise Total of different blocks.
Please find attached copy of RTF file from Production (V18_CAR253E1), copy of RTF (V18_CAR253E1_TEST Where we are testing these new changes) and .out XML output file.
I need help on this issue
Thanks & Regards,
Praveen S Negi
[email protected]
91-09930799325Hi Praveen,
You got the solution for page total in Invoice Report in XML publisher report.
Can you pls help regarding the same, i want to display total amount in the invoice report.
Thanks in advance,
Sunny -
How can I display the same page when I'll press
i have a jsp page. It contains user name & password.
and a link like SIGNOUT COMPLETELY. when i press the back button it should show only this page.
You have noticed one thing that when u sign out from YHAOO MAIL then a page is displayed
USERNAME : [email protected]
PASSWORD :XXXXXXXXXX
SIGNOUT COMPLETELY
when this page is dispalyed and u press the back button of the browser
it displays the same page. How it happens?Kindly neglect the previous post.....
Okay check something like this
1).maintain either a HttpSessionListener or a session flag try to checkout whether the user is active or else close the PrintWriter.
2).Prevent caching of the webpage by using customary meta tag or by response,setHeader("Cache-Control","no-cache");
way...
Guess tht shud work..... -
How to display a stack trace in a jsp error mage
What is the best way to display a stack trace in a JSP error page?
I use "${pageContext.exception.message}" for the exception message. Is there a comparable JSTL expression for the stack?Cool! it totally works.
Thanks for pointing me to this post. -
Urgent:page wise total in smartforms
hi,all
How to do page wise total in smartforms ?
use table in smartforms for summary in pagebreak
ex. page1
10 (line 1)
20 (line 2)
30 (line 3)
total 100
page 2
40 (line 1)
50 (line 2)
total 50
Total in page 1 incorrect = line1(page1) + line2(page1) + line3(page1) + line1 (in page2)
Total in page 2 inccorrect = line2 (in page2) .
please help me guys to solve this problem..r u printing the internal table data using the TABLE node then--> in the Calculation tab u can do this.
first create a variable in Global difinations-->global data tab.(ex v_tot)
then in the TABLE>calculations TAB> 1select ->sum then 2nd colun>give the field name which u want to calculate (ex-wa_itab-netwr) in the Target Filedname tab> give the varialbe u have declared for the total(ex v_tot). in TIME colums select AFTER theLOOP...
then in theTABLE>footer>inset a line display the variable(total u r using).here
after the the printing the total..->create a program lines> cleat the v_tot... why u need to clear this is.... u want to display only the total value which are displaying in the current page... after printing this v_tot... clear this... so that in the next page it start totaling the freshly...
lem me know if u have any clarifications.
u can calculate as the above way for all the 6 fields.
please Avoid postin duplicate threads -
Unable to display SSHR Review Page when I click on a URL in a Notification
Hi,
We have a requirement to display the Review Page of the Employee Self Service Manage Payroll Payments function in a notification. I have copied the original seeded workflow process and added the notification step. However, when the notification is generated and the link to view the Review page is clicked, we are receiving an error. Why is this? Is this a bug? We have defined the function and workflow attributes correctly.
The message has an attribute called 'Click here to view bank account details'. That attribute has a value of :
JSP:/OA_HTML/OA.jsp?akRegionCode=PAY_PAYMENTS_REVIEW_SS&akRegionApplicationId=800&OAFunc= XXTEST_PAY_EMP_PAYMENTS&NtfId=-&#NID-&retainAM=Y
When I click on the URL in the notification the error page says *'ERROR: Cannot Display Page'* and has the following url in the address bar:
https://erp1.theglobalfund.org/OA_HTML/OA.jsp?akRegionCode=PAY_PAYMENTS_REVIEW_SS&akRegionApplicationId=800&OAFunc=%20XXTEST_PAY_EMP_PAYMENTS&NtfId=244856&retainAM=Y&dbc=DTGFUI&transactionid=801240504&oapc=24&oas=s1HtmV0oSaQRqDRTjyQ3fg..
Can somebody please advise. I also have a .doc with full details of setup done but cannot see how to attach it to this thread message.
Thanks,
Mark.No, that was not the answer. Yes I had a space in the URL, but when I removed the space I still get the same error:
Error: Cannot Display Page
You cannot complete this task because one of the following events caused a loss of page data:
Your login session has expired.
A system failure has occurred.
This is the URL in the window:
https://erp1.theglobalfund.org/OA_HTML/OA.jsp?akRegionCode=PAY_PAYMENTS_REVIEW_SS&akRegionApplicationId=800&OAFunc=XXTEST_PAY_EMP_PAYMENTS&NtfId=250834&retainAM=Y&dbc=DTGFUI&transactionid=757523217&oapc=27&oas=0W2JZORcKVD83Md4LxaXsQ..
NOTE: When I have the attribute value as the following (with no akRegionCode parameter) the Manage Payroll Payments screen opens in a new window...just not the review page of that function :
JSP:/OA_HTML/OA.jsp?&akRegionApplicationId=800&OAFunc=XXTEST_PAY_EMP_PAYMENTS&NtfId=-&#NID-&retainAM=Y
So it seems to be something to do with displaying that region parameter and value : akRegionCode=PAY_PAYMENTS_REVIEW_SS
Can somebody please help?
Thanks.
Edited by: user12053943 on Jul 6, 2010 6:33 AM
Maybe you are looking for
-
How can I work on a document from both work and home when....?
I have CS4 for the Mac at home and CS5 for Windows on my work computer? I keep the work on a cloud server and need to be able to access it and work on it from either location. Any Ideas?
-
HT1218 What do I need to do to use the Airplay feature with Jango Radio from my iPhone or Mac?
What do I need to do to use the Airplay feature with Jango Radio from my iPhone or Mac?
-
Experts: On the BI JAVA (i.e. EP for the BI ), usually BEX portfolio is in the KM content. However, in one of my BI Java system, I cannot find the BEX portfolio in KM content. I searched some other tabs but also failed to find it. could you please
-
OS4 Backup taking forever?
Trying to do the upgrade on my 3G iPhone. Started last night and cancelled after about 2:45 of "backing up". Trying again tonight (2 hours so far). Just like last night, the status bar has barely moved and looks like about 5% done. Is this normal? Is
-
HT4623 when i update iPhone 4S i can open my app and if i m open it its will close why?
when i update iPhone 4S i can open my app and if i m open it its will close why?