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.

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.

Engage: Publish 5.1
Content Workflow + Versioning + Categorization + Multiple Display Options = Truly Advanced DotNetNuke Content Management (Requires DNN 4.5.1 or later)

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 2472 skins!

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.

Events Calendar and Registration 2.1.8 for DNN4.xx
One stop solution for events calendar and events registration! Demo site available for free trial.

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.

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!

Form Master 1.6 For DNN 4
Form Master 1.6 improves on the success of version 1.5 with new features in Function, and Presentation, while maintaining the Intuitive User Interface. Form Master 1.6 delivers visual form design where input fields can easily be created, modified, and moved.

Aero // 8 colors // multi-theme skin pack (v1.2)
aero is a flexible skin pack, featuring 8 incredible colors.Combine 3 background layouts, 3 widths and 6 headers to create your own, personalized site.Now also in Color Specific Packs!!
    |   Register   |   Sunday, September 07, 2008   
Data Springs Product Forums...
Subject: Underlying Value!!!!!!!!!
Prev Next
You are not authorized to post a reply.

Author Messages
Amith
Posts:24
going with the flow
going with the flow

06/25/2008 2:13 AM  

Hi,

I need some help on this. I want to use two fields from the registration module and concat it into a single DNN profile.

Another thing is , i have a dropdown box, I need it have some underlying value which corresponds to what is shown in the dropdown list.

For e.g if the value selected in the dropdown list is monday. i want the value that gets stored into the dnn Profile to be 1.

Is that possible in Dyn. Reg or i need to get into the data base.

Help me out on this!!

Thanks

Amith

Amith
Posts:24
going with the flow
going with the flow

06/25/2008 6:33 AM  

This is What i did. Ineeded to update a profile property by using two values from the dyn.Reg and 1 from the database.

I used SQL completion event and typed in the following query.

Please let me know if i can use the dyn.reg parameters like this:

Amith
Posts:24
going with the flow
going with the flow

06/25/2008 6:36 AM  

DECLARE @UserID INT
DECLARE @PropertyValue VARCHAR(50)
DECLARE @Carrier VARCHAR(50)

SET @Carrier = SELECT CarrierAddress FROM Carriers WHERE CarrierName=$(MobileC)
SET @PropertyValue = $(MobileN)+@Carrier
SET @UserID = $(UserID)

INSERT INTO UserProfile(UserID,PropertyDefinitionID,PropertyValue,PropertyText,Visibility,LastUpdatedDate)
VALUES(@UserID,77,@PropertyValue,NULL,2,GETDATE())

Amith
Posts:24
going with the flow
going with the flow

06/25/2008 7:05 AM  

Is the syntax of the query correct?

Help me write is query

Thanks

Amith

Chad
Posts:1873
river guide
river guide

06/25/2008 6:53 PM  

Hi. Well you can fully test any SQL directly under Host, SQL before creating a SQL completion event from it.

1st, if the user already has a profile property then this would cause an issue as it would be inserting another one. You would want to create an insert or an update stored procedure. If you didn't create an add/update you would at least want to delete from the table for that specific UserID and that specific profile property definition ID.

2nd, anywhere you are referencing a varchar property that is an actual token you would want to use ' before and after the token. So it woudl look like '$(MobileC)' and not $(MobileC) or it would look like '$(MobileN)' + @Carrier

Ummm... Once you have it working I would make it a stored procedure to limit the possible security issues (SQL Injection).

As far as the dropdownlist text/value - Just add options and then click on each option to set the text and the value to be different. After you set them you can reference them within completion events as $(Field) which represents the value and $(Field_Text) which represents the text.

We can also handle any of the above implementation for you if you need something sooner and don't want to code the completion events etc... You can review our standard support VS premium support at http://www.datasprings.com/productsupport/



-Chad

Amith
Posts:24
going with the flow
going with the flow

06/25/2008 9:19 PM  

Thanks Chad, it works.

Amith

You are not authorized to post a reply.



ActiveForums 3.7

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