Wednesday, September 08, 2010
Dnaxp.net Forums
Minimize

Dnaxp.net Forums

The Dnaxp.net Community is proud to present our support forums. The forums enabled us to provide more benefits and better service to our valuable community.

  
Forum
Minimize
 
ForumForumGeneralGeneralBugs & ProblemsBugs & Problemsstored procedure not workingstored procedure not working
Previous Previous
 
Next Next
New Post
 6/6/2007 1:23 AM
 
I created a custom User Profile property called "LocationID". I then created the following stored procedure to retrieve the LocationID based on UserID.

create procedure DNNUserIDToLocationID
@UserID int
as
select
b.PropertyValue as LocationID
from
dnn_ProfilePropertyDefinition a,
dnn_UserProfile b,
dnn_Users c
where
a.PropertyDefinitionID = b.PropertyDefinitionID
and b.UserID = c.UserID
and a.PropertyName = 'LocationID'
and c.UserID = @UserID

I am now trying to use this stored proc in a Report Grid query.

This works: (hard coded input)
DNNUserIDToLocationID 3

This does not: (dynamic @UserID input)
DNNUserIDToLocationID @UserID

error message:
Query variables detected!
Query returned 0 rows in 0 seconds.

New Post
 6/6/2007 7:11 AM
 

Hi! Thanks for your question!

Try to use exec DNNUserIDToLocationID @UserID
Furthermore, while you're logged in as Host (during the settings configuration), the UserID is 1. Save the report and try to visualize the results with another user.

Kind Regards,
D.

Previous Previous
 
Next Next
ForumForumGeneralGeneralBugs & ProblemsBugs & Problemsstored procedure not workingstored procedure not working

  
Forum Policy
Minimize


These Discussion Forums are dedicated to the discussion of the Dnaxp.Net Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial products and non-commercial products which are noectly related to the DotNetNuke Web Application Framework
2. No Flaming or Trolling.
3. No Profanity, Racism, or Prejudice.
4. Site Moderators have the final word on approving/removing a thread or post or comment.

  
Adsense
Minimize
  
 
Minimize

Full compatibility of ReportGrid & ReportChart with all releases of DNN from 4.0.2 to 5.4.4

 

The help desk support is always available to help you! Contact us!

Only $64.95 Offer expires on 12/31/2010

 


  

Snowcovered modules
Minimize
  
Privacy Statement  |  Terms Of Use
Copyright 2006-2008 by Dnaxp.Net