Pass a parameter through hyperlink
I have two reports (A and B)with .pdf format. (no problem with individual)
A report:employee names are listed by department. Here is employee_ID field
B report:show all information by parameter emplyee_ID
I want to do;
If I click employee_id(007) in A report with .pdf file format, pop up B report .pdf file based on employee_id: 007
I use hyperlink in the employee_id property, it does not work completely. B report pops up but there is no information based employee_id:007.
I think that I miss use of the hyperlink with parameter(employee_id).
here is my hyperlink
http://servername/rwservlet?&p_employee_id=007&module=B.rdf+desformat=pdf+userID=tiger/manager
error message:REP-110: Unable to open file
would you help me
yes, it is
if I use
http://servername/rwservlet?module=B.rdf+desformat=pdf+userID=tiger/manager
in hyperlink property in A.rdf,
B.rdf report pops up.
however,
if I use
http://servername/rwservlet?&p_employee_id=007&module=B.rdf+desformat=pdf+userID=tiger/manager
it does not work(error message above)
Similar Messages
-
Passing query parameter through xcelsius 2011 at run time
I am using reporting service as a web connectivity and I am trying to pass the query parameter at run time from the dashboard. While executing the xcelsius at first time it is working well with the default value but after passing the parameter from combo box, the data is not loading. It is not returning anything except the field name.
I am new to this xcelsius. Your help will be really appreciated.
Thanks.Hi,
if you do the following thing,i think it may be helpfull,
First select Data in menubar>Connection->select required connection>select the useage option in connection definition window>give trigger cell value as combo box destination cell.
Thanks,
Ramana -
Having trouble passing a parameter through a button, php
Hello all,
I'm new to the forum and to web design and Dreamweaver, please go a little easy on me!
I'm currently in the process of making a fantasy football website in Dreamweaver and phpmyadmin. When a user visits the site and wants to enter the competition they click register which brings up the register page. There they can fill out the form containing details username, password etc. When they click the register button at the bottom of the form their details are put into the users table in the database and they are passed onto the next page where they are asked to pick their team. The team details are kept in a seperate table in the database.
What i'm trying to do is pass the username that is created in the register form to the pick team page as a parameter.
Currently the code for my button is as follows:
<input type="submit" value="Insert record" />
and the sql for after insert goto is currently?
$insertGoTo = "pickteam.php";
In another section of the site i have passed a parameter with a link as follows:
<a href="editgoalkeeper.php?gkid_gk=<?php echo $row_rs_viewgks['gkid_gk'];?>">
but i'm not sure how to pass a parameter using a submit button, can anyone help me please?Please pardon my ignorance, i'm still very new to web development and Dreamweaver.
Please could you give me an example of how i would go about coding the above? -
Passing a parameter through user exit
Hi all,
I am adding a screen to the user exit ZXHIV01 and want the user to fill the organizational detail area on this screen.
However, I cannot get the value of the organizational code (OBJID) from the previous screen (1000 create).
I have tried GET/SET parameters but it did not work.
Should I do something different while editing a user exit?
Thanks in advance,
Dilek ErsöHi Dilek,
try using field-symbols.....it will work....
If the hint is useful Say thanks by reward .
Regards,
Prabhu Rajesh -
Pass Parameter Through REST API into PivotChart in Excel Services 2013
Is it possible to pass a parameter through the REST API into the filter of a PivotChart and return a filtered view of the chart? I've figured it out mechanically, and can pass the parameter in - but the chart doesn't refresh with the new filter.
For the record, I've looked at all of the online documentation on passing parameters and you'll note those all depict passing parameters into a table - not a PivotTable.
Curious if Excel Services 2013 has made any progress in that regard.
Thanks in advance...
Andrew Lavinsky [MVP] Blog: http://azlav.umtblog.com Twitter: @alavinskyObviously it's not working for pivot tables/charts. Just found this in the SharePoint logs:
04/06/2014 22:21:36.01 w3wp.exe (0x0920)
0x1428
Excel Services Application Excel Calculation Services
d64g Medium
UserOperation.Dispose: Disposing Microsoft.Office.Excel.Server.CalculationServer.Operations.RestChartPngOperation, WebMethod: ProcessRestRequest.
09ae849c-bf78-50fd-d9b9-915fd27bf5e1
04/06/2014 22:21:36.01 w3wp.exe (0x0920)
0x1428
Excel Services Application Excel Calculation Services
ecc4 Medium
ExcelServiceBase.EndProcessOperation: Found an exception on the AsyncResult of an operation which has not been departed from. Exception is Microsoft.Office.Excel.Server.CalculationServer.ExcelServiceBase+EcsFaultException:
Cannot change cells in a PivotTable report. (Fault Detail is equal to Microsoft.Office.Excel.Server.ExcelServerMessage).
09ae849c-bf78-50fd-d9b9-915fd27bf5e1
Disappointing... -
Pass parameter through standard page "import xml content and actions"
Dear Portal experts,
As you know, a standard portal page is configured to allow the import of XML file. It is located in the portal in the path system admin -> transport -> xml content and actions -> import
I configured a quick link u201Cimportu201D to the page so now the link http://myserver:port/irj/portal/import allows me to access directly to this screen.
What I would like to do now is to pass the parameter related to u201Cfile nameu201D through this screen meaning that I would like that http://myserver:port/irj/portal/ import/filename=C:\test.xml fills automatically the fields u201CXML fileu201D with C:\test.xml
Please do you know how to achieve this ?
Thank you very much and regardshi,
@Maksim :
When user launch an URL like http://myserver:port/irj/portal/ import/*filename=C:\test.xml, he is requested to provide username and password; as this link is a shortcut for the upload xml page, there is a check of authorization and only portal admin that have authorization and permission on this page/iview will be able to upload xml file through the URL. Hope this clarify.
@Kumar :
thank you for your answer. What a pity to not be able to pass parameter through standard portal page/iview particularly knowing that we can pass paramater through many kinds of iviews (transactional iview, url iview, VC iview...). I explored some option on file com.sap.portal.ivs.init.par but this was unsuccessful. However, thanks to this [link bellow|http://wiki.sdn.sap.com/wiki/display/Snippets/ComponenttouploadXMLfilewithPCD+objects], I was able to upload through URL the XML file.
The problem is that I can upload only XML file that are stored in the server not in the local user computer. My requirement is to be able to upload local XML file stored on user's computer.
If someone could provide and idea/solution, I would be very grateful.
Cheers -
Passing Search Parameter to SRM-MDM Through the URL
Greeting all,
I would like to know how I can pass a search parameter to SRM-MDM using the URL in the web browser. This is needed to display the result directly instead of listing the whole catalog contents.
I am trying to pass a search parameter (Text string) to the catalog through an R/3 SAP system. As a result, it should give only the material that I am looking for.
I tried the "Background Search" as described in the OCI-specification paper but still couldn't get it!
By using the parameters mentioned in chapter 3.2.4 of OCI-specification paper, I did the recommended configuration and use the following URL but still failed to pass the parameter: http://....&FUNCTION=BACKGROUND_SEARCH&SEARCHSTRING=searchterm
Can anyone help me on that?!
Regards,
YousifHi Yousif,
Why dont u save the search as a named search in MDM and then pass it onto the SRM MDM.
Save the records as Named search in MDM Data Manager
For eg:
Named Search name -->> search1
Now while passing the parameters to the SRM MDM Catalog specify the Named Search in its url.
http://J2EESERVER:PORTNO/SRM-MDM/SRM_MDM?sap-locale=EN&HOOK_URL=&mask=&namedSearch=search1&username=Admin&password=PASSWORD&catalog=REPOSITORYNAME&server=MDMSERVERIPADDRESS&datalanguage=EN
After passing the named search in the hook url the you will be able to see only the search which was saved in Data Manager.
Hope dis helps u
Regards Tejas......... -
Problem in passing date through hyperlink reports in Linux version(CRS2008)
Hi,
How to pass value of a date paramater through hyperlink(open doc) from main report to target report(clicking on hyperlink )
thanks in ADVANCEPlease re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551 -
How get runing total but opening balance pass from form through parameter
Sir I have tow table in accbal have opening balance and in voudetail have daily transaction I need ledger report with opening balance
My report get opening balance from accbal and get befor given date balance from voudetail
Such as
For opening balance
Selelect case when dr>cr then dr-cr
When cr>dr then cr-dr
End opbal from accbal
For get balance form daily transaction
Select case when sum(debit)-sum(credit)> sum(credit)-sum(debit) then
sum(debit)-sum(credit)
when sum(credit)-sum(debit)>sum(debit)-sum(credit) then
sum(credit)-sum(debit)
end trbalance from voudetail
where date <givendate
cal acute both balance in variable
total =opbal+trbal
and send this total in report as opening balance on top of report and add this amount asper condition in amount report amount is debit and totalbal is debit then
placeholdercolumn=totalbal+reportdebit
or credit then
placeholdercolumn=totalbal-reportdebit
sir I need this type of calculation in report
or
if you give me idea n query is best for me I calculate with over function and use report only for output
please sir give me idea urgent
thank
aamirMeilan (guest) wrote:
: I wrote a Report called by a Form and pass a parameter from the
: Form to the Report, successfully! But I imported a Graphic in
: the Report, and the Graphic could not get the parameter...(the
: parameter in the Report and Graphic should both pass from the
: Form).
: I call the Report by " Run_Product( REPORTS, :V_PRTNAME,
: SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id,NULL); " in the Form.
: and I imported the image from file for the Graphic in the
Report.
: Thanks for your help!
Meilan,
This forum is for Headstart related questions and experiences
only. Please go to metalink.oracle.com to get more information on
your problem.
Regards,
Ton
null -
Connecting a pdf to a database and passing a specific parameter through a URL
Hi,
I have a product data sheet that I want to personalise with partner logos. I need to pass a parameter from a url string to the form and have it populate a specific spot with the partner logo.
How would I go about doing that. I have LiveCycle Designer 8
Thanks,
Nolanyea.. looks like a mess true.., cos i was puttin all 2geda in a haste..
this is my midlet code....
TextField uname, upass, uacc;
url ="http://localhost:8080/serv/Ser";
uname = new TextField("Firstname:","",30,TextField.ANY);
form.append(uname);
upass = new TextField("Lastname:","",30,TextField.ANY);
form.append(upass);
uacc = new TextField("Account ID:","",30,TextField.ANY);
form.append(uacc);
void connect( String url ) throws IOException {
HttpConnection http =null;
InputStream iStrm =null;
StringBuffer b = new StringBuffer();
try {
http = (HttpConnection)Connector.open(url);
http.setRequestMethod(HttpConnection.POST);
http.setRequestProperty("User-Agent","Profile/MIDP-1.0 Configuration/CLDC-1.0");
http.setRequestProperty("Content-Language", "en-CA");
http.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
iStrm = http.openDataInputStream();
System.out.println(http.getResponseMessage());
System.out.println(http.getResponseCode());
int ch;
while((ch=iStrm.read()) != -1)
b.append((char) ch);
conn.setString(b.toString());
System.out.println(b.toString());
display.setCurrent(conn);
catch(Exception ex)
System.out.println(ex);
conn.setString(String.valueOf(ex));
ex.printStackTrace();
finally
if(iStrm!=null)
iStrm.close();
if(http !=null)
http.close();
}and this is my servlet code.
public void doPost(HttpServletRequest req,HttpServletResponse res)
throws IOException,ServletException
try
Class.forName("com.mysql.jdbc.Driver");
Connection con =DriverManager.getConnection("jdbc:mysql://localhost:8080","root","pass");
PreparedStatement stat = con.prepareStatement("Select custaid from customers_old where firstname=? and surname=? and custAID=?");
stat.setString(1,req.getParameter("uname"));
stat.setString(2,req.getParameter("upass"));
stat.setString(3,req.getParameter("uacc")); -
Passing dynamic parameters in hyperlinks
Post Author: alguser
CA Forum: Profitability Applications
I am using the former ALG Activity Analysis/Predictive Planning application, which I gather is now known as profitability. Is there a way to use variables as query string values in hyperlinks in books? I am unable to escape out of the url string so as to provide a variable name. I would prefer hyperlinks to buttons. Here is a quick example of what I mean: [In the URL field of a hyperlink control]BookTitle&SomeVariable=' + somevariableThanks.Hi Shakeel,
Actually, currently no custom parameter passing is working through the iView onto the Web Dynpro application.
The app. feature is for passing parameters automatically to the startup plug as named parameters within a Web Dynpro application. (On my version this feature does not work either.)
Anyone else try this yet? -
Hyperlink Bag : Passing two Parameters to Hyperlink bag
Hi,
Pls let me know if any one has worked on how to Pass two parameters to Hyperlink Bag in MSA 5.0.My code is working fine with single Parameter but when I pass two parameter it is throwing an error.
Appreciate if some one can share a code for the same.
Thanks in Advanace.
Thanks and Regds
HarishHi Ramakrishna,
Thanks for your prompt reply. I have gone through this document. My requirement is different than what's stated in the document. The users filter their records in the VC application by using more than one filter and press the button called 'Open Query' button. The system then takes them to WAD. The WAD should be able to set the same filter value/s that they select in VC application. But at the moment, it passes only one parameter to WAD regardless of how many filter values that users select in VC. Please suggest on this matter.
Thanks. -
Need Help-How Store the input parameter through java bean
Hello Sir,
I have a simple Issue but It is not resolve by me i.e input parameter
are not store in Ms-Access.
I store the input parameter through Standard Action <jsp:useBean>.
jsp:useBean call a property IssueData. this property exist in
SimpleBean which create a connection from DB and insert the data.
At run time servlet and server also show that loggging are saved in DB.
But when I open the table in Access. Its empty.
Ms-Access have two fields- User, Password both are text type.
Please review these code:
login.html:
<html>
<head>
<title>A simple JSP application</title>
<head>
<body>
<form method="get" action="tmp" >
Name: <input type="text" name="user">
Password: <input type="password" name="pass">
<input type="Submit" value="Submit">
</form>
</body>
</html>LoginServlet.java:
import javax.servlet.*;
import javax.servlet.http.*;
public class LoginServlet extends HttpServlet{
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException{
try
String user=request.getParameter("user");
String pass=request.getParameter("pass");
co.SimpleBean st = new co.SimpleBean();
st.setUserName(user);
st.setPassword(pass);
request.setAttribute("user",st);
request.setAttribute("pass",st);
RequestDispatcher dispatcher1 =request.getRequestDispatcher("submit.jsp");
dispatcher1.forward(request,response);
catch(Exception e)
e.printStackTrace();
}SimpleBean.java:
package co;
import java.util.*;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
import java.util.*;
public class SimpleBean {
private String user="";
private String pass="";
private String s="";
public String getUserName() {
return user;
public void setUserName(String user) {
this.user = user;
public String getPassword() {
return pass;
public void setPassword(String pass) {
this.pass = pass;
public String getIssueData() //method that create connection with database
try
System.out.println("Printed*************************************************************");
getUserName();
getPassword();
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
System.out.println("Loading....");
Connection con=DriverManager.getConnection("jdbc:odbc:simple");
System.out.println("Connected....");
PreparedStatement st=con.prepareStatement("insert into Table1 values(?,?)");
System.out.println("~~~~~~~~~~~~~~~~~~~~");
String User=getUserName();
st.setString(1,User);
String Password=getPassword();
st.setString(2,Password);
st.executeUpdate();
System.out.println("Query Executed");
con.close();
s= "Your logging is saved in DB ";
System.out.println("Your logging is saved in DB *****************");
return(s);
catch(Exception e)
e.printStackTrace();
return "failed";
}submit.jsp:
This is Submit page
<html><body>
Hello
Student Name: <%= ((co.SimpleBean)request.getAttribute("user")).getUserName() %>
<br>
Password: <%= ((co.SimpleBean)request.getAttribute("pass")).getPassword() %>
<br>
<jsp:useBean id="st" class="co.SimpleBean" scope="request" />
<jsp:getProperty name="st" property="IssueData" />
</body></html>web.xml:<web-app>
<servlet>
<servlet-name>one</servlet-name>
<servlet-class>LoginServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>one</servlet-name>
<url-pattern>/tmp</url-pattern>
</servlet-mapping>
<jsp-file>issue.jsp</jsp-file>
<jsp-file>submit.jsp</jsp-file>
<url-pattern>*.do</url-pattern>
<welcome-file-list>
<welcome-file>Login.html</welcome-file>
</welcome-file-list>
</web-app>Please Help me..Thanks.!!!
--Dear Sir,
Same issue is still persist. Input parameter are not store in database.
After follow your suggestion when I run this program browser show that:i.e
This is Submit page Hello Student Name: vijay
Password: kumar
<jsp:setProperty name="st" property="userName" value="userValue/> Your logging is saved in DB
Please review my code.
login.html:
{code}<html>
<head>
<title>A simple JSP application</title>
<head>
<body>
<form method="get" action="tmp" >
Name: <input type="text" name="user">
Password: <input type="password" name="pass">
<input type="Submit" value="Submit">
</form>
</body>
</html>{code}
LoginServlet.java:
{code}import javax.servlet.*;
import javax.servlet.http.*;
public class LoginServlet extends HttpServlet{
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException{
try
String userValue=request.getParameter("user");
String passValue=request.getParameter("pass");
co.SimpleBean st = new co.SimpleBean();
st.setuserName(userValue);
st.setpassword(passValue);
request.setAttribute("userValue",st);
request.setAttribute("passValue",st);
RequestDispatcher dispatcher1 =request.getRequestDispatcher("submit.jsp");
dispatcher1.forward(request,response);
catch(Exception e)
e.printStackTrace();
}{code}
SimpleBean.java:
{code}package co;
import java.util.*;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
import java.util.*;
public class SimpleBean {
private String userValue="";
private String passValue="";
private String s="";
public String getuserName() {
return userValue;
public void setuserName(String userValue) {
this.userValue = userValue;
public String getpassword() {
return passValue;
public void setpassword(String passValue) {
this.passValue= passValue ;
public String getissueData() //method that create connection with database
try
System.out.println("Printed*************************************************************");
getuserName();
getpassword();
Class.forName("oracle.jdbc.driver.OracleDriver");
System.out.println("Connection loaded");
Connection con=DriverManager.getConnection("jdbc:oracle:thin:@VijayKumar-PC:1521:XE","SYSTEM","SYSTEM");
System.out.println("Connection created");
PreparedStatement st=con.prepareStatement("insert into vij values(?,?)");
System.out.println("~~~~~~~~~~~~~~~~~~~~");
String userName=getuserName();
st.setString(1,userName);
String password=getpassword();
st.setString(2,password);
st.executeUpdate();
System.out.println("Query Executed");
con.close();
s= "Your logging is saved in DB ";
System.out.println("Your logging is saved in DB *****************");
return(s);
catch(Exception e)
e.printStackTrace();
return "failed";
}{code}
submit.jsp:
{code}This is Submit page
<html><body>
Hello
Student Name: <%= ((co.SimpleBean)request.getAttribute("userValue")).getuserName() %>
<br>
Password: <%= ((co.SimpleBean)request.getAttribute("passValue")).getpassword() %>
<br>
<jsp:useBean id="st" class="co.SimpleBean" scope="request" />
<jsp:setProperty name="st" property="userName" value="userValue/>
<jsp:setProperty name="st" property="password" value="passValue"/>
<jsp:getProperty name="st" property="issueData" />
</body></html>web.xml:<web-app>
<servlet>
<servlet-name>one</servlet-name>
<servlet-class>LoginServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>one</servlet-name>
<url-pattern>/tmp</url-pattern>
</servlet-mapping>
<jsp-file>submit.jsp</jsp-file>
<url-pattern>*.do</url-pattern>
<welcome-file-list>
<welcome-file>Login.html</welcome-file>
</welcome-file-list>
</web-app>Sir I can't use EL code in jsp because I use weblogic 8.1 Application Server.This version are not supported to EL.
Please help me...How store th input parameter in Database through Java Bean -
How to pass Cascading Parameter in SSRS using Java
How to pass Cascading Parameter in SSRS using Java---
We are having a problem with dependent parameters.There are three drop down--
1.first dropdown is of Country.When we select a country--Accordingly next dropdown(State)will populate
2.Second dropdown is of State. When we select a state--Accordingly next dropdown(City)will populate.
I have three data sources are
CountryList-
SELECT CountryRegionCode, Name
FROM Person.CountryRegion
ORDER BY Name
StateList
SELECT StateProvinceID, StateProvinceCode, CountryRegionCode
FROM Person.StateProvince
WHERE CountryRegionCode = @CountryRegionCode
ORDER BY StateProvinceCode
CityList
SELECT StateProvinceID, City
FROM Person.Address
GROUP BY StateProvinceID, City
HAVING (StateProvinceID = @StateProvinceID)
ORDER BY City
Ihave to show report that has been deployed on server on the besis of these parameters
I am using ReportViewer in JSP Page through url--
http://192.168.90.149/ReportServer/Pages/ReportViewer.aspx?%2fReport+Project1%2fCascading_Parameters&rs:Command=Render&rs:parameter=true&Country="+Country+"&State="+State;
But it is not accepting parameter if they are cascaded.It is working fine if Both parameters are independent.
Edited by: kaushlee on May 11, 2010 9:22 PMTake a look at set_custom_property:
public static final ID SETTEXT = ID.registerProperty("SETTEXT");
public boolean setProperty(ID pid, Object value)
if (pid == SETTEXT)
String text = value.toString();
and in forms
set_custom_property('beans.bean_item', 1, 'SETTEXT', 'some text');
cheers -
Passing a parameter from one class to another class in the same package
Hi.
I am trying to pass a parameter from one class to another class with in a package.And i am Getting the variable as null every time.In the code there is two classes.
i. BugWatcherAction.java
ii.BugWatcherRefreshAction.Java.
We have implemented caching in the front-end level.But according to the business logic we need to clear the cache and again have to access the database after some actions are happened.There are another class file called BugwatcherPortletContent.java.
So, we are dealing with three java files.The database interaction is taken care by the portletContent.java file.Below I am giving the code for the perticular function in the bugwatcherPortletContent.java:
==============================================================
public Object loadContent() throws Exception {
Hashtable htStore = new Hashtable();
JetspeedRunData rundata = this.getInputData();
String pId = this.getPorletId();
PortalLogger.logDebug(" in the portlet content: "+pId);
pId1=pId;//done by sraha
htStore.put("PortletId", pId);
htStore.put("BW_HOME_URL",CommonUtil.getMessage("BW.Home.Url"));
htStore.put("BW_BUGVIEW_URL",CommonUtil.getMessage("BW.BugView.Url"));
HttpServletRequest request = rundata.getRequest();
PortalLogger.logDebug(
"BugWatcherPortletContent:: build normal context");
HttpSession session = null;
int bugProfileId = 0;
Hashtable bugProfiles = null;
Hashtable bugData = null;
boolean fetchProfiles = false;
try {
session = request.getSession(true);
// Attempting to get the profiles from the session.
//If the profiles are not present in the session, then they would have to be
// obtained from the database.
bugProfiles = (Hashtable) session.getAttribute("Profiles");
//Getting the selected bug profile id.
String bugProfileIdObj = request.getParameter("bugProfile" + pId);
// Getting the logged in user
String userId = request.getRemoteUser();
if (bugProfiles == null) {
fetchProfiles = true;
if (bugProfileIdObj == null) {
// setting the bugprofile id as -1 indicates "all profiles" is selected
bugProfileIdObj =(String) session.getAttribute("bugProfileId" + pId);
if (bugProfileIdObj == null) {
bugProfileId = -1;
else {
bugProfileId = Integer.parseInt(bugProfileIdObj);
else {
bugProfileId = Integer.parseInt(bugProfileIdObj);
session.setAttribute(
("bugProfileId" + pId),
Integer.toString(bugProfileId));
//fetching the bug list
bugData =BugWatcherAPI.getbugList(userId, bugProfileId, fetchProfiles);
PortalLogger.logDebug("BugWatcherPortletContent:: got bug data");
if (bugData != null) {
Hashtable htProfiles = (Hashtable) bugData.get("Profiles");
} else {
htStore.put("NoProfiles", "Y");
} catch (CodedPortalException e) {
htStore.put("Error", CommonUtil.getErrMessage(e.getMessage()));
PortalLogger.logException
("BugWatcherPortletContent:: CodedPortalException!!",e);
} catch (Exception e) {
PortalLogger.logException(
"BugWatcherPortletContent::Generic Exception!!",e);
htStore.put( "Error",CommonUtil.getErrMessage(ErrorConstantsI.GET_BUGLIST_FAILED));
if (fetchProfiles) {
bugProfiles = (Hashtable) bugData.get("Profiles");
session.setAttribute("Profiles", bugProfiles);
// putting the stuff in the context
htStore.put("Profiles", bugProfiles);
htStore.put("SelectedProfile", new Integer(bugProfileId));
htStore.put("bugs", (ArrayList) bugData.get("Bugs"));
return htStore;
=============================================================
And I am trying to call this function as it can capable of fetching the data from the database by "getbugProfiles".
In the new class bugWatcherRefreshAction.java I have coded a part of code which actually clears the caching.Below I am giving the required part of the code:
=============================================================
public void doPerform(RunData rundata, Context context,String str) throws Exception {
JetspeedRunData data = (JetspeedRunData) rundata;
HttpServletRequest request = null;
//PortletConfig pc = portlet.getPortletConfig();
//String userId = request.getRemoteUser();
/*String userId = ((JetspeedUser)rundata.getUser()).getUserName();//sraha on 1/4/05
String pId = request.getParameter("PortletId");
PortalLogger.logDebug("just after pId " +pId); */
//Calling the variable holding the value of portlet id from BugWatcherAction.java
//We are getting the portlet id here , through a variable from BugWatcherAction.java
/*BugWatcherPortletContent bgAct = new BugWatcherPortletContent();
String portletID = bgAct.pId1;
PortalLogger.logDebug("got the portlet ID in bugwatcherRefreshAction:---sraha"+portletID);*/
// updating the bug groups
Hashtable result = new Hashtable();
try {
request = data.getRequest();
String userId = ((JetspeedUser)data.getUser()).getUserName();//sraha on 1/4/05
//String pId = (String)request.getParameter("portletId");
//String pId = pc.getPorletId();
PortalLogger.logDebug("just after pId " +pId);
PortalLogger.logDebug("after getting the pId-----sraha");
result =BugWatcherAPI.getbugList(profileId, userId);
PortalLogger.logDebug("select the new bug groups:: select is done ");
context.put("SelectedbugGroups", profileId);
//start clearing the cache
ContentCacheContext cacheContext = getCacheContext(rundata);
PortalLogger.logDebug("listBugWatcher Caching - removing markup content - before removecontent");
// remove the markup content from cache.
PortletContentCache.removeContent(cacheContext);
PortalLogger.logDebug("listBugWatcher Caching-removing markup content - after removecontent");
//remove the backend content from cache
CacheablePortletData pdata =(CacheablePortletData) PortletCache.getCacheable(PortletCacheHelper.getUserHandle(((JetspeedUser)data.getUser()).getUserName()));
PortalLogger.logDebug("listBugWatcher Caching User: " +((JetspeedUser)data.getUser()).getUserName());
PortalLogger.logDebug("listBugWatcher Caching pId: " +pId);
if (pdata != null)
// User's data found in cache!
PortalLogger.logDebug("listBugWatcher Caching -inside pdata!=null");
pdata.removeObject(PortletCacheHelper.getUserPortletHandle(((JetspeedUser)data.getUser()).getUserName(),pId));
PortalLogger.logDebug("listBugWatcher Caching -inside pdata!=null- after removeObject");
PortalLogger.logDebug("listBugWatcher Caching -finish calling the remove content code");
//end clearing the cache
// after clearing the caching calling the data from the database taking a fn from the portletContent.java
PortalLogger.logDebug("after clearing cache---sraha");
BugWatcherPortletContent bugwatchportcont = new BugWatcherPortletContent();
Hashtable httable= new Hashtable();
httable=(Hashtable)bugwatchportcont.loadContent();
PortalLogger.logDebug("after making the type casting-----sraha");
Set storeKeySet = httable.keySet();
Iterator itr = storeKeySet.iterator();
while (itr.hasNext()) {
String paramName = (String) itr.next();
context.put(paramName, httable.get(paramName));
PortalLogger.logDebug("after calling the databs data from hashtable---sraha");
} catch (CodedPortalException e) {
PortalLogger.logException("bugwatcherRefreshAction:: Exception- ",e);
context.put("Error", CommonUtil.getErrMessage(e.getMessage()));
catch (Exception e) {
PortalLogger.logException("bugwatcherRefreshAction:: Exception- ",e);
context.put( "Error",CommonUtil.getErrMessage(ErrorConstantsI.EXCEPTION_CODE));
try {
((JetspeedRunData) data).setCustomized(null);
if (((JetspeedRunData) data).getCustomized() == null)
ActionLoader.getInstance().exec(data,"controls.EndCustomize");
catch (Exception e)
PortalLogger.logException("bugwatcherRefreshAction", e);
===============================================================
In the bugwatcher Action there is another function called PostLoadContent.java
here though i have found the portlet Id but unable to fetch that in the bugWatcherRefreshAction.java . I am also giving the code of that function under the bugWatcherAction.Java
================================================
// Get the PortletData object from intermediate store.
CacheablePortletData pdata =(CacheablePortletData) PortletCache.getCacheable(PortletCacheHelper.getUserHandle(
//rundata.getRequest().getRemoteUser()));
((JetspeedUser)rundata.getUser()).getUserName()));
pId1 = (String)portlet.getID();
PortalLogger.logDebug("in the bugwatcher action:"+pId1);
try {
Hashtable htStore = null;
// if PortletData is available in store, get current portlet's data from it.
if (pdata != null) {
htStore =(Hashtable) pdata.getObject( PortletCacheHelper.getUserPortletHandle(
((JetspeedUser)rundata.getUser()).getUserName(),portlet.getID()));
//Loop through the hashtable and put its elements in context
Set storeKeySet = htStore.keySet();
Iterator itr = storeKeySet.iterator();
while (itr.hasNext()) {
String paramName = (String) itr.next();
context.put(paramName, htStore.get(paramName));
bugwatcherRefreshAction bRefAc = new bugwatcherRefreshAction();
bRefAc.doPerform(pdata,context,pId1);
=============================================================
So this is the total scenario for the fetching the data , after clearing the cache and display that in the portal.I am unable to do that.Presently it is still fetching the data from the cache and it is not going to the database.Even the portlet Id is returning as null.
I am unable to implement that thing.
If you have any insight about this thing, that would be great .As it is very urgent a promt response will highly appreciated.Please send me any pointers or any issues for this I am unable to do that.
Please let me know as early as possible.
Thanks and regards,
Santanu Raha.Have you run it in a debugger? That will show you exactly what is happening and why.
Maybe you are looking for
-
What program works best in cleaning the junk file out of my mac?
What program works best in cleaning, and improving the speed of my mac. It's about four years old now, any suggestions are appreciated as I am new to this.
-
Authentication failed using EAP-TLS and CSSC against ACS
Hi. Playing with a trial version of CSSC (Cisco secure services client) I had a problem that really I don´t understand. Any 802.1x configuration work fine but when I use anything involving the use of certificates (EAP-TLS or PEAP using a certificate
-
User exit about change item's goods issue day in transaction code VA01
Hi everyone. Can someone give me some advice how to change item's goods issue by user exit? thank you in advanced. Regards. Eric xu.
-
Does any think we will evert be able to edit documents on the iPhone?
Apple keeps makaking the phone more and more enterprise compatable but the simple feature of editing text and documents seems to elude them.. also, why does the phone only have a "master volume and we can't set sound levels per app or alarm. Anyone?
-
N8 - Proximity Sensor During Calls is Killing me, ...
Hi guys again and again .. the proximity sensor is driving me crazy almost 90% of my calls faces End mute hold and bla bla bla ... the cheek keeps touching the screen and hillarious clicks are made during calls ... i swear every single call faces end