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  |  

telerik -- supercharge your DNN websites
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Engage Software - Training Partner for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  XML Module [Lea...  Help needed using fallback values for querystring
Previous Previous
 
Next Next
New Post 5/23/2007 11:57 PM
User is offline thkerkmann
13 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 2:51 AM
User is offline Stefan Cullmann
1454 posts
6th 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

forms & Lists (UDT5.0) will be the next major release of the User Defined Table project.
A first Preview is available, though it requires DotnetNuke 5 (Beta 5).

Need to import external data to a UDT? Try 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.

 


Adaptive InfoSystems, Inc.
We provide custom programming and various levels of support for DotNetNuke and the .Net framework.
www.aisysweb.com
Multipartner Virtual Data Rooms
The Virtual Data Rooms (VDR) provided by an expert advisor, far from any ordinary software company!, supporting the sellers and their consultants. Multipartner builds and services higly professional Virtual Data Rooms (VDR) specifically tailored to M&A, Real Estate and NPL deals.
www.multipartner.com
DNN SEO
Seablick Consulting specializes in DNN search engine optimization (SEO), DNN consulting, as well as support & training.
seablick.com

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