You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Stuart Townhill <st...@townhill.net> on 2003/02/11 18:09:53 UTC

Displaying Primary Key idbroker?

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.

RE: Displaying Primary Key idbroker?

Posted by Stuart Townhill <st...@townhill.net>.
Jeff Painter,

Thanks for that. Thought I had tried that, must be going mad!

Cheers,

Stuart Townhill.

-----Original Message-----
From: Jeffery Painter [mailto:painter@kiasoft.com] 
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: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


RE: Displaying Primary Key idbroker?

Posted by Jeffery Painter <pa...@kiasoft.com>.
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:painter@kiasoft.com] 
> 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: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


RE: Displaying Primary Key idbroker?

Posted by Stuart Townhill <st...@townhill.net>.
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:painter@kiasoft.com] 
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: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Displaying Primary Key idbroker?

Posted by Jeffery Painter <pa...@kiasoft.com>.
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: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org