Hi,

I am trying to create a .vm file where based on a Vector of columnMaps, and
my original OM Object, I display a table cell with a form element, and pull
out of my OM object the corresponding data...

I am basing my work on just tweaking the newapp application, and the
velocimacro I am using is fromCell TableDescription TableName Data.

My actual code looks like this:

#foreach($column in $columns)
        <TR>
                #formCell($column.columnName $column.columnName
$entry.getByName("$column.columnName"))
        <TR>
#end

And all of this works great once I wrote my own getByName() method for my OM
object.  How come this method is declared by BaseObject, but is not
implemented by the default Torque OM building system?  It seems that if the
BaseObject declares it (and throws an exception if you call it), then the
default Torque OM building system should provide the method?  

Or is there another way of doing what I want?  I tried doing this:
$entry.({$column.columnName}) but that doesn't seem to be proper velocity
syntax.

Before I go and tweak my Torque code to create the method getByName in all
the BaseOm objects, I wanted to make sure this was something that isn't
already in there.  How do I contribute back this code if anyone wants it?

Eric

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to