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: Dynamic Load via SQL and Querystring Seed
Prev Next
You are not authorized to post a reply.

Author Messages
Paul
Posts:2
new to the springs
new to the springs

06/11/2008 8:06 AM  

I'm using Dynamic Form 2.05.03 with DNN 4.05.01. I'm not able to get a form field to load the default value using a SQL query using the value from another fields as input.

I have two fields with short names of Ref and Name. The value for Ref is passed on the query string. This value is retrieved without any problems.

I'm trying to load the value for Name (the 2nd field) using the following SQL query...

select lastname+', '+firstname as DefaultValue from members, registrations where members.memberID=registrations.memberID and registrations.regID=$(Ref)

If I change $(Ref) to a hard coded value (ex. 12) then I get a value so I know the query is correct. I suspect the $(Ref) is either not being interrupted correctly or is being process before it's value is pulled from the query string.

Is there a way to make this work in 2.5?

Chad
Posts:2271
river guide
river guide

06/12/2008 10:48 AM  

Paul,

Hi. I believe there is a way to make sure work but... You have to have 'question one' cause a postback. The way to do this is to create a question event, where the 'question one' which is the question with the short field name of Ref, is the postback question. It doesn't really matter what the question event type is (for example you could set it so that it 'unhides' a previous question which isn't even hidden to begin with. Just as long as that question causes a postback.



Check out this demonstration as well which focus's on dependent dropdownlists that reference each other. This is specifically what you are needing I think.



-Chad

Paul
Posts:2
new to the springs
new to the springs

06/12/2008 6:19 PM  

To do a postback doesn't the field need to be a combobox? If so, then I'm not able to set the default value from the query string plus doesn't it require a user action to cause the postback?

Chad
Posts:2271
river guide
river guide

06/12/2008 7:17 PM  

Well.... To do a post back the field doesn't have to be a combo box, but it does currently have to be either a combo box, checkbox, check box list, radio button, listbox, ummm... I think thats it. Currently textbox fields cannot cause a post back (we are working on that)...

But...What you are wanting is a little more tricky I believe because of the querystring variable and the postback. Since the form doesn't render the page and viewstate/form variables initially its difficult to use these types of implementations that involve querystring, multiple combo box's, SQL options, and a combination of these together. This why we just recently introduced (in 2.6.54 which is the latest released version that should be posted at this time) a few new options and features that allow for this.

Please check out this thread related to using querystring variables that can interactive with SQL options and so forth.

I still believe for the query to function properly though on the 2nd field its going to either require a postback or you are going to have to set a default value. What I mean by default is in your query you might use a stored procedure and pass it the parameter $(Ref) but if that parameter is empty the stored procedure would default it to the initial item that it should be (say a number like 12), then after the user selects another option the postback will occur and return the right results as well.


-Chad

You are not authorized to post a reply.
Forums > Product Discussion - DotNetNuke Modules > Dynamic Forms > Dynamic Load via SQL and Querystring Seed



ActiveForums 3.7

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