[ic] Database Handle and Global Subs

Sheamus Nulty interchange-users@lists.akopia.com
Wed Jun 13 14:33:01 2001


Mark,

My problem is with the if statement because for some reason its just
printing what ever I put after it. If I put the following on a page and run
it

[pdfcreate foo="[cgi orders]"]

my pdfs are generated. However if I do the following

[set print]1[/set]
[if scratch print]
[pdfcreate foo="[cgi orders]"]
[/if]

what gets returned in the browser is

[pdfcreate foo="[cgi orders]"] as text and no pdfs are generated.

Sheamus

----- Original Message -----
From: "Mark Johnson" <markj@redhat.com>
To: <interchange-users@developer.akopia.com>
Sent: 13 June 2001 19:00
Subject: Re: [ic] Database Handle and Global Subs


> I don't know what you've named your parameter in the usertag, but I'll
> assume it's 'foo' for the purpose of this example.
>
> Try:
>
> [if scratch print]
> [pdfcreate foo="[cgi orders]"]
> [/if]
>
>
> Sheamus Nulty wrote:
> >
> > Mark,
> >
> > I've taken the global sub pdfcreate out of the [perl] tag and it no
longer
> > has any problems. The problem I'm having now is how do I execute this
tag
> > based on a particular variable being set. I've tried the following
> >
> > [if scratch print ]
> > [pdfcreate [cgi orders] ]
> > [/if]
> >
> > plus various other combinations however the if statement constantly just
> > causes the information after it to be printed as if its HTML. If I don't
> > have the global sub in perl what other method is there to do a
comparison
> > other than above.
> >
> > Thanks
> >
> > Sheamus
>
>
> --
> Mark Johnson
> Senior Systems Architect - Professional Services
> Red Hat, Inc.
> E-Business Solutions
> markj@redhat.com
> 703-456-2912
> _______________________________________________
> Interchange-users mailing list
> Interchange-users@lists.akopia.com
> http://lists.akopia.com/mailman/listinfo/interchange-users
>