If you have a handler instantiated in the controller which expects your
entire recordset (from the Event), then it could loop over the recordset,
making the formatting changes for each record and appending that to the
recordset or back to the Event some other way.  Then your views would get a
recordset that had the raw data and the "output-ready" version and your view
can simply decide which to render rather than 'how' to render.

I'm thinking something like this in the formatting handler function
(pseudo-code):

var tmpQry = arguments.event.getValue("myContentQuery");

queryAddColumn(tmpQry, "formattedOutput", "VARCHAR", []);

loop over records and format data, then add to query
    querySetCell(tmpQry, "formattedOutput", myFormattedText, currentRow);
/end loop

arguments.event.setValue("myContentQuery", tmpQry);

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

For more about Model-Glue, check http://www.model-glue.com .
-~----------~----~----~----~------~----~------~--~---

Reply via email to