Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

DotNetNuke Marketplace
  Ads  
 


  Sponsors  

Meet Our Sponsors

.: CounterSoft :.
telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  XML Module [Lea...  Help needed using fallback values for querystring
Previous Previous
 
Next Next
New Post 5/24/2007 12:57 AM
User is offline thkerkmann
16 posts
10th Ranked


Help needed using fallback values for querystring 

Hi Stephan,

in the announcement you write about "fallback values" if parameter is not present.

I would like to use this feature, but can't get a clue on it. My problem is the datasource is a web-service and it needs a parameter like "filter=6". It won't work without this parameter. So I have used a link page to call the real page with the xml-module and use a pass-through parameter to set the value. That works so far, but the breadcrumb will have the wrong link and if you click on it, the webservice breakes.

Now how can I avoid this, using the fallback value ? Is it possible to say: If there is no passthrough value "filter=something" use the default value "filter=6" ? Or did I understand this feature completely wrong ?

Please kick me into the right direction.

Regards

Thomas

 
New Post 5/24/2007 3:51 AM
User is offline Stefan Cullmann
1553 posts
5th Ranked








Re: Help needed using fallback values for querystring 

Hi Thomas,

I think you got it right, but the current implementation of the xml module doesn't help you. The glue is that not all parameter type support fallback value.

A parameter has 4 different properties (here explained in the context of the data source)
Name Name of the parameter, used as name of the querystring parameter to access the data by url 
required (boolean) If no value can be retrieved, no http request will happen
Data origin The source of the parameter
(unnamed)

Depends on the data origin!:

  • Static Value: the value of the parameter
  • pass through query string, pass through form and custom user property acts like the x in a function f(x) = y 
    For a passthrough query sting this is the name of the querystring parameter of your DotnetNuke page
  • portalId, moduleId, tabname,...: not needed, therefor not visible, these data origins will return everytime a value
  • user's city, fax....: they might be null or empty, so you can decalre a fall back value

So fall back values are not supported for your scenario.

Saying that I might point to the advanced settings: The last paragraph allows you to enable/disable xsl modules based on querystring values! This offers the ability to communicate between different xsl modules on one page.

So you add an xml/xsl module and that up the following querystring parameter:

Name: "filter", required=true, Data origin =querystring pass through, (unnamed) = "MyFilter"

The http request of this  will only execute if the url of your dnn site has a parameter MyFilter=SomeThing. otherwise it will return <noData cause="Parameters"/> as xml. You can write your stylesheet that it will return no content at all!

Now add a second module, and set it up the same way as the one before. But now you define the querystring parameter name on a different way:

Name: "filter", required=true, Data origin =static value, (unnamed) = "6"

in advanced settings you will set: Query string parameter= "MyFilter", Query String value=""

The result is that you have 2 modules on your page. The first one will fire if you have the query string parameter "myFilter", the second one only if it is missing or has an empty value.


Stefan Cullmann - stefan.cullmann [at] dotnetnuke.com
form and List will be the successor of the User Defined Table module.
----------------------------------------------------------------------
Do you want to import external data to form and List /User Defined Table?
Check out http://www.codeplex.com/Csv2UDTImport
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  XML Module [Lea...  Help needed using fallback values for querystring
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Active Modules, Inc.
Creators of Active Forums, the best forum module for DotNetNuke
www.activemodules.com
DotNetNuke Marketplace - Modules & Skins
The DotNetNuke Marketplace is the official e-commerce gateway for the DNN ecosystem. It's the place to buy and sell DotNetNuke modules, DotNetNuke skins, and other DNN offerings.
DotNetNuke Marketplace
ExactTarget Email Marketing Software and Solutions
ExactTarget delivers on-demand email software solutions for permission-based email marketing. ExactTarget offers solutions that meet the needs of all industry verticals and all size organizations, including SMB, corporate divisions, not-for-profits, large retail/direct marketers, agencies and enterprises.
ExactTarget.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP