You need to log in before you can comment on or make changes to this bug.
expressionbuilderwidget000.html Button loads, however the following JavaScript error is displayed, when the button is selected. CWC2OnLoadFunction() could not be defined. Once the CWC2OnLoadFunction() was removed from the template. The following error occurred. Error: szSelectedLayers is not defined Source File: http://192.168.2.174/apps/chameleon_test/htdocs/index.phtml?mapfile=c:/ms4w/apps/chameleon_sample/map/chameleon.map&template=expressionbuilderwidget000.html Line: 127 Talking with bill the widget requires that a layer in the mapfile must defined as the expression query layer. This is done by using the Metadata tag, METADATA “SelectedLayer” END
1) CWC2OnLoadFunction() - not sure if this is a bug or not. This widget does not require any onload functions so none are defined. Is it a requirement to add empty onload functions? Paul can you comment? 2) The "szSelectedLayers" bug is not caused by the missing metadata. The bug was caused by something else, which is now fixed in cvs. This widget works on an "selected layer" as set by the "select layers" widget which sets the "selectedlayer" metadata item in the map object. The expression builder widget will give you an error message if no active layer is found and exit "gracefully". ;)
actually the metadata is METADATA "selected" "1" END will address post 1.99.
updated version to 1.99
Changed target to 2.1.
Changed Target Milestone to FUTURE. (Enhancements may be moved from this target to specific "versioned" targets after product design review cycles.)