Bug 117 - [Chameleon]expressionbuilderwidget000.html
: [Chameleon]expressionbuilderwidget000.html
Status: NEW
: Chameleon
Widget
: 1.99
: PC Windows 2000
: P2 normal
: FUTURE
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2003-11-14 14:34 by
Modified: 2004-08-10 16:04 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2003-11-14 14:34:13
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
------- Comment #1 From 2003-11-14 14:55:34 -------
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". ;)
------- Comment #2 From 2004-04-06 13:14:35 -------
actually the metadata is 

METADATA
  "selected" "1"
END

will address post 1.99.
------- Comment #3 From 2004-04-08 08:40:49 -------
updated version to 1.99
------- Comment #4 From 2004-07-07 17:29:45 -------
Changed target to 2.1.
------- Comment #5 From 2004-08-10 16:04:50 -------
Changed Target Milestone to FUTURE. (Enhancements may be moved from this target 
to specific "versioned" targets after product design review cycles.)