Recently Viewed...
To help you navigate to pages you most recently visited, select from the links below.
Product Forums
Sharepoint Forums
Password Reset Requests
Testimonials
Flash Contacts
Stock Quote Web Part
Dynamic Tags
Info Pics
Back on Track
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.

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 2448 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.

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.

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.

DNN360.net 6 Modules (On SPECIAL) ! (New)
This is bundle of useful modules from DNN360.net (Navigation Suite All in One 1.3.8, The Art of TransMenu 1.2.8, Yahoo Tab2.3.7, Perfomance TuneUp,6 nice skins, 5 Flashs vital players combined into one.

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

CATALooK.netStore Pro & Booking Tools 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 Powerful multilingual, se- ges,Data entry Powerful multilingual, se- ing billing,40+ CC Gateways,UPS and USPS suppo

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.

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...
    |   Register   |   Wednesday, August 20, 2008   
Data Springs Product Forums...
Subject: Dependent Combo boxes: question default filled by sessioninfo
Prev Next
You are not authorized to post a reply.

Author Messages
Rob
Posts:3


05/27/2008 12:53 PM  

Hi,
I managed to 'rebuild' sample 11 Dependent Combo boxes.
Also storing the selected values into sessions vars.
After submitting the form its redirecting to an other page (showing sql query based on session vars just set).
So far so Good !!!

But, when selecting the form again, i want to:
- Set the default question based on the session  vars (=latest  selections)
AND
- Fill the comboxes and keep values selectable

I tried but cannot get it working some how.
I came close with a 'workaround'  but then I need an extra (unwanted) question.
http://nbbv.nl/Form2/tabid/221/Default.aspx
Is what I want possible anyway?

Thanks, Rob

Chad
Posts:1816
river guide
river guide

05/28/2008 9:15 AM  
Rob,

Hi. Well we have had to come up with a solution for this as a few other clients are running into the same hurdles. Basically, until the form renders (because of how the form is generated and at the time the form is generated) it cannot get access to the current values until after postback. This is 'why' your post back solution posted there where they click that first field does end up working properly, where it doesn't before the postback.

So... The solution we implemented because of this was to also parse the SQL for a number of querystring or session variables. These are:

Querystring Variables:
* DSParam1
* DSParam2
* DSParam3

Session Variables:

* DSSession1
* DSSession2
* DSSession3

So this solution works if you use these (pass these session or querystring variables) it will render properly. Basically you just would need to name your short field name DSSession1 and pass the form that session variable.

The other item to note here is : Be careful with querystring variables to avoid SQL Injectino. We have posted this several times but the bottom line is that we always suggest using caution with querystring variables and SQL Options etc... The best approach is to use a stored procedure and pass the querystring variable to the procedure. The module does handle some SQL injection routines but again, always better to be safe and cautious. You probably are safer with the session variable implementatino than querystring.

The enhancements mentioned above (for the querystring and session variables) should be ready by the end of the week and will be in a patch of 2.6.54 which includes a few minor enhancements and bug fixes. This should be posted on Snowcovered by June 1st.


-Chad
You are not authorized to post a reply.
Forums > Product Discussion - DotNetNuke Modules > Dynamic Forms > Dependent Combo boxes: question default filled by sessioninfo



ActiveForums 3.7

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