Report session crossing sessions????
hi all,
I wrote a crystal web server using asp.net security. i have multibple reports in a few different directories, and i have a report viewer form in each secured directory. when i load a particlular report on one machine's web browser, if i go to another machine and launch that report, the report instantly shows up with the parameters selected on the other machine.
I have not experienced this before, and makes the report site kinda useless. Can anyone help me figure out why these reports aren't treated as separate sessions?
sorry for the formatting, but this site isn't taking linefeeds/returns....
here is the markup for the frmReportViewer.aspx page:
<form id="form1" runat="server">
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server"
AutoDataBind="true" BestFitPage="False" Width="1100" Height="680"
ReportSourceID="CrystalReportSource1" BorderColor="#000099"
BorderStyle="Inset" PrintMode="ActiveX" />
<CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
<Report FileName="">
</Report>
</CR:CrystalReportSource>
</form>
*here is the vb code for the frmReportViewer.aspx page:*
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Me.CrystalReportViewer1.HasCrystalLogo = False
If Not IsPostBack Then
ReportName = Request.QueryString("reportname") & ".rpt"
Me.CrystalReportSource1.Report.FileName = ReportName
DBConnectionForReports(CrystalReportSource1.ReportDocument)
End If
end sub
<br>
Public Function DBConnectionForReports(ByRef rpt As ReportDocument) As Boolean
Dim logonInfo As New TableLogOnInfo
'Dim table As System.Web.UI.WebControls.Table
Dim srptServer As String
Dim srptUN As String
Dim srptPass As String
Dim crConnInfo As New ConnectionInfo
Dim subRepDoc As New ReportDocument
Dim table As Table
For Each table In rpt.Database.Tables
srptServer = "calp"
srptUN = "cdiappsro"
srptPass = System.Configuration.ConfigurationManager.AppSettings.Item("OraclePassword").ToString
logonInfo = table.LogOnInfo
logonInfo.ConnectionInfo.ServerName = srptServer
logonInfo.ConnectionInfo.UserID = srptUN
logonInfo.ConnectionInfo.Password = srptPass
logonInfo.TableName = table.Name
table.ApplyLogOnInfo(logonInfo)
Next table
End Function
Edited by: george hardy on Mar 29, 2010 3:06 PM
Imports CrystalDecisions.ReportSource
Imports CrystalDecisions.Shared
Imports CrystalDecisions.Reporting
Imports CrystalDecisions.CrystalReports
Imports CrystalDecisions.CrystalReports.Engine.ReportDocument
Imports CrystalDecisions.CrystalReports.Engine
Partial Class ReportViewer
Inherits System.Web.UI.Page
Private ReportName As String
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then
ReportName = Request.QueryString("reportname") & ".rpt"
Me.CrystalReportSource1.Report.FileName = ReportName
DBConnectionForReports(CrystalReportSource1.ReportDocument)
End If
End Sub
Dim crConnectionInfo As New ConnectionInfo
Dim CrTables As Tables
Dim CrTable As System.Web.UI.WebControls.Table
Public Function DBConnectionForReports(ByRef rpt As ReportDocument) As Boolean
Dim logonInfo As New TableLogOnInfo
'Dim table As System.Web.UI.WebControls.Table
Dim srptServer As String
Dim srptUN As String
Dim srptPass As String
Dim crConnInfo As New ConnectionInfo
Dim subRepDoc As New ReportDocument
Dim table As Table
For Each table In rpt.Database.Tables
srptServer = "calp"
'srptDatabase = ConfigurationSettings.AppSettings("rptDatabase")
srptUN = "cdiappsro"
srptPass = System.Configuration.ConfigurationManager.AppSettings.Item("OraclePassword").ToString
logonInfo = table.LogOnInfo
logonInfo.ConnectionInfo.ServerName = srptServer
'logonInfo.ConnectionInfo.DatabaseName = srptDatabase
logonInfo.ConnectionInfo.UserID = srptUN
logonInfo.ConnectionInfo.Password = srptPass
logonInfo.TableName = table.Name
table.ApplyLogOnInfo(logonInfo)
Next table
End Function
End Class
Similar Messages
-
Need user message when trying to run report when report session is already open.
HI !!
I have GUI application bulid in C++ and we call reports from
there.
My user ran a report and minimized the sceen display of the
report. He then clicked Task/Reports and selected a differnet
report from the selection list. After he clicked OK nothing
happened. He believes a message box should appear at this point
to notify the user that a report session is already opened and
must be closed before generation of another report can be
started. This has happened to him several times where he
minimized a report that he ran and then worked on something else
for a while and forgot that he had a report open. He then went
back and tried to run another report and nothing would happen.
Can we fix this isuue, I mean is there any way to run a differnt
report if report session is already open.
Please advise.
Kind Regards
SPHI,
Is this qury is running fine in SQL?? Have you checked this query in Sql server(Management studio) whether working or not??.
I feel there is some mismatch with relations in query.. Cross check your query once in SQL itself. once it is running well, we will take a look.
Regards,
Salah. -
Essbase report session in progress
Something happened during planning refresh to esbase database. During FX refresh the session is remaining in progress and not terminating.
I killed the esssv in server.
When I did excel retrieve again the "report" session remains in progresss and not terminating.
Any suggesion what to do now? didn't restart essbase server yetKill that hangedup application in the essbase and restart the application.
After that Check whether the essbase server is responding fine or not.
If it is ok restart the application otherwise restart the server. -
TIPS(35) : SCRIPTS THAT REPORT SESSION STATISTICS
제품 : SQL*PLUS
작성날짜 : 1997-02-10
TIPS(35) : SCRIPTS THAT REPORT SESSION STATISTICS
=================================================
SQLDBA Monitor screens get their information from the V$ tables in the
SGA. These tables can be queried directly to obtain this information
in a form that is sometimes more readable and easier to report.
Following are some SQL scripts that report session and system statistics.
1. Script to find the Session Id of the current session.
select s.sid sess_id
from v$process p, v$session s
where p.addr = s.paddr
and terminal = userenv('terminal');
2. Script to find the Oracle Session Id if the operating system
PID of the process is known.
select s.sid sess_id
from v$process p, v$session s
where p.addr = s.paddr
and p.spid = '&OS_PID';
3. Script to find statistic values for the current session.
Must be run from the same terminal as the session.
set numwidth 5
column orclname format a12 word_wrap
column sysname format a8 word_wrap
column name format a40 word_wrap
set recsep off
set pagesize 60
select st.sid sid, s.username orclname, p.username sysname,
n.name name, st.value value
from v$sesstat st, v$statname n, v$session s, v$process p
where st.statistic# = n.statistic#
and st.sid = s.sid
and s.paddr = p.addr
and p.terminal = userenv('terminal');
4. Script to find statistic values for the any session, if the operating
system PID of the process is known.
set numwidth 5
column orclname format a12 word_wrap
column sysname format a8 word_wrap
column name format a40 word_wrap
set recsep off
set pagesize 60
set verify off
select st.sid sid, s.username orclname, p.username sysname,
n.name name, st.value value
from v$sesstat st, v$statname n, v$session s, v$process p
where st.statistic# = n.statistic#
and st.sid = s.sid
and s.paddr = p.addr
and p.spid = '&OS_PID';
5. Script to find statistic values for the system.
column name format a40 word_wrap
set recsep off
set pagesize 60
select n.name name, st.value value
from v$sysstat st, v$statname n
where st.statistic# = n.statistic#;
The above scripts are written to be run from SQL*Plus. Exclude the
COLUMN and SET commands if you wish to run them from SQLDBA.The issue is the report does not work.
I get an "error" where date information should have been shown.
I have attached a screen capture to show my problem.
Roger. -
Report session vs form session
When I run report from form using report object it seems to start seperate session. Can I run them in the same session.
No.
-
HELP: Forms and Report Session Context Problem
Hi:
I use CONTEXT in our applications. Every time there's a query to
any of the applications tables it's added a predicate in WHERE
clause to restrict access to the data that belongs to different
people!
The context is set when the user LOGIN into applications (NOT
DATABASE) using our login system. Each user that login's in
applications use one user that is always the same (X_USER)
connecting to database. Each session created after our login
system validate user creates a CONTEXT in session and that
context is used to restrict access in tables with the predicate!
Our problem is... Calling reports form forms on WEB create
another session with the user X_USER and when create's that
session the CONTEXT parameters are not SET, so i can SELECT data
from any table!
Is there a way to execute in reports our PROCEDURE that set
context of the session?
Can the reports use the same session of the forms ?
Any solution?
Thankx in advance,
RicardoNo, Forms and Reports use different sessions. What you can do is
to add a parameter to the report that contains the context. And
use the Before Parameter Form trigger to set the appropriate
action.
I used to set a role to the report user this way, but you can
adapt it to your particular needs. -
Email Solution manager task report session
Good day,
I am currently tasked with generating task session reports from solution manager. Systems I am reporting on are ECC 6.0, BI, CRM & PI. I can generate reports fine, however I would like to setup solution manager to send these task session report to a list recepient vial email directly from solution manager. It should be like EWA reports send via email in this case I want to send task session report after I have completed the checks.
1) Is it possible to setup solution manager to do that?
2) I want to be able to highlight all issues that I have picked like how EWA highlights its alerts.Hi
the task "early watch alert for solution manager" created automatically when did you perform the task "refreh session" or "Maintenance Package"
please create the relevant task, via : SDCCN -> Task -> Create ->Request session data ->Periodic -> Earlywatch Alert -> Continue.
'Schedule' the start date of the first session and - Task -- create Click on 'Refresh sessions' - Press 'Enter' - Select 'Now', to schedule the job 'immediately. once you create the relevant tasks you go by, in the Menu - Goto -> start - to activate the Earlywatch alert session Now, you can check the finished EWA task in 'done' tab.
Login to Solution Manager, goto trx. DSWP --> Select your solution, Solution Monitoring - Earlywatch alert - Click on Earlywatch alert --> start service processing --> Press 'OK' to start the background job - click 'Refresh'
Now, you can see the 'Early watch alert' in the green colour .
more further refer here [EWA guide|http://forums.sdn.sap.com/servlet/JiveServlet/download/156-1701991-9166329-1518/EWA_Activation.pdf]
jansi -
Tracking The Discoverer Report Session and Users
Hi
Is there a standard process or a query which helps us to monitor the list of Discoverer reports running (or scheduled) and the users who are running it,
Please let me know
thanks for the time
Regards
Ramesh Kumar SCan anyone provide some lite on this
Regards
Ramesh Kumar S -
Stock report for cross-company sales
Dear all,
We are using for our Saudi Arabia company the cross-company sales process with sourcing unit in another country.
There is a Legal requirement in Saudi to provide a Stock report (with "stock in", "stock out" quantities and values).
But with the cross-company sales process the stock movements are not visible in Saudi.
Any advice ? Is there a report in SAP for this legal reqirement in Saudi Arabia ?
Best regardsHi,
Try to use t-code MB51, will give you a list with the relevant movement types!
Good luck
Tao -
Crystal Report 2008 - Cross tab in subreport doesn't expand horizontally
Hello,
i'm migrating all my company's reports from crystal report X to crystal report 2008.
And i'm facing the following issue:
when a sub-report contains a cross-tab that is too large for one page, in crystal report X a second horizontal page is generated, but in Crystal report 2008 the second horizontal page is not visible.
Is it a known bug, is there a patch to install?Hi Abhilash,
thank you for your answer, but this workarround does not works in my case.
My main report is just a container for multiple subreports and some of them contains crosstab that can grow on several pages horizontally and vertically.
For example i have some crosstab that can span on more than 5 pages vertically and on 2 pages horizontally.
I tried to create an empty cross tab that span on 2 horizontal pages in the main report, and to mask it. That works for the first vertical page of the subreport but only for this one. Moreover if the first page of the crosstab contained in the subreport does not span horizontally, this solution create an unwanted empty page. -
Merging SAP Clients - Reporting on Cross Client Table Compare Results
Hey folks,
We are trying to merge two clients into one (on the cheap), i think that cross client table comparision is the best way to find differences and possible issues and clashes with the two systems configuration, but i was wondering if there is anyway to report on these differences, so we can pull them out to word/excel document to anaylse and document them prior to making the changes.
Does anyone know if this possible?
Thanks a lot,
GregHello Mr. Newman,
I think using SCU0 is going to be the way to go but the output is not always the best. However you should be able to show the differences and download to excel to analyse further. If this doens't fit then I think you will have to look at copying the tcode / report and improving the output to meet your needs.
Alternatively post to basis folks and see if they have some better ideas!
Hope this helps,
Cheers,
Dan
Edited by: Danny boy on Mar 31, 2010 3:00 PM -
Issue with passing parameters through Java-JSP in a report with cross tab
Can anyone tell me, if there's a bug in Java SDK in passing the parameters to a report (rpt file) that has a cross tab in it ?
I hava report that works perfectly fine
with ODBC through IDE and also through browser (JSP page)
(ii) with JDBC in CR 2011 IDE
the rpt file has a cross tab and accpts two parameters.
When I run the JDBC report through JSP the parameters are never considered. The same report works fine when I remove the cross tab and make it a simple report.
I have posted this to CR SDK forum and have not received any reply. This have become a blocker and because of this our delivery has been postponed. We are left with two choices,
Re-Write the rpt files not to have cross-tabs - This would take significant effort
OR
(ii) Abandon the crystal solution and try out any other java based solutions available.
I have given the code here in this forum posting..
CR 2011 - JDBC Report Issue in passing parameters
TIA
DRG
TIA
DRGMr.James,
Thank you for the reply.
As I stated earlier, we have been using the latest service pack (12) when I generated the log file that is uploaded earlier.
To confirm this further, I downloaded the complete eclipse bundle from sdn site and reran the rpt files. No change in the behaviour and the bug is reproducible.
You are right about the parameters, we are using {?@Direction} is: n(1.0)
{?@BDate} is: dt(d(1973-01-01),t(00:00:00.453000000)) as parameters in JSP and we get 146 records when we directly execute the stored procedure. The date and the direction parameter values stored in design time are different. '1965-01-01' and Direction 1.
When we run the JSP page, The parameter that is passed through the JSP page, is displayed correctly on the right top of the report view. But the data that is displayed in cross tab is not corresponding to the date and direction parameter. It corresponds to 1965-01-01 and direction 1 which are saved at design time.
You can test this by modifying the parameter values in the JSP page that I sent earlier. You will see the displayed data will remain same irrespective of the parameter.
Further to note, Before each trial run, I modify the parameters in JSP page, build them and redeploy so that caching does not affect the end result.
This behaviour, we observe on all the reports that have cross-tabs. These reports work perfectly fine when rendered through ODBC-ActiveX viewer and the bug is observable only when ran through Java runtime library. We get this bug on view, export and print functionalities as well.
Additionally we tested the same in
With CR version 2008 instead of CR 2011.
(ii) Different browsers ranging from IE 7 through 9 and FF 7.
The complete environment and various softwares that we used for this testing are,
OS : XP Latest updates as on Oct 2011.
App Server: GlassFish Version 3 with Java version 1.6 and build 21
Database server ; SQL Server 2005. SP 3 - Dev Ed.
JTds JDBC type 4 driver version - 1.2.5 from source forge.
Eclipse : Helios along with crystal libraries directly downloaded from SDN site.
I am uploading the log file that is generated when rendering the rpt for view in IE 8
Regards
DRG -
Display Chinese Word In Crystal Report's Cross-Tab
Hi all,
I am trying to display chinese word in my cystal report. It can be display correctly in detail, page header or formula. But when come to cross-tab, it just will show some funny symbol on it. any idea?
i am using Crystal report xI release 2.
Thank You
WongHi,
I solve it.Just for your reference, change the font type inside cross-tab. -
Report painter,cross company code transactions
Hi Masters,
1, Please send material of REPORT PAINTER ?
2, Please Send material of CROSS COMPANY CODE TRANSACTIONS
3. Please send material of FUNCTIONAL SPECTS
my mail id [email protected]
Thank you friendsHi,
Hi,
Cross-Company-Code Configurations
Step1: T Code: OBYA
We have to maintain Receiver Company Code as Customer in Sender Company Code and Sender Company Code as Vendor in Receiver Company Code. Then problem will be solved.
Step2: T Code: OB60
There you can find 4 line items, Copy all the 4 Line Items using Copy As button and customize to your company code.
Cross-Company-Code Transactions
1. To Change Cross Company Code Document: T Code: FBU2 - Change
2. To Display Cross Company Code Document: T Code: FBU3 - Display
3. To Reverse Cross Company Code Document: T Code: FBU8 - Reverse
regards,
Santosh kumar -
Pass a shared variable from a sub-report into cross-tab
Hello everyone!
I need to pass a calculated value in a shared variable from a sub-report into a croos-tab in the Group footer of the main report. When I place this variable in the group footer I can see the value, when I use this variable in the Cross-tab, it is 0.
In the Sub Report:
whileprintingrecords;
shared numberVar Total_SF;
Total_SF:= calculation.
In the Main report:
whileprintingrecords;
shared numberVar Total_SF;
In the Cross-Tab I am using the above formula from the main report.
Do you guys know what I need to do for this to work?
Thank you,
T.Hey Tat,
I have learned to avoid passing shared variable from sub reports back to main reports. You just always seem to run into issues with execution order.
Personally, I try to create a shell report and add sub reports, calculating the values I need in the first sub report and pass the values to subsequent sub reports using shared variables. I'd recommend thinking about arranging your reports like this during your design time. It has saved me some headaches.
Maybe you are looking for
-
An error "GR/IR clearing account cannot be manually cleared" in F-04
Dear Experts, In F-04, when trying to clear an GR/IR account, I got an error "GR/IR clearing account cannot be manually cleared". Would you please suggest how to solve the problem? I do not have any experience in FI, so I would appreciate if you coul
-
Screen Sharing from OS X Lion to OS X 10.6 Server
Hi, I bought a new SSD Drive, so I decided to initialize my previous OS X Lion installation (on August I made an update from SL). Scenario: i'm trying to access from my MacBook Pro to the MacMini Server via the Finder built-in "Share screen" button o
-
My 23" HD Monitor Keeps Waking Up - Help!!
My monitor keeps waking up on it's own. I know there must be something going on internally with my Mac Pro that makes it wake up. What should I start with?
-
Dynamic Image rendering on JSP page
Hi All! I want to display images on my JSP page. However, the images should be generated dynamically (As are used by many sites during the registration process e.g., yahoo, etc..) How can i achieve this? plz help! Its urgent!
-
I am currently reading an article which states that "you cannot have global variables in java". Surely the variable named "globalVaribale" is global?? class Example{ private int globalVariable; public void method(){ }Calypso