Quantcast
Channel: SCN : Unanswered Discussions - SAP Crystal Reports, version for Visual Studio
Viewing all articles
Browse latest Browse all 2556

Dynamic Parameter Requires Additional Login

$
0
0

I'm working on a WinForms viewer for a MySQL database with VB.Net 2010 and CR2011 (14.0.4.738 RTM and using Engine 13.0.9.1312).

 

I have recently converted a CR8.5 report from about 8 years ago to CR 2011.  The original was a Union Query and did not work in the current version properly (ignored everything after the UNION ALL), so I converted to a Command.  See here for some more info.  The only difference in that thread is that I had to remove the parameters from the Command because when I edited in the designer to make one a Dynamic parameter, the prompts came up twice when I edited it in the designer level so I removed it from the command to use only the designer level prompt (the number of records does not slow the report down much so I am ok with it this way for now).

 

It currently works fine in the designer.  All the numbers and formatting is correct.  When I open the program, it asks for a database userid and password, logs onto the database and displays some information on screen from the database.

 

When I run the report in my viewer, it prompts me for a second userid and password using an Enter Parameter Values screen that shows the Server and Database greyed out, the program name and the field for the dynamic parameter.  I enter the proper userid and password and I get the correct information in my database.  The dialog also includes the Use Single Signon Key  of False that is also greyed out (I don't know how to set this).

 

I am logging into the database using code to set/change the database, server, userid and password properly.  When I convert the parameter back to a static parameter, it doesn't prompt me for the userid and password when runnign the report, and it does give me the same correct information from the database properly.

 

Does anyone know what might be causing this extra log in prompt?  I was hoping to add dynamic parameters to more of my reports.

 

I've done some searching but all the information that comes up so far has been releated to Business Views, I think in the Business Objects program itself and one solution is to enter a database userid and password associated with the Business View.  Because I am only using Crystal directly with a MySQL database, I can't use that solution.

 

Any help is greatly appreciated, TIA rasinc.


Viewing all articles
Browse latest Browse all 2556

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>