Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportsRunning SP from DNN ReportsRunning SP from DNN Reports
Previous
 
Next
New Post
4/28/2016 3:09 PM
 

My stored procedure works fine directly in SQL.  It is in the same database used by the website.  It has to be a configuration issue.  I suspect that the issue is with the parameters.  Can someone take a look at this below and get me pointed in the right direction, please?  I don't use "nvarchar" (yet) so even though the error message states that, it that doesn't appear in my code.  Thanks.

JoAnn Schlosser

 
New Post
4/30/2016 3:14 PM
 

I got it running fine hardcoding the parameters into the Query field:

Not a fan of query string parameters, anyway.   Now, since one of those is the UserId, how can I pass its token to the SP?  I read that they are available but not how to add them to the call.  Thanks.

 
New Post
5/1/2016 6:16 AM
 
query string parameters usually do not include @ sign, you would just use a typical parameter name like "UserID" and use a query "Exec getUser UserID"

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/10/2017 8:48 PM
 
As Sebastian said, in the "Allowed URL Parameters" field, just enter your parameter name without the url_ part, like this,

member,reportuserid

Make sure there are no spaces, just commas in between.

The UserID parameter is different. If you want to pass the current user from the report page to the stored procedure you do not need to enter anything for it in your "Allowed Url Parameters" Notice in my example above there is no mention of the UserID. You will pass the UserID in the procedure call later. See below.

Almost there. Now when you enter the query or stored procedure you reference each of your parameters with the name you entered above, preceeded with url_
Like this,

EXEC PVAS_UserRoster url_member, @UserID, url_reportuserid (spaces are OK after the commas this time if you wish)

Notice that the UserID was passed by simply including @UserID in the procedure call in the right order.

That should do it.

Also, just an additional note. The UserID is stored as an int data type, not a varchar.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportsRunning SP from DNN ReportsRunning SP from DNN Reports


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

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

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.

Content Layout

Subscribe to DNN Digest

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out