CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 Template blocks within grid block

Print topic Send  topic

Author Message
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
>
>


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.