Great Ideas. Always Flowing.

We are not happy until you are happy. Client satisfaction guaranteed. Whatever your needs and requirements, we have the skills and resources for the job!

Quick login...


Or... now make it easy with Facebook Integration
Connect via Facebook



Top Sellers

Frustrated over the lack of customization for your user's registration fields? Dynamically setup your DNN Portal with custom registration fields, layout, questions, and other core integration options......

Ultra Video Gallery is a brother product of Ultra Media Gallery, UVG allows you to upload videos in various format and automatically encode them to flv or H264 format, you also can add videos from internet or record live videos from your webcam.

Build high performance, completely customizable data-entry forms and views driven by your DNN and external databases. New built-in tools make it a snap to quickly create data entry forms, data views, and even database tables. Plus, add your own HTML, CSS, Javascript, SQL commands, stored procedures,

The most advanced DotNetNuke shopping cart on the planet. Easy to use e-Commerce, Secure Shopping Cart Software and SEO friendly. B2C / B2B Ecommerce Sites.

One stop solution for events calendar and events registration! FREE DOWNLOAD is available now!

Custom Login
Last Post 04-24-2009 05:31 PM by Chad Nash. 5 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
John GleichmanUser is Offline
Posts:5
Avatar

--
04-23-2009 08:45 AM

    I'm using Dynamic Forms to create a login screen that points to an external SQL user table - nothing to do with DNN users.  I've got a User Name and Password textbox along with a submit button and a hidden UserID field.  I've got the Validation SQL query working nicely to check the entry.  My question is, how do I get the UserID of the logged in user (coming back from some SQL query) into the UserID hidden field before the page is redirected.  Is there any other way to pass this UserID on?  Where do I perform this UserID SQL query?

    David ToUser is Offline
    river guide
    river guide
    Posts:2719
    Avatar

    --
    04-23-2009 11:45 AM
    HI, userID of the person currently logged in can be accessed automatically with the token $(UserID). If you have a hidden field (shortname called: HiddenUserID) for example, just put a client side javascript on that hidden field and on page load like this:

    $(HiddenUserID) = $(UserID)

    Make sure to pass this HiddenUserID querystring along and on the page redirect, you should see HiddenUserID = UserIDNumber passed along on the URL.
    Try this out and see if it works for you. -- David
    John GleichmanUser is Offline
    Posts:5
    Avatar

    --
    04-23-2009 12:24 PM

    I guess my main problem is knowing where to put the SQL query that returns the UserID.  The Validation Query only returns the value for validation so it doesn't look like I can return a UserID there.  It doesn't look like I can write a SELECT query in the Completion Events section to return the UserID.  Where does my SQL query go that can be fired after the submit button is clicked?

    David ToUser is Offline
    river guide
    river guide
    Posts:2719
    Avatar

    --
    04-23-2009 12:49 PM
    HI John, try the following:
    1) create a hidden field or textbox field (read only) called GetUserID or something
    2) under "Advanced Field Options", for "Default Value", choose "SQL Driven" and then type in the following SQL statement:
    select userid as defaultvalue from users where userid = $(UserID)

    This will return the userid of the current login user. You can then "pass values of this question to querystring variable" to use on the next page redirect completion event. -- David
    John GleichmanUser is Offline
    Posts:5
    Avatar

    --
    04-23-2009 01:25 PM

    Since I'm not using any of the DNN user information (pulling all of it out of a different database), $(UserID) won't have a value I'm looking for.

    If a use a default value SQL query for the hidden field, my SQL statement needs to look something like: but where do I get @Lastname from if it hasn't been filled in yet. I need this query to fire after the submit button is activated on this form.

    SELECT ClientID FROM [server].[database].dbo.Users
    WHERE MTLastName = @LastName AND MTFirstName = @FirstName AND Password = @Password

     

    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    04-24-2009 05:31 PM
    Hi... Then next version (3.0 released in May/June) has a SQL Default for a question event type so you could get it right away, you might consider this route later and you can test this now on www.betasprings.com. Beyond that, where do you 'need' that? In an email event, or in a database somewhere etc? I believe you would have to use a SQL Event to 1. get the data and 2. store it wherever you need it (where is that?). You have access to a variable called $(UniqueCompletionID) that you could reference and update the table in the DynamicForms_QuestionResponse table directly maybe? Not sure where you need that data though... Once you have it what are you needing it to do?

    -Chad

    You are not authorized to post a reply.


     
     

    Join our mailing list...

    Get current news and events the easy way
    Subscribe Me

    Recent Blogs...

     
    Copyright 2005 - 2011 by Data Springs, Inc.
     
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi