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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...fill region drop-down list at profilefill region drop-down list at profile
Previous
 
Next
New Post
11/24/2010 5:29 PM
 
sorry, I missed that

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/24/2010 7:47 PM
 
Hi Sebastian and all

This is a recurring (and old) question, then I'll post step-by-step the problem and how to solve it:

1 - Go to Host > Lists
a - Like USA and Canada lists, create a new list Region for your country and put some states in this list;
b - example: Country.Brasil:Region with entries Acre/AC, Amapá/AP, Amazonas/AM, etc...

2 - Go to your profile page and edit
a - change the country for Albania;
b - note that the Region field is a textbox;
c - change the country for USA or Canada;
d - note that the Region field is now a drop-down list, filled with regions from lists;
e - now switch to your country (Brasil) and see that the field Region back to be a textbox, even having a list of regions like USA and Canada.

Let's see how to solve this problem:

3 - Go to Host > SQL
a - type the following query to list the entries in the table Lists:

Select * From Lists

b - uncheck 'Run as script' and click 'Execute';
c - locate the entries with the regions of your country, and note the values of field EntryID.
Also note that the column SystemList regions of the USA and Canada are checked boxes, and regions that you included are UNchecked boxes;
d - suppose the 3 regions included have the EntryID value as 419, 420 and 421;
e - update the SystemList field with the value 1 for each region, using the following statment SQL:

Update Lists Set SystemList = 1 Where EntryID = 419

f - CHECK 'Run as script' and click 'Execute';
g - repeat this Update-Execute for each entry;

Update Lists Set SystemList = 1 Where EntryID = 420
(click 'Execute')
Update Lists Set SystemList = 1 Where EntryID = 421
(click 'Execute')

And done! =D
Now, go back to the edit page of your profile and switch between countries with and without regions and see that when your country is selected the field Region finally turns a drop-down list!

PS: I know that the update command can be better written, I put this way purposefully not to complicate for those who aren't programmers.

PS 2: I'll put in Gemini the problem and solution. and I think in module lists should exist more fields accompany each entry, as a box to set the entry is part of a list of the system, for example.

Hugs

Comunidade BrasilDNN Marcio Maciel, Brasil
 
New Post
11/25/2010 3:28 AM
 
you may even create a simple insert script with all the entries (like we provide one for Germany, Austria and switzerland here: http://www.dnn-usergroup.de/Sprachpakete/Download/Regionen/tabid/132/Language/en-US/Default.aspx)

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/25/2010 11:07 AM
 
Hi Sebastian

Yes I know. I was already planning to make several SQL to automate the process of ' becoming more Brazilian ' each new DNN I install, but in this case I was wondering why my list does not work as expected equal lists USA/Canada.

And to think that all this work is due to a true/false field!

=]

Hugs

Comunidade BrasilDNN Marcio Maciel, Brasil
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...fill region drop-down list at profilefill region drop-down list at profile


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