Show Changes Show Changes
Print Print
Recent Changes Recent Changes
Subscriptions Subscriptions
Lost and Found Lost and Found
Find References Find References
Rename Rename
Administration Page Administration Page
Search

History

3/5/2005 10:15:34 AM
-62.3.119.54
2/2/2005 1:37:57 AM
DerekLakin-62.189.22.124
2/2/2005 1:37:37 AM
DerekLakin-62.189.22.124
2/1/2005 8:22:34 AM
DerekLakin-62.189.22.124
2/1/2005 7:30:19 AM
DerekLakin-62.189.22.124
List all versions List all versions

RSS feed for the FlexWiki namespace

Change Note Form Select Field Presentation
.
Owner
RequiredBuild
RelatedBugs
RelatedFeatureRequests
Summary

Details

ComboSelectField

 ComboSelectField (String fieldName, Array options, 
        String selectedOption {optional}, Array values {optional}, Object selectedValue {optional})

ListSelectField

 FormSelectFieldPresentation ListSelectField (String fieldName, Integer size, Object multiple, Array options, 
        String selectedOption {optional}, Array values {optional}, Object selectedValue {optional})

1 In HTML terms a combo/listbox is a select element, which contains option elements. E.g.

 <select name="test" id="test">
   <option value="1">one</option>
   <option value="2">selected="selected">two</option>
   <option value="3">three</option>
 </select>

Example

To produce the output in 1 (a combo-box) above would require the following:

 @@Presentations.ComboSelectField("test", ["one", "two", "three"], null, [1, 2, 3], 2)@@

To produce a similar multi-select listbox would require the following:

 @@Presentations.ListSelectField("test", 2, true, ["one", "two", "three"], null, [1, 2, 3], 2)@@

Practical Example

This example shows how to create a combo-box that contains the version history for the current topic:

 :TopicHistory:{
        topic.Changes.Collect{ each | each.Version }
 }
 @@[Presentations.FormStart(federation.LinkMaker.LinkToTopic(topic.Fullname), "get"),
 "History: ",
 Presentations.ComboSelectField("version", TopicHistory()), " ",
 Presentations.ImageButton("goButton", federation.LinkMaker.LinkToImage("images/go-dark.gif"), "Submit"),
 Presentations.FormEnd()]@@
History:

Notes

If a values parameter is supplied, then the selectedValue parameter will be used to select the initial value; otherwise the selectedOption parameter is used to determine the initial selection.

Not logged in. Log in

Welcome to the home of FlexWiki, a collaboration tool, based on WikiWiki, implemented using Microsoft .NET technologies

This is FlexWiki, an open source wiki engine.

This site supports the new NoFollow anti-spam initiative.
Change Style

Recent Topics