I believe there is an option in TR.props for case translation. it must not carry over to macros, but does work for regular velocity.
On Tue, 11 Feb 2003, Stuart Townhill wrote: > Jeff Painter, > > One quick question which is causing me confusion. Why in my VTL Screen > when I print $entry.Customerid it manages to display the field. > But when I want to display the field via a Velocimacro I must change the > capatalization to $entry.CustomerId. > > Thanks for the help, > > Cheers, > > Stuart Townhill. > > -----Original Message----- > From: Jeffery Painter [mailto:[EMAIL PROTECTED]] > Sent: 11 February 2003 18:49 > To: Turbine Users List > Subject: Re: Displaying Primary Key idbroker? > > looks like a case of CustomerId vs customerid > > check your case. > > HTH, > Jeff Painter > > On Tue, 11 Feb 2003, Stuart Townhill wrote: > > > To anyone who can help, > > > > Don't think this is a Velocity question but my question came about > when > > using the VTL code I created below: > > > > #macro (formSelect $name $entries) > > <td> > > <select name="$name"> > > #foreach ($entry in $entries) > > <option>$entry.Customerid</option> > > <option>$entry.Name</option> > > #end > > </select> > > </td> > > #end > > > > What happens is that the SELECT is populated as follows: > > > > $entry.Customerid > > Stuart Townhill > > $entry.Customerid > > Bob > > $entry.Customerid > > Fred > > > > My question is that why can I access the names but not the Customerid, > > could it be because Customerid is the Primary Key of my Customer table > > and the Customerid is created by Turbine idbroker service? > > > > Any help much appreciated. > > > > Regards, > > > > Stuart Townhill. > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
