Buck Anderson - DNN Professor Member Login
May 22, 2012

ForumsDNN Professor Forums

DotNetNuke Forums | Xmod Forums | Internet Marketing Forums | DNN Professor Product Forums

Product Support and Product Forums Registration


Subject: Advanced Search SubCategories Not found
Prev Next
You are not authorized to post a reply.

Author Messages
sentientUser is Offline

DNN Newbie
DNN Newbie
Posts:5
Send This Member a Private Message

08/21/2011 12:55 PM  

 Ive noticed that there is an issue with Categories and the associated SubCategories for a listing being saved in different tables. The problem with this is the SQL function in the Advanced Search has a bunch of UNIONed queries referencing the "same" tables.

 

How is the data stored in the different tables? Rather than create a further 16 Union queries - how can I guarantee that a category or subCategory will be saved in a specific table, say [KB_XMod_Index_VC50] or [KB_XMod_Index_VC100]

The only way I can retun any data is chaning the SQL to something like.

Select DISTINCT t1.[Value] FROM {DBobjQual}[KB_XMod_Index_VC50] t1 JOIN (SELECT FormId, XmodID, Approved FROM {DBobjQual}[KB_XMod_Modules]) t2 

ON t1.XmodID = t2.XmodID AND t1.[key] = 'SavedSubCategory' AND (t2.[FormId] = {BDFormId})

JOIN {DBobjQual}[KB_XMod_Index_VC100] t3 ON t1.XmodID = t3.XmodID AND (t3.[key] = 'cboCategory') AND (t3.[value] = '{selCategory}')

It would be good to get all the data for a listing into the same table.

 

Thanks

You are not authorized to post a reply.
Forums > Product Forums > Business Directory > Advanced Search SubCategories Not found



ActiveForums 3.7

Copyright 2004 - 2012 by Jive Media Group LLC. All Rights Reserved.  | Terms of Use | Privacy Statement | Email White Listing | Site Map