From version < 16.1 >
edited by ElenaOanaTabaranu
on 2009/08/04
To version < 17.1 >
edited by ElenaOanaTabaranu
on 2009/08/04
< >
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -45,6 +45,18 @@
45 45  })();
46 46  {code}
47 47  
48 +1.1.1.1 Options used in the *suggest.vm* template:
49 +
50 +{table}
51 +Option|Details
52 +xpage|Must use *xpage=suggest* because suggest.vm template is used to manage the request.
53 +classname|The name of the class for the elements of the suggest list.
54 +fieldname|The field name from the class considered for the suggest list.
55 +firCol|First column of the list of results.
56 +secCol|Second column of the list of results. For a user defined query, use *-* value for one column and no hidden input. Otherwise the list of results will have two columns and a hidden input.
57 +{table}
58 +
59 +
48 48  1.1.1 Suggest custom information
49 49  
50 50  When the information you want to suggest is not available through a class field or you generate it using a custom query, you need to create a service (plain wiki page called with *xpage=plain* parameter in the url) that maps your results to the *xml* input accepted by the *autosuggest* class.
... ... @@ -95,6 +95,7 @@
95 95   #end
96 96  </results>
97 97  {code}
110 +
98 98  1.1 Javascript parameters for the *ajaxsuggest* class
99 99  
100 100  {table}
... ... @@ -119,18 +119,7 @@
119 119  script|Url for the ajax request that will get the suggested list. Must end with *&* because *varname* parameter will be appended. Use *suggest.vm* to get field values from a wiki class or a custom url to generate the suggested list.
120 120  {table}
121 121  
122 -1.1.1 Options for the *script* parameter:
123 123  
124 -{table}
125 -Option|Details
126 -xpage|Must use *xpage=suggest* because suggest.vm template is used to manage the request.
127 -classname|The name of the class for the elements of the suggest list.
128 -fieldname|The field name from the class considered for the suggest list.
129 -firCol|First column of the list of results.
130 -secCol|Second column of the list of results. For a user defined query, use *-* value for one column and no hidden input. Otherwise the list of results will have two columns and a hidden input.
131 -{table}
132 -
133 -
134 134  1.1 Live Example
135 135  
136 136  * Check out the example above at [Ajax Suggest Example>DevGuide.AutoSuggestWidgetExample]

Get Connected