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!

Combo Box - Change the Option List based on Number of Registrations
Last Post 03-25-2008 07:15 AM by Chad Nash. 1 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Michael WinbladUser is Offline
wading in the water
wading in the water
Posts:26
Avatar

--
03-25-2008 04:52 AM

    Combo Box – Registration with Limits on the number of attendees.

    I have an application where we are collecting the reservations for breakout sessions at an all day event. Some of the breakout sessions are in large rooms and can handle everyone at the event. Others are space limited and can only hold a small number of people. Rather than allowing everyone to register and then call them to let them know they can’t attend, I decided to change the list of options depending on how many people were registered.

    Data Base Support:

    I added two tables to my SQL Database: helm_meeting list and helm_meetingres.

    Helm_meetinglist

                    MeetingShort varchar(50) (used for the Question Options
                    Meeting varchar(50) (used for the Question Option Value
                    Session varchar(50) (groups the meetings by time period)
                    maxnum int  (sets the maximum number of attendees

    Helm_meetingres

    Registration Unique ID
    Session varchar(50)
    Meeting varchar(50)
    Number int (how many people registered for one registration form)
    ReservationTime Timestamp

    The first table allows me to flexibly change the meeting list and schedule without changing the dynamic question definition. The second table is used to track how many people are currently registered for each meeting at the event.

    Form Event:

    When a form is saved, the following insert is executed for each combo box on the form. This saves the amount of seats reserved.

    insert into dbo.helm_MeetingRes
    (UserName, Session, Meeting, Number) values
    ($(UserID), 'Session A', '$(SessionA)', $(NumResSA1))

    Whenever a form is saved, the number of people reserving spots for each meeting is saved to the helm_meetingres table.

    Getting the list

    When setting up the combo box, I use the SQL option to populate the option list. For this project the selection query is of the form:

    select MeetingShort as QuestionOption, Meeting as QuestionOptionValue
    from dbo.helm_meetinglist a
    where session = 'Session A'
    and maxnum > isnull((select sum(number) as curnum
        from dbo.helm_meetingres b
        where session = 'Session A'
        and a.meeting = b.meeting), 0)
        order by displayorder

    The IsNull function is used to provide 0 as the number of reservations when there are no tables in the row. Otherwise the query fails and returns nothing.

     

    When someone opens the form, the list is generated based on the number of current registrations. It is possible to overbook for a meeting if two people load the form at the same time but the chance of this is fairly small. In the event that this happens, we may need to contact the second person to let them know the meeting was full. We use the timestamp to break ties.

    I hope this is useful to someone else. I have multiple dynamic forms on this website accomplishing everything from giving instructions before the person registers (and asking them to say they read the instructions) to an Email generation page to make it easier for people to send emails to their legislators.

    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    03-25-2008 07:15 AM
    Big thanks for the post Michael... I think many users will find this useful for conditional type of form dropdownlists and options... Maybe users want to use Dynamic Forms / Dynamic Registration for events and classes where they often can run out of rooms etc...

    Thanks again.

    -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