Crystal Reports database connection to .csv file dependent on logged on username

I am going to create a .csv file and put it into a user directory on network.  Any file in that directory is for that specific user.  The directory name will reflect their network logon name.

Question is - can I setup one crystal report which will detect the current logged on name and pull the .csv file from the directory that matches the current logged on user?
maverick0728Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

vastoCommented:
No , you can't!

You can create a database with 1 table and put the records for all users in this table. Add also a field UserName and put the user connected to each record. When you create your report you can get the currently logged user, either using a viewer or UFL and include it in the Record Selection formula. The result will be the report will show different set of data for each user. Here is a sample video showing how to pass the user name to the report using a viewer:
https://www.youtube.com/watch?v=ADXiP24N6Fw
The viewer is R-Tag (www.r-tag.com) and the free version will be able to handle this.
Here is also a link to a free UFL, which can be used to get the current user name : http://www.viksoe.dk/code/u2lwin32.htm
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mlmccCommented:
As I read this, you want to change the data source based on the user's name.

You can't do that in the report.  You will have to build an application to get the user's name and change the report data source to the correct CSV or use a third-party tool that can change the data source.

There is a good list of viewer and schedulers on Ken Hamady's website
http://www.kenhamady.com/bookmarks.html

Ken does an annual evaluation of the viewers and has his review linked to his page.
http://kenhamady.com/cru/comparisons/crystal-reports-viewers

mlmcc
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.