Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListQuery String Value as Default?Query String Value as Default?
Previous
 
Next
New Post
4/16/2008 4:06 PM
 

I'm experimenting with the XML/XSL module and the UDT.  I have an instance of the XML/XSL that links to another page and appends the URL with some query parameters.  Is there a way to make those parameters the default value for new records in the UDT?

For example:  the URL is http://www.devodog.us/CityofHeroes/Characters/CharacterDetails/tabid/157/Default.aspx?UserID=42&CharacterID=118730&Server=Triumph&Supergroup=Myth%20Inc.

I'd like the default value of the CharacterID field in the UDT to be 118730, the Server field to default to Triumph and the Supergroup field to default to Myth%20Inc.

(PS.  This is data from the City of Heroes MMO.)

 
New Post
4/16/2008 4:21 PM
Accepted Answer 

I am sorry, values for new records cannot be taken from URL, you will need to create a cutomized version of the UDT module.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/16/2008 4:34 PM
 

I was worried that would be the answer.  I think that if this could be added in a future release, it would extend the functionality of the UDT even further.

 
New Post
4/16/2008 5:03 PM
 

Mike, I like your idea.

UDT already supports Tokens for Default Values. The TokenReplace engine retrieves values out of different kind of data sources, and  having Tokens like [Querystring:Server] or [Forms:Supergroup] would be amazing.

 
New Post
4/16/2008 5:14 PM
 

Stefan Cullmann wrote

Mike, I like your idea.

UDT already supports Tokens for Default Values. The TokenReplace engine retrieves values out of different kind of data sources, and  having Tokens like [Querystring:Server] or [Forms:Supergroup] would be amazing.

Stefan,

That's exactly the kind of thing I was thinking of [Querystring:Server].  I also realized that not only would I need to use that token as the default value for a field, but also a filter for the UDT.

If you visit http://www.devodog.us/CityofHeroes/Characters/tabid/156/Default.aspx (it's a bit slow), you'll see the XML/XSL.  Click on the link to Hero Zero and it takes you to another page with a different XML/XSL (for that specific character).  I want to be able to add additional records (pictures) in the UDT listed below, but only show the ones with the corresponding CharacterID.  This way, I can add related content to XML data that can't (or shouldn't) be directly modified by a user on the DNN site.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListQuery String Value as Default?Query String Value as Default?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out