Recently Viewed...
DNN Modules
SnowCovered Top Sellers

Live Content uses Web 2.0 approach to provide a Rich User Interface and streamlines content presentation by overlaying content on current page. Overlay images, videos, audio, text/html content, flash, dotnetnuke modules, and external content. Experience the demo...

Gloss is the first ALL COLORS! skin, featuring a powerful XML-based flash and being 100% W3C CSS XHMTL1.0 compliant. Tune it yourself on the fly, changing colors, backgrounds, containers, text color and size, width and more! Brilliant!

Ultra Video Gallery is a brother product of Ultra Media Gallery, UVG allows you to add videos in various format and automatically convert them to flv format, you also can add videos from embed code and play them in our integrated flash video player.

'Relationship Building' and 'Communication' are two essential nuts and bolts for a business to prosper. This module allows you to bridge both of these and easily generate continuous awareness of your web site, products and services. Your prospects and customers will greatly appreciate this featur

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.

In this day and age, knowing as much detailed information as possible about your customer, prospect or web site user is essential. Thankfully, the new 'Dynamics Forms' module from Data Springs, makes it easier than ever to segment your data collection efforts.

Ultra Media Gallery is the most popular photo gallery and media gallery solution for DotNetNuke, UMG offers 10 different flash player to browse your gallery with completely different user interface experience.

Capture your users attention, enrich your site with multimedia flash, and create and opt in distribution list for your DNN site. These are just a few of the many features the Data Springs Module Collection can provide you.

The Catalyst skins are professionally designed, coded and packaged by a team of DotNetNuke experts. The skins are available in 12 great colours. This skin is easily customisable with our unique DrNuke EasyMod technology. Try our demo!

ALL NEW ! - Minimalist includes skin packs in 12 great colors. Each color has Flat, Gradient and Glass versions. Feature rich XML Flash header, perfect for just about any purpose. 9 Different menu options in each skin pack; 3 horizontal menus, 3 vertical menus and 3 all-new Twin level menus . . .

    |   Register   |   Thursday, December 04, 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:5
skipping stones
skipping stones

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:2271
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