
![]() |
Show Changes |
![]() |
Edit |
![]() |
|
![]() |
Recent Changes |
![]() |
Subscriptions |
![]() |
Lost and Found |
![]() |
Find References |
![]() |
Rename |
![]() |
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 |
ComboSelectField (String fieldName, Array options,
String selectedOption {optional}, Array values {optional}, Object selectedValue {optional})
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>
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)@@
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()]@@
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.