Tags:
create new tag
, view all tags

Question

Using the Controls Plugin. Sample code:

<form name="newreport" action="%SCRIPTURLPATH%/edit/%WEB%/">
| *Subject*  | <input type="text" name="Subject" size="80" value="" />  | give a short description  |
| *Exchange*  | %CONTROL{"Exchange" form="newreport" topic="SupportedCountries" type="select" size="1"}%  |  |

  <input type="hidden" name="topic" value="InterventionTask200610$191634" />
  <input type="hidden" name="templatetopic" value="InterventionTemplate" />
  <input type="hidden" name="topicparent" value="%BASETOPIC%" />
  <input type="submit" value=" Create report " />
</form> 

The actual list in SupportedCountries renders to a 3-level selection.

After correctly selecting the items i get in the QUERY_STRING sent:

 ... Exchange0=level1&Exchange2=level3&Exchange3=level3 ...

Item Exchange2 gets the value of the third level again instead of the level2 value.

So the resulting template is filled with the wrong value for the *Exchange2" field.

Any ideas ?

Using Controls plugin dd. 06 Aug 2006 - 12:16.

Environment

TWiki version: TWikiRelease04x00x04
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin, ControlPlugin
Server OS: Gentoo Kernel 2.6.15
Web server: Apache 2.0.55
Perl version: 5.8.8
Client OS: Windows XP
Web Browser: Mozilla
Categories: Plugins

-- PetricFrank - 19 Oct 2006

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.

Even with your example (CitiesMenu) in the *.zip file i get in the QUERY_STING:

line0=Argentina&line1=CitySections

The second level (line1) is wrong. I've selected "Corral the Bustos".

Hope that helps tracking down the problem.

-- PetricFrank - 20 Oct 2006

Sorry, closing after more than 30 days. Possibly ask in the ControlsPluginDev topic...

-- PeterThoeny - 01 Dec 2006

 
Change status to:
Topic revision: r3 - 2006-12-01 - 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.