Tags:
create new tag
, view all tags

Question

Would like to "merge" %URLPARAM{"VAR"}% and %VAR% to be the same values in a Topic.

Currently I do the following for a topic with a search form and running into problems:

% INCLUDE{"WebName.TopicTest" warn="on" qAvGeo="County"} %

When including into the TopicTest I can output the value %qAvGeo% and it is correctly shown, however this topic also has a search form which uses URLPARAM so when the user gets to the topic on their own, they can select from a choice of search filters, the page is then refreshed and the table is output based on the filter. The search is using URLPARAM to recognize the filter.

I pretty much want the topic to be able to use whichever one is available, either URLPARAM or the %Variable% from the include. If you have any questions, you can usually find me in #twiki under the name TJCRI. TJ

Environment

TWiki version: TWikiRelease04x01x01
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Centos 5
Web server: Apache 2
Perl version: 5.8
Client OS:  
Web Browser:  
Categories: Missing functionality

-- TjMaciak - 18 Sep 2008

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

DatasetAge LevelCollection Frequency
Summary RecommendationYears AvailableAvailable Geography Level
Clear selection

Searched: META:FIELD.*?DataSet.*?%<nop>URLPARAM{
Number of topics: 0
.*;META:FIELD.*?AgeLevel.*?%URLPARAM{"qAgeLev"}%.*;META:FIELD.*?CollFreq.*?%URLPARAM{"qCollection"}%.*;META:FIELD.*?YearsAvail.*?%URLPARAM{"qYears"}%.*;META:FIELD.*?AvailGeoLev.*?%URLPARAM{"qAvGeo"}%.*;META:FIELD.*?SummaryRec.*?%URLPARAM{"qSumRec"}%" topic="MeasuresFormDetails.*" web="Support" scope="text" type="regex" nosearch="on" nototal="off" noheader="on" format="" }%
  Measure Dataset Age Level Collection Frequency Years Available Available Geography Level Geography Description Summary Recommendation Construct Data Items
MeasureID)?topicparent=Support.URLPARAMandINCLUDES;nowysiwyg=0" rel="nofollow" title="view (this topic does not yet exist; you can create it)">view $formfield(Measure) $formfield(DataSet) $formfield(AgeLevel) $formfield(CollFreq) $formfield(YearsAvail) $formfield(AvailGeoLev) $formfield(AvailGeoDesc) $formfield(SummaryRec) $percntSEARCH{\"C\" topic=\"$formfield(ConstructId)\" web=\"$percntWEB$percnt\" nosearch=\"on\" nototal=\"on\" format=\"$dollarformfield(ConstructName)\" }$nop% $percntCALC{$SET(numd,0)}$percnt $percntCALC{$GET(numd)}$percnt



-- TjMaciak - 18 Sep 2008

I theory I think we should be able to invoke this as http://twiki.org/cgi-bin/view/Support/URLPARAMandINCLUDES?qSumRec=4;qYears=10;qAvGeo=Whereever

-- MartinCleaver - 18 Sep 2008

Closing this after more than 30 days of inactivity. Please feel free to re-open if needed.

-- PeterThoeny - 07 Nov 2008

 
Change status to:
Topic revision: r6 - 2008-11-07 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.