R2i DotNetNuke® Forum

R2i wants you to have the opportunity to ask questions, post reviews, help others or just rant and rave about DotNetNuke® or any of the R2i Modules and Skins. Our team spends hour upon hour, day after day, working on custom DotNetNuke® modules and services; please feel free to ask us anything.
 
SubQuery Variable Names
Last Post 01 Jan 1900 05:00 AM by . 3 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Informative
schafer_bradUser is Offline
New Member
New Member
Posts:14

--
24 Feb 2006 04:45 AM  
It would be great if we could isolate SubQuery Columns from other Columns, I find that as I use Stored Procs, the field names match the main query field name alot of the time. This gives the wrong info, and forces me to use 'fake column names' or not use sprocs.

Perhaps a format like: [ColumnName,SubQueryName]

Main query columns are just : [ColumnName]

For instance:
{SUBQUERY, Name="qryLinks",
Query="EXEC MyStoredProcedure [UserID]",
Format="<option value='[ID,qryLinks]'>[MainQueryColumn]-[Label,qryLinks]</option>",
SelectedFormat="<option value='[ID,qryLinks]' SELECTED>[MainQueryColumn]-[Label,qryLinks]</option>", SelectedField="ID",
SelectedItems="[ddID]"}

In this manor the values would be from the SubQuery, but the option text could include columns from the main query.
<center><b>Brad Schafer<br><br><br><img src="http://www.theschafergroup.com/Portals/0/Logo-New.jpg"><br><br><a href="http://www.thechafergroup.com" style="font-size:7px;"> Brand Building</a> , <a href="http://www.thechafergroup.com" style="font-size:7px;">Lead Generation</a>, <a href="http://www.thechafergroup.com" style="font-size:7px;">Web Design</a></center>
kevinmschreinerUser is Offline
Advanced Member
Advanced Member
Posts:729

--
26 Feb 2006 02:47 AM  
Thats odd, I will have to double check the Sub query, it was in the original specification to work exactly like you just posted. It is supposed to simply piggyback the logic provided within the Execute Action logic.
zingernetUser is Offline
New Member
New Member
Posts:48

--
11 Sep 2006 12:43 AM  
I have been having trouble using any resulting columns at all from a stored procedure when i use it in a subquery. If my subquery is as follows:

{SUBQUERY,Name="qryRating",Query="Exec ProductRating [ProductID]",Format="[ProductRating]"}

and the last statement from the Stored procedure is "select AVG(Rating) as ProductRating from Products where ProductID = @ProductID

Then why does the resulting output just have the literal text, [ProductRating] ? Maybe I'm just doing something wrong ... can someone please help.

Thanks
zingernetUser is Offline
New Member
New Member
Posts:48

--
11 Sep 2006 12:51 AM  
Nevermind ... I had to clear the web cache. After I did that it worked.
You are not authorized to post a reply.

Active Forums 4.1
 

New York, NY • Baltimore, MD • Vienna, VA • St. Louis, MO • Seatle, WA • 410.327.0007 • info@R2Integrated.com

Bookmark & Share Bookmark and Share