Jeroen Steggink
|
| Posted: 11/03/2002, 12:32 PM |
|
Hi,
I have created a template block within a grid block.
Like this:
<!-- BEGIN Row -->
<tr>
<td class="DeepWaterDataTD">{product} </td>
<td class="DeepWaterDataTD">{description} </td>
<! -- BEGIN Test -->{hello}<!-- END Test -->
<td class="DeepWaterDataTD">{quantity} </td>
<td class="DeepWaterDataTD">{sub_total} </td>
</tr>
<!-- END Row -->
So I parse the block with $Tpl->parse("Test", true) I can add custom
variables (here {hello} ) using $Tpl->setvar("hello","hello people") , but
when it's a label in the custom template block it doesn't show up. How do I
get it to show?
Regards,
Jeroen Steggink
|
|
|
 |
Alexey Alexapolsky
|
| Posted: 11/04/2002, 6:31 AM |
|
You can assign label a value without parsing , like this :
global $FormName;
$FormName->LabelName->SetValue("hello");
--
Alex,
Support Engineer
CodeCharge Team
"Jeroen Steggink" <jeroen_steggink@hotmail.com> wrote in message
news:aq415j$cp1$1@news.codecharge.com...
> Hi,
>
> I have created a template block within a grid block.
> Like this:
>
> <!-- BEGIN Row -->
> <tr>
> <td class="DeepWaterDataTD">{product} </td>
> <td class="DeepWaterDataTD">{description} </td>
> <! -- BEGIN Test -->{hello}<!-- END Test -->
> <td class="DeepWaterDataTD">{quantity} </td>
> <td class="DeepWaterDataTD">{sub_total} </td>
> </tr>
> <!-- END Row -->
>
> So I parse the block with $Tpl->parse("Test", true) I can add custom
> variables (here {hello} ) using $Tpl->setvar("hello","hello people") ,
but
> when it's a label in the custom template block it doesn't show up. How do
I
> get it to show?
>
> Regards,
>
> Jeroen Steggink
>
>
|
|
|
 |
|