Where's the best spot in your mach-ii files to put display code of an
object, when you're looking to create these objects dynamically?
I want to create a view dynamically based on a list of objects (which
objects to use and their values are in a database which I query,
presumable with the gateway). Where is the best spot to generate the
display code that's going to be used for that specific objectType?
Does it go in the controller as a function that is called for each
objectType? Do you create a large list of if statements in a View, so
when you're looping through the objects with their types and values
the proper display code is used?
An object returned is for example a title with just text, a matrice
with numbers, a single numerical value or a large note of some
sort ... Each has its own way of being displayed.
I haven't done this before, with the idea of "code generation" in
mind. Do you need more info?
On Mar 10, 11:58 am, Brian Pickens <brian.pick...@fccinteractive.com>
wrote: