Recently Viewed...
DNN Modules
SnowCovered Top Sellers

Ultra Media Gallery 5.3
Ultra Media Gallery is the most popular photo gallery and media gallery module for DotNetNuke, the major purpose of this module is to allow you create unlimited pictures and medias to your gallery and organize them by albums, your albums and medias are browsed in flash interface.

XMod 5.1
Version 5 of the perennial best-selling tool for creating data-based solutions in DNN without custom programming. This version focuses on greater flexibility, expandability, and ease-of-use.

Ultra Video Gallery 2.3
Ultra Video Gallery is a brother product of Ultra Media Gallery, The major purpose of this product is to provide an easy way to add videos in various formats to your website by and play them in a unique flash gallery.

Flex By DrNuke
The Flex skins are professionally designed, coded and packaged by a team of DotNetNuke experts. Available in 8 great colours, each with 15 banner images, 2 menu types and a choice of 3 background styles. The entire pack features a total of 2376 skins!

Open-DocumentLibrary v3.0
Powerful, Ajax Enabled, Easy to Use. Document Management has never been better. Open-DocumentLibrary allows DotNetNuke users to share and manage documents in a flexible, intelligent way, offering granular control over Folder and Document access.

CATALooK.netStore Pro & Booking Tools w/source DNN4
Powerful multilingual, search engine optimized ecommerce store and renting/letting system including a concept utilizing many business models in one application integrates:Catalog,Media gallery,Configurator,Packages,Data entry forms,Subscriptions,Recurring billing,40+ CC Gateways,UPS and USPS support

Document Exchange Professional 4
Edit documents directly on your server using the latest iteration of the premier document management solution for DotNetNuke (DNN). With a completely revised Ajax-enabled UI.

DNNMasters SEO Suite Enterprise w/Source
If you want better Search Engine ranking you need KeepAlive, URL Rewrite, Custom 404 error, Custom Redirect, Friendly URL's, Sitemap, Google Sitemap.DNNMasters SEO Suite delivers all of it and more!

Dynamic Skins :: 7 Colours
This Skin Pack comes in 7 colours with 6 Header Options, 3 Widths, 3 Background Options, and 48 Mix & Match Containers...

Skin Pack L006 Bundle - 280 Skins 580 Containers
Contains 20 colors. Each color skin pack includes 14 skins and 29 containers. 20 banner images in 10 categories. Horizontal and Vertical Tabbed menu. DNN4/DNN3.
    |   Register   |   Sunday, July 20, 2008   
Data Springs Product Forums...
Subject: SQL to change profile value?
Prev Next
You are not authorized to post a reply.

Author Messages
Ray
Posts:3


05/13/2008 10:38 AM  

Hi, I am a new user (purchased today).


Do you have SQL that I can use to change the value of a DNN profile element?

I have found SQL to retrieve a profile field, but not to update it, and my SQL is a bit too shaky to want to mess with DNN's DB without being sure I know what Im doing.

 

Chad
Posts:1690
river guide
river guide

05/13/2008 2:26 PM  
Actually you should not need this. Under advanced field settings for each field you can 'link' each Dynamic Field to a DNN core field. So... Doing this will enable the module to both read and write from this core DNN extended profile property.

Chad
Ray
Posts:3


05/13/2008 7:20 PM  

Thank you for responding so quickly.

I do understand that I can tie a dynamic field to a DNN core field. 

However, I want to be able to access profile fields from modules OTHER than yours, modules which allow programming (specifically listx and open smart module).

I want to use DR to update these fields when people sign on, but at other times I may need to change them myself. I just basically want to have control over them, inside or outside of DR.

So I need SQL to update a DNN core field.  Or, if that isnt possible, I will not link the fields to the core and I would need SQL to update one of YOUR core fields.

Actually,  before I bought, I thought I understood from an email to your support yesterday that this was not a big deal. Hope so, cause I have a small brain.

Again, thanks again for your really fast response.

Ray
Posts:3


05/15/2008 2:46 PM  
Did iether you or I misunderstand my snowcovered question ?

Below is the conversation, I took it to mean that I would be able to both read or update profile fields myself should I need to do so, using SQL. I have found SQL that works to read such fields if they are bound to the DNN core, I just would like to be able to update the value of the field. I do not need to be able to create or delete it.

Question:

Hi. I have questions about access to your fields. Lets say I use your module to add a new registration field (myNewField), then UserX registers and your module creates a value for his myNewField. What are the ways that I can access that field elsewhere in DNN? Can I display it with a token using the DNN HTML module? Can I read it with SQL from another module? Can I easily UPDATE it using SQL in another module? If so, would something bad happen if I update the value of myNewField for UserX using SQL in another module?

Answer:

Hi. Well there are multiple options here. First, you can create an extended DNN Core profile field and you can always link this profile property field to your new Dynamic Registration dynamic field. This way whenever the field is updated (outside of Dynamic Registration) it will still render properly within Dynamic Registration. Additionally, any time the user updates (or registers) it will update this extended profile property in the core so that other 3rd party modules (and modules such as the DNN HTML Module) can then retrieve or render that users profile property. Besides these methods you can also use SQL Events to actually store the data into any table you want to. If you are needing more options, Dynamic Registration also does include its own tables you could pull the information out of if you needed to.
Bamse
Posts:65
river guide
river guide

05/16/2008 2:20 AM  

Having DR to adjust default user properties is really simple. Say you want to have a value “mother’s maiden name” on a user and you want the user to be able to insert/view this value both using DNN built in profile editor and in a form using DR.  

So create it in the core DNN user properties editor, make it “visible” and your users should be able to view it and change it using the built in user profile.

Then you want a form somewhere where this value should be updated/created, here is where DR makes it simple. Drop a DR form on a page; use the wizard to create first three fields, username, password and password reminder, maybe hide this three fields to already logged in users by a setting in the form core integration advance settings.  Continue create a textbox question; in textbox question advanced settings connect this question to the core field, your done!

Now you have a form where the user can change this value, this form can now be modified in gazillion ways to accomplish additional things you want but the core “mother maiden name” field will always be viewed/changed from this additional form together with the core DNN default user profile editor.

Two ways to change “mother maiden name” is accomplished, no “sql code” is necessary.

You are not authorized to post a reply.



ActiveForums 3.7

Copyright 2005 - 2008 by Data Springs, Inc.
Terms Of Use | Privacy Statement