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!

Form Submission + DB Check = Pass/Fail
Last Post 11-08-2011 08:46 PM by Don Gee. 3 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Matt EckmannUser is Offline
skipping stones
skipping stones
Posts:8
Avatar

--
11-08-2011 08:56 AM
    I am setting up a DNN site to take requests for free samples, but I don't want to send a sample if the same person has already successfully requested a sample within the last year. To do this, I need to manipulate the form variables and then make a couple of queries to my own, non-DNN SQL DB to make sure this person isn't a repeat. 

    I was hoping to use HTTP Post to query my own SQL DB, and then return a pass/fail value that will display a "thank-you page" or "error page" to show the visitor if their request has been submitted or rejected. 

    How can I do this in Dynamic Forms? It seems that there is no way to work back up the HTTP Post to show a redirect based on the pass/fail of a SQL Query that occurs after an HTTP Post.

    Thanks!
    Matt

    Don GeeUser is Offline
    river guide
    river guide
    Posts:273
    Avatar

    --
    11-08-2011 10:44 AM
    Hi Matt,
    I think that this process can be done with Dynamic Forms this way as one way to do it. What if every time some one does the request for the free sample their contact info and the current date was entered into a table ( i.e DF_Free Samples table)? this is done through a sql completion event and a insert is made into this table if the person isn't previously in the table. You want every member in the table to be unique based on at least something like address of where the item is sent. So maybe only one household gets the item for free. This table will have a field that is for date when free sample is sent. Everybody gets a free sample if the date field is empty. When YOU send out a sample the date field gets filled with today's current date. Also when someone orders a free sample in the completion event an update is run to delete all records in the table that have the date field for free items sent with a date to be equal to or greater than 365 days. That way you are always cleaning out records for free samples that are a year old. This allows anyone to get back into the table after a year has passed. So in short you have a form where you are running the insert into the table for the customers and then an admin form set up where you guys to the filling of the orders. No need to worry about postback processing this way.

    Thanks


    I would expect that you would have a note in the form that when people get the free sample they can only get one per year.

    Matt EckmannUser is Offline
    skipping stones
    skipping stones
    Posts:8
    Avatar

    --
    11-08-2011 02:50 PM
    Hi Don,

    I truly appreciate the brainstorm on this one, but unfortunately our internal fulfillment processes are not able to be reworked to this extent. In addition, we have to do a bit of variable gymnastics to make try and anticipate how folks might slightly tweak their address etc to get around the verification.

    Any way to do my original question?

    Thanks,
    Matt
    Don GeeUser is Offline
    river guide
    river guide
    Posts:273
    Avatar

    --
    11-08-2011 08:46 PM
    Hi Mat,
    The way I understand things dynamic forms has Initial SQL Rendering/Bind feature in module configurations that allows for a sql stored procedure to be called prior to form submission but after certain values have been input into the form by the user ( i.e. name, address, etc). These values can be required fields and will be parameters to the stored procedure to your database. As required fields the form can't be submitted until all the needed values for the stored proc are supplied. A return value like Pass or Fail can be brought back into a hidden field in the dynamic form and serve as a flag that is processed by completion events in the form upon form submission. The completion events can then use the hidden field value to re-direct the user to one of two message pages. One message page will be for displaying "Sorry you have already received your free sample for this year". The other message page will be for displaying "Thank you for submitting your request for our free sample. Your product will be sent to you soon ( or something like this)".

    Mat, the process above is not done through HTTP post because I have not seen any way to accomplish what you are asking for with HTTP post in Dynamic Forms but I have seen 1) Initial SQL Data Bind, and 2) Re-direct completion events do the kind of thing that you want. Some variation may be needed and I am also assuming that your current non DNN database has the needed data to be queried through a properly structured stored procedure to do what you need.

    To actually look into accomplishing this you may want to get a Premium Support quote. At any rate, I hope this gives you something to go on.

    Thanks
    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