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

HomeHomeDevelopment and...Development and...Getting StartedGetting StartedNeed PostalCode in UserProfile.PropertyDefinitionID to be same across all usersNeed PostalCode in UserProfile.PropertyDefinitionID to be same across all users
Previous
 
Next
New Post
7/31/2014 2:51 PM
 

Hello:

I am migrating an stand alone program that needs the user PostalCode and Vendors.PostalCode so the miles apart can be calculated.  Vendors is OK but NOT OK in UserProfile table

Need PostalCode in UserProfile.PropertyDefinitionID to be same across all users.  The first user it was 11, 2nd 34 and keep incrementing.

Thanks in advance for any suggestion.

Lee

 
New Post
7/31/2014 3:48 PM
 
Hello,

I'm not 100% sure I'm understanding your issue correctly... But, in any case, here are some notes:

Postal Codes are user-entered data and need to be accepted from users all over the world. What that means is that you can't always assume they'll be in a format of #####. Even in the US, #####-#### is still perfectly valid.

So, you need to make your code smarter. Some of this depends on your locations API - that might handle this all just fine. If not, then you'll need to pre-clean the data to find the records that you can handle. For example, you could look at US values only that have 5 or more characters and take the left five, and make sure they're numeric. If that all works, assume it's a valid zip.

Mike
 
New Post
7/31/2014 5:25 PM
 
ProfilePropertyDefinitionID will be same for all users within a site, if you need it to be the same for all users, you might need to insert it using a merge statement into userprofile table. Is this, what you are looking for or an option to retrieve the value within your custom module?

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
7/31/2014 7:11 PM
 

Mike the format is not the problem.

Sebastian  I need the DB data in UserProfile.PropertyDefinitionID to be same number across all users.  I have custom profile as PostalCode is not available unless custom.

The first user PostalCode was UserProfile.PropertyDefinitionID=11, 2nd UserProfile.PropertyDefinitionID=34 and keeps incrementing.

Is there a DNN switch that will keep UserProfile.PropertyDefinitionID # with PostalCode constant for all users.

Unless I can solve this looks like Users.LastIPAddress and a different DB with Lat & Long so distance can be calculated is the way to go.

 
New Post
7/31/2014 8:00 PM
 
Lee, if all users are in same portal, PropertyDefinitionID must be the same.
I haven't noticed any issue in this area.
Would you mind to explain further details, what you are doing and trying to achieve, thank you.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedNeed PostalCode in UserProfile.PropertyDefinitionID to be same across all usersNeed PostalCode in UserProfile.PropertyDefinitionID to be same across all users


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