Solved

CurrentCEUserName parameter in main report

Posted on 2013-05-14
4
416 Views
Last Modified: 2013-05-20
Folks,

currently we have been 'hardcoding' the values we will use for CurrentCEUserName. The problem the outside report (main report) has the hiearchy we are using for the subreport data ( no hierarchy but uses the hardcode id and scope type) The problem is there is no way to pass CurrentCEUserName to the stored procedure in the main report or is there?

Mike
0
Comment
Question by:gilweber3
  • 2
  • 2
4 Comments
 
LVL 34

Accepted Solution

by:
James0628 earned 500 total points
ID: 39167713
Disclaimer: I haven't used Crystal Enterprise, so I've never been able to use that user name field.

 If you need to pass a value from a subreport to the main report, that can be done using a shared variable.  However, if you need to pass that to a SP that's used by the main report, I don't think you can do that.  CR will probably execute the SP in the main report before any subreports.

 Maybe someone else will be able to offer a solution.  And if I'm wrong, hopefully someone else will correct me.

 James
0
 

Author Comment

by:gilweber3
ID: 39167924
James I think you are correct. Honestly we are just trying to explore our options after I spent many hours already coding this to perfection but did not take this into consideration.

We basically have come to a crossroad we can have it in the main report but you can not pass it to a stored procedure in the main report.  You can use it as a filter in the main report against the data returned in the record selection criteria for a stored procedure or using either a table or view and it will create dynamic sql which will be executed at the server.

the problem is we will probably have to push our select statements to the sub reports( gets our user base) or create views but a lot of how we get the user base is rooted in the use of functions which sql will not let us do I assume.
0
 
LVL 34

Expert Comment

by:James0628
ID: 39167974
I don't know what kind of functions you're referring to, but you can create functions in MS SQL, for example.  But I suspect that you're referring to specific functions or something like that.

 James
0
 

Author Comment

by:gilweber3
ID: 39168268
no these are custom made function ins SQL (scalar valued)
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question