[Chameleon-dev] [Bug 672] New: [Chameleon-Widget] Table widget generalization enhancement

bugzilla-daemon at www.maptools.org bugzilla-daemon at www.maptools.org
Wed Sep 15 15:43:01 EDT 2004


           Summary: [Chameleon-Widget] Table widget generalization
           Product: Chameleon
           Version: 1.99
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: Widget
        AssignedTo: chameleon-dev at lists.maptools.org
        ReportedBy: pspencer at dmsolutions.ca

The current implementation of the templating system in the Table widget requires
that the developer know the structure of the data that they wish to display,
specifically they need to know the names of the columns.

A more generic approach would be useful in certain situations that arise when
the column names are not known in advance.

In this case, we could use a templating system that allows us to reference a
template from within a template.  For instance:

<template name="header"><![CDATA[

<template name="colheadertemplate"><![CDATA[

<template name="body"><![CDATA[

<template name="colbodytemplate"><![CDATA[

The special variables %COLNAME% and %COLDATA% can be used to reference the
current column name (currently this only works in the body) and the current
column data value (in the body only, for each row).

In the code that parses the template for %<var>%, we can test to see if <var> is
the name of a template and process that template for every column of data.

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the Chameleon-dev mailing list