Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Way of editing lists with SQL at portal level?Way of editing lists with SQL at portal level?
Previous
 
Next
New Post
10/14/2007 9:22 PM
 

I'm trying to work out if I can run some SQL scripts to maintain lists at portal level. On my events module, for example, I have Event Category. Currently all the list entries are set to PortalID = -1.
I ran a script to change half of these to Portal 0 (my dev portal).  I then expected the ListController to get only the items for that portal.   
I use this code:
                    listDataSource = listController.GetListEntryInfoCollection("SmartThinker_EventCategory");

to get the items for this list. It gets all the items by that name, regardless of portal. I then had a look at the core stored procs, and GetList is the one that uses PortalID, but this returns the top level list info. The only stored proc (4.5.1) that I can see that returns list items is GetListEntries, which doesn't take in the PortalID, so it will ignore this.

So my question is, how should one retrieve list entries for a list for that portal only. I don't want to use code to filter the list on PortalID, I want to use the core methods that only return the list entries for that portal. Does this exist?
I expected an overload which looked something like this:
                    listDataSource = listController.GetListEntryInfoCollection(ListName, PortalID);

Am I approaching the solution incorrectly? When you make a duplicate list for a different portal, does it share the same name and just have the PortalID different,

eg.

ListA Portal 0
ListA Portal 1

or does it have to have a different name:

ListA Portal 0
ListB Portal 1

I would not expect it to work like this as it almost makes PortalID redundant.


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
New Post
10/19/2007 7:10 PM
 

Anyone used lists at portal level?


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
New Post
10/26/2007 1:54 AM
 

Perhaps one of the developers who worked on this could comment? I am not asking for a UI, but if we can solve this it is a major step forward for portal list-users the world over...


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
New Post
10/26/2007 2:48 AM
 

Hi Rodney,

I'm hoping you're looking at this to enable portal level categories in your Groups module?

;-)

rudgr

 
New Post
10/26/2007 7:01 AM
 

Indeed - There is no UI for lists at portal level for some reason, but I am trying to run SQL scripts to move lists to a portal - if this can be done then I will release some scripts to help users move lists from Host to Portal level, but I have hit a few problems highlighted above.

 

It will definitely benefit all the Smart-Thinker modules, as well as any other module that uses the core list functionality.


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Way of editing lists with SQL at portal level?Way of editing lists with SQL at portal level?


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.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out