I want to display the output of an SSRS report in an IFrame of another application. I set the source to something like this:
http://SERVERNAME.domain.com/ReportServer?%2fTBI_MSCRM%2fCustomReports%2f%7bdafdbed0-1e96-e211-a5da-001d0967e0fc%7d&rs:Command=Render&rc:Toolbar=false
The issue I am running into is that the output of the report seems to be cached for the session.
If there is a timestamp on the report that does not get updated when the page is refreshed. To see the updated data, you have to close out all browser and reopen the page. In SSRS, snapshots are not turned on, there is no cache refresh plan as the "Do not cache temporary copies of this report" option is selected.
I have take the URL out of the IFrame and run it in isolation and I get the same results, so it isn't the IFrame causing the problem. What I need is this report to refresh every time the URL is accessed.
Any ideas are much appreciated.
You can force the report server to get a new report in every request by clearing the session.
Just add the following to the URL rs:ClearSession=true
It would be implemented in your URL like that:
http://SERVERNAME.domain.com/ReportServer?%2fTBI_MSCRM%2fCustomReports%2f%7bdafdbed0-1e96-
e211-a5da-001d0967e0fc%7d&rs:Command=Render
&rs:ClearSession=true&rc:Toolbar=false
Clear session:
A value of true directs the report server to remove a report from the
report session. All report instances associated with an authenticated
user are removed from the report session. (A report instance is
defined as the same report run multiple times with different report
parameter values.) The default value is false.
for more information look here
Related
I am developing custom application in Oracle Apps which will call an oracle form named form.fmx
I have put form.fmx in FORM_PATH variable of default.env
I have created section called vikram in formsweb.cfg
I am accessing as http://prod.txis.com:7406/forms/frmservlet?config=vikram&form=form
And getting this error
URL validation failed. The error could have been caused through the use of the browser's navigation buttons ( the browser Back button or refresh, for example). If the error persists, Please contact system administrator.
Try one of the following methods to resolve your issue :
Goto Internet Options >> Security Tab >> Trusted sites >> Sites >>
Add this website to the zone.
Issue select fnd_profile.value('APPS_MAINTENANCE_MODE') from dual;
to see whether returns the result NORMAL, If this is not the case you're in the maintenance mode, and use :
sqlplus mySchema/myPassword#$AD_TOP/patch/115/sql/adsetmmd.sql DISABLE
Click on Lock and Edit, and then
Navigate to Domain structure >> Services >> Data sources Where you should see both oacore_cluster1 and forms_cluster1 in
the EBSDataSource targets.
Assume forms_cluster1 is missing in the EBSdatasource target list, then click on the EBSDatasource and then go to the
Targets section. In this page, check the box for forms_cluster1.
Save and Activate the changes and see the following view in you weblogic screen :
Issue was with Forms server configuration.
With correct config, it is running fine
I'm using Jmeter to perform load test on Moodle application
I followed the below steps to replicate a simple "add company " test scenario
1: Recorded the browser actions through HTTP Test script recorder and created a test plan with thread user of 1
2: Added HTTP Cache Manager,Added regular expression extractor for retrieving dynamically generated session for login HTTP request.
For Http request of adding new company, addded user parameters containing new company name
I run the test, everything seems ok in the view results tree- response section (response code: 200,response message:OK), all the required variables are passed in the HTTP POST
PROBLEM: New company added through Jmeter test is not reflected in UI of the moodle action
Can any of you please let me know
Is there something I could be missing or anyway I can debug the problem?
P.S: I'm new to Jmeter and looked around a lot for data inputted through Jmeter not being displayed in the UI of the web application,dint find useful results.
The answer to questions of this sort is almost always that you missed some necessary dynamic value besides session ID which you did catch.
An HTTP200 response just means the server returned a "good" response. Which could also happily contain an error message.
I would check the actual html body of the returned response for any errors. Checking the log on the server side can give you clues to what went wrong sometimes. You should also try adding a cookie manager.
Run your test with 1 virtual user in GUI mode with View Results Tree listener enabled and inspect responses to see where your scripts fails. My expectation is that you simply cannot log in.
See Moodle-JMeter-LoadTest.jmx file for reference, it uses XPath Extractor to get session key and course id.
I don't think you can test using JMeter. Try JUnit Test cases instead http://jakarta.apache.org/jmeter/usermanual/junitsampler_tutorial.pdf
I am using Pentaho CDE. I am trying to clear the cache using the following URL. When I run it in the browser it doesn't give an error but shows a blank page. What can be the cause for this?
http://localhost:8080/pentaho/ServiceAction?solution=admin&path=&action=clear_mondrian_schema_cache.xaction
"admin" in the URL refers to the folder in which the clear_mondrian_schema_cache.xaction file is found. What does "&action" in the URL refer to?
Ok, everyone knows that we can flush Mondrian cache manually.
How: Inside Pentaho User Console, Tools -> Refresh -> Mondrian Schema Cache. After few moments, if everything is right we get message: 'Mondrian Schema Cache Flushed Successfully'.
Ok, what was done down there? 'Mondrian Schema Cache Flushed Successfully' is predefined string for English locale if request returns code 200 (OK). According to this we know that click on it is calling some HTTP request method.
What and where? I'm using Live HTTP Headers plugin in Google Chrome browser. It tells me that PUC is calling:
GET /pentaho/api/mantle/isAuthenticated (and if response is OK?)
GET /pentaho/api/system/refresh/mondrianSchemaCache
If second request return code 200 (OK), PUC write message.
You can try it in your browser: hostname:port/pentaho/api/system/refresh/mondrianSchemaCache
It will clear your schema cache and stay blank page. If you want message, you can write script to collect response from HTTP request.
A web site I have published is generating the error stated below when a valid user submits form content to be stored in the database:
Forbidden
You don't have permission to access /index.php/user/add on this server.
Additionally, a 404 Not Found error was encountered while trying to use an
ErrorDocument to handle the request.
This is a private web site. All users have to log-in. Some users can add content. Using CI sessions there is an added field of edit, with a value of 0 or 1 retrieved from the user's record in the user table, copied to the user_data session array at the time of log-in. The variable $this->session->userdata('edit') is used for if statements in the controller and views. Value of 1, user will see links that will bring up views (forms) to edit or add content.
This is a snippet for how I am using the variable to set menu items:
<?php if ($this->session->userdata('edit') == 1) { ?>
<li>Add</li>
<?php }; ?>
This is the basic structure for the processing of form data. This function is in the controller file user.php:
function add(){
if ($this->session->userdata('logged_in') ){
//runs form validation
if ( $this->form_validation->run() == FALSE ) {
//if false, redisplays the form and data with failed fields highlghted
}//if
if ($this->form_validation->run() == TRUE) {
//processes the data and stores in the database
}//form validation run
} else {
redirect ("user/login");
} //if...else
}//add
Examining the database after one of these Forbidden errors, no data is inserting. A redisplayed form due to validation error(s) is not happening either. These factors lead me to believe this is a server problem more than a CodeIgniter issue. If you look at this link it shows a screen shot of the error received in the browser (either Firefox or Chrome, other browsers not in use yet), it is not the usual CodeIgniter appearance for an error generated from a mistake in CI code.
The add/edit content forms are working well. As stated above, the error occurs at time of form submission. As well, it is only happening on the hosting company's server. I have checked the permissions of user.php and they are 644 like the rest of the files.
What are possible fixes? If it is a server issue, what do I look for or ask my hosting company to look at? If it is a CI sessions issue, in the documentation CodeIgniter states it uses a system different from $_SESSION super global. Is it wise to copy the user data to that array and have the code look up the data from that variable array? Or do I create a distinct array and save the keys there?
Revision and Solution
I retested the connection to the database associated with this project. I could connect. Taking things a next step, I could select records but not insert. I performed those tests with raw, simple statements.
Examining privileges for this user and the database, I discovered that while All Privileges was checked, none of the individual privileges was checked. (See this screen shot.)
I ignored the All Privileges check-box and manually checked each of the other boxes. Conducting small tests like the ones outlined above and then interacting with the form on the site, I am getting results I expect.
Things I don't understand:
How can All Privileges be checked and none of the other check-boxes checked?
I have gone back and tried to check All Privileges and then uncheck the others individually. It's not possible. From interacting with Panelbox on this host often to set-up users and associate them with a database, I know it is not usual for the state I found described above.
Programmatically, since there is only one user and set of privileges associated with a CodeIgniter site, how was the admin for this site able to insert 5 records in the database before a Forbidden error started being returned from the server?
I did not outline it when I first posted this thread, but the Forbidden error did not happen right away with uploading and running the site from the server. Since the admin was able to submit five completed forms perfectly before starting to receive errors, I presumed it was a Sessions problem. This contention was also arrived at because sometimes deleting the cookie and then logging in, I or the admin was able to submit a form and the data was inserted in the database.
Thanks for taking the time to read this.
Test user privileges associated with a database often. Sometimes things change.
When you cache a report in SSRS 2008 and set it to expire after a number of minutes, for example 30 minutes, Does the report refresh after it expires and generate a new cached report automatically or it refreshes only when the report is requested or run?
For example, if I run the report at 10:00AM, it will expire at 10:30AM, then when someone else runs the report at 11:15AM, Will there have been a new Cached report or it will be processed as new(in other words, it is not based on a Cached report)?
Thanks!
According to the documentation, the default behavior is that an expired cache is not refreshed until the report is accessed.
http://technet.microsoft.com/en-us/library/ms155927.aspx
However, a cache refresh plan can be used to periodically refresh the cache according to a schedule.
This is less useful for parameterized reports where the parameters are changed frequently.
Edit: See here for more info. http://social.msdn.microsoft.com/Forums/sqlserver/en-US/d7e8c6c8-2331-476f-b03e-f558458fa283/snapshots-vs-cached-instances?forum=sqlreportingservices