Re: Comparison Issue

MG 2016 <[email protected]> Wed, 3 Feb 2016 08:14:19 -0800 (PST)
Newsgroups gmane.comp.web.freemarker.devel
Message-ID <CAFyNYXSmdARfXQgsg_OKp19skK2TQCipyv7YUvwL+B3WhJaUfQ@mail.gmail.com>
--===============8281104853301274028==
Content-Type: multipart/alternative; 
	boundary="----=_Part_74742_830624177.1454516059533"

------=_Part_74742_830624177.1454516059533
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi Daniel,

I sorted the integer issue out but this one is driving me crazy! I can't
see to get two divs floating across each other and show text. This code
works fine in normal html pages but not using free marker! Any ideas? The
text Test is not displayed.

<?xml version="1.0" ?>
<!DOCTYPE pdf PUBLIC "-//big.faceless.org//report" "report-1.1.dtd">
<pdf>
    <head>
       <style type="text/css">
  #details {
    background-color: lightblue;
    width: 50%;
    height: 100px;
  }

  #summary {
    background-color: red;
    width: 50%;
    height: 100px;
  }

</style>
</head>

<body>
  <div id="details" style="float:left; display:inline"> <span>test</span>
</div>
  <div id="summary" style="float:left; display:inline"> <span>test</span>
</div>
    </body>
</pdf>

On Thu, Jan 28, 2016 at 1:18 AM, Daniel Dekany [via FreeMarker] <
[email protected]> wrote:

> If it's a number then you need "record.quantity == 14". The others
> (?size an ?length) should give you an error, as number has no size or
> length. Do they not? Something strange is going on there... do they
> suppress FreeMarker errors and output nothing? If quantity is a string
> that looks like a number, then you should also get an error (for
> comparing a string to a number), but then you could use
> "record.quantity?number == 14". (BTW, you can easily try these
> scenarios on http://freemarker-online.kenshoo.com/)
>
>
> Wednesday, January 27, 2016, 11:17:05 PM, MG 2016 wrote:
>
> > Thanks for getting back.
> >
> > I am still trying to work out the exact type of quantity. I assumed it
> was
> > an int because the out put on the form is always an int. I am trying to
> > generate a PDF within NetSuite ERP.
> >
> > None of these seem to work for me. But I can see the text if I use !=
> >
> > <#if record.quantity?size ==14>TEST</#if>
> > <#if record.quantity?length==14>TEST</#if>
> > <#if record.quantity ==14>TEST</#if>
> >
> >
> >
> > --
> > View this message in context:
> >
> http://freemarker.624813.n4.nabble.com/Comparison-Issue-tp4655606p4655611.html
> > Sent from the freemarker-devel mailing list archive at Nabble.com.
> >
> >
> ------------------------------------------------------------------------------
>
> > Site24x7 APM Insight: Get Deep Visibility into Application Performance
> > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> > Monitor end-to-end web transactions and take corrective actions now
> > Troubleshoot faster and improve end-user experience. Signup Now!
> > http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
> > _______________________________________________
> > FreeMarker-devel mailing list
> > [hidden email] <http:///user/SendEmail.jtp?type=node&node=4655612&i=0>
> > https://lists.sourceforge.net/lists/listinfo/freemarker-devel
> >
>
> --
> Thanks,
>  Daniel Dekany
>
>
> ------------------------------------------------------------------------------
>
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
> _______________________________________________
> FreeMarker-devel mailing list
> [hidden email] <http:///user/SendEmail.jtp?type=node&node=4655612&i=1>
> https://lists.sourceforge.net/lists/listinfo/freemarker-devel
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://freemarker.624813.n4.nabble.com/Comparison-Issue-tp4655606p4655612.html
> To unsubscribe from Comparison Issue, click here
> <http://freemarker.624813.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4655606&code=ZGlsYWwubWlhaEBtb3ZlZ3VpZGVzLmNvbXw0NjU1NjA2fC0xOTM4MDY1OTI=>
> .
> NAML
> <http://freemarker.624813.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://freemarker.624813.n4.nabble.com/Comparison-Issue-tp4655606p4655615.html
Sent from the freemarker-devel mailing list archive at Nabble.com.
------=_Part_74742_830624177.1454516059533
Content-Type: text/html; charset=UTF8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi Daniel,<div><br></div><div>I sorted the integer issue o=
ut but this one is driving me crazy! I can&#39;t see to get two divs floati=
ng across each other and show text. This code works fine in normal html pag=
es but not using free marker! Any ideas? The text Test is not displayed.</d=
iv><div><br></div><div><div>&lt;?xml version=3D&quot;1.0&quot; ?&gt;</div><=
div>&lt;!DOCTYPE pdf PUBLIC &quot;-//<a href=3D"http://big.faceless.org//re=
port" target=3D"_top" rel=3D"nofollow" link=3D"external">big.faceless.org//=
report</a>&quot; &quot;report-1.1.dtd&quot;&gt;</div><div>&lt;pdf&gt;</div>=
<div>=C2=A0 =C2=A0 &lt;head&gt;</div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0&lt;st=
yle type=3D&quot;text/css&quot;&gt;</div><div>=C2=A0 #details {</div><div>=
=C2=A0 =C2=A0 background-color: lightblue;</div><div>=C2=A0 =C2=A0 width: 5=
0%;</div><div>=C2=A0 =C2=A0 height: 100px;</div><div>=C2=A0 }</div><div>=C2=
=A0=C2=A0</div><div>=C2=A0 #summary {</div><div>=C2=A0 =C2=A0 background-co=
lor: red;</div><div>=C2=A0 =C2=A0 width: 50%;</div><div>=C2=A0 =C2=A0 heigh=
t: 100px;</div><div>=C2=A0 }</div><div><br></div><div>&lt;/style&gt;</div><=
div>&lt;/head&gt;</div><div><br></div><div>&lt;body&gt;</div><div>=C2=A0 &l=
t;div id=3D&quot;details&quot; style=3D&quot;float:left; display:inline&quo=
t;&gt; &lt;span&gt;test&lt;/span&gt; &lt;/div&gt;</div><div>=C2=A0 &lt;div =
id=3D&quot;summary&quot; style=3D&quot;float:left; display:inline&quot;&gt;=
 &lt;span&gt;test&lt;/span&gt; &lt;/div&gt;</div><div>=C2=A0 =C2=A0 &lt;/bo=
dy&gt;</div><div>&lt;/pdf&gt;</div></div></div><div class=3D"gmail_extra"><=
br><div class=3D"gmail_quote">On Thu, Jan 28, 2016 at 1:18 AM, Daniel Dekan=
y [via FreeMarker] <span dir=3D"ltr">&lt;<a href=3D"/user/SendEmail.jtp?typ=
e=3Dnode&node=3D4655615&i=3D0" target=3D"_top" rel=3D"nofollow" link=3D"ext=
ernal">[hidden email]</a>&gt;</span> wrote:<br><blockquote style=3D'border-=
left:2px solid #CCCCCC;padding:0 1em' class=3D"gmail_quote" style=3D"margin=
:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=3D"">

=09If it&#39;s a number then you need &quot;record.quantity =3D=3D 14&quot;=
. The others
<br>(?size an ?length) should give you an error, as number has no size or
<br>length. Do they not? Something strange is going on there... do they
<br>suppress FreeMarker errors and output nothing? If quantity is a string
<br>that looks like a number, then you should also get an error (for
<br>comparing a string to a number), but then you could use
<br>&quot;record.quantity?number =3D=3D 14&quot;. (BTW, you can easily try =
these
<br>scenarios on <a href=3D"http://freemarker-online.kenshoo.com/" rel=3D"n=
ofollow" link=3D"external" target=3D"_blank">http://freemarker-online.kensh=
oo.com/</a>)
<br><br><br>Wednesday, January 27, 2016, 11:17:05 PM, MG 2016 wrote:
<br></span><div><span class=3D""><div class=3D'shrinkable-quote'><br>&gt; T=
hanks for getting back.
<br>&gt;
<br>&gt; I am still trying to work out the exact type of quantity. I assume=
d it was
<br>&gt; an int because the out put on the form is always an int. I am tryi=
ng to
<br>&gt; generate a PDF within NetSuite ERP.
<br>&gt;
<br>&gt; None of these seem to work for me. But I can see the text if I use=
 !=3D
<br>&gt;
<br>&gt; &lt;#if record.quantity?size =3D=3D14&gt;TEST&lt;/#if&gt;
<br>&gt; &lt;#if record.quantity?length=3D=3D14&gt;TEST&lt;/#if&gt;
<br>&gt; &lt;#if record.quantity =3D=3D14&gt;TEST&lt;/#if&gt;
<br>&gt;
<br>&gt;
<br>&gt;
</div></span><span class=3D"">&gt; --
<div class=3D'shrinkable-quote'><br>&gt; View this message in context:
<br>&gt; <a href=3D"http://freemarker.624813.n4.nabble.com/Comparison-Issue=
-tp4655606p4655611.html" rel=3D"nofollow" link=3D"external" target=3D"_blan=
k">http://freemarker.624813.n4.nabble.com/Comparison-Issue-tp4655606p465561=
1.html</a><br>&gt; Sent from the freemarker-devel mailing list archive at N=
abble.com.
<br>&gt;
<br>&gt; ------------------------------------------------------------------=
------------
<br>&gt; Site24x7 APM Insight: Get Deep Visibility into Application Perform=
ance
<br>&gt; APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
<br>&gt; Monitor end-to-end web transactions and take corrective actions no=
w
<br>&gt; Troubleshoot faster and improve end-user experience. Signup Now!
<br>&gt; <a href=3D"http://pubads.g.doubleclick.net/gampad/clk?id=3D2673083=
11&amp;iu=3D/4140" rel=3D"nofollow" link=3D"external" target=3D"_blank">htt=
p://pubads.g.doubleclick.net/gampad/clk?id=3D267308311&amp;iu=3D/4140</a><b=
r>&gt; _______________________________________________
<br>&gt; FreeMarker-devel mailing list
</div></span>&gt; <a href=3D"http:///user/SendEmail.jtp?type=3Dnode&amp;nod=
e=3D4655612&amp;i=3D0" rel=3D"nofollow" link=3D"external" target=3D"_blank"=
>[hidden email]</a>
<br>&gt; <a href=3D"https://lists.sourceforge.net/lists/listinfo/freemarker=
-devel" rel=3D"nofollow" link=3D"external" target=3D"_blank">https://lists.=
sourceforge.net/lists/listinfo/freemarker-devel</a><br>&gt;
</div><br>--=20
<br>Thanks,
<br>=C2=A0Daniel Dekany
<br><br><span class=3D""><br>----------------------------------------------=
--------------------------------
<br>Site24x7 APM Insight: Get Deep Visibility into Application Performance
<br>APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
<br>Monitor end-to-end web transactions and take corrective actions now
<br>Troubleshoot faster and improve end-user experience. Signup Now!
<br><a href=3D"http://pubads.g.doubleclick.net/gampad/clk?id=3D267308311&am=
p;iu=3D/4140" rel=3D"nofollow" link=3D"external" target=3D"_blank">http://p=
ubads.g.doubleclick.net/gampad/clk?id=3D267308311&amp;iu=3D/4140</a><br>___=
____________________________________________
<br>FreeMarker-devel mailing list
<br></span><a href=3D"http:///user/SendEmail.jtp?type=3Dnode&amp;node=3D465=
5612&amp;i=3D1" rel=3D"nofollow" link=3D"external" target=3D"_blank">[hidde=
n email]</a>
<br><a href=3D"https://lists.sourceforge.net/lists/listinfo/freemarker-deve=
l" rel=3D"nofollow" link=3D"external" target=3D"_blank">https://lists.sourc=
eforge.net/lists/listinfo/freemarker-devel</a><br>

=09
=09
=09
=09<br>
=09<br>
=09<hr noshade size=3D"1" color=3D"#cccccc">
=09<div style=3D"color:#444;font:12px tahoma,geneva,helvetica,arial,sans-se=
rif"><span class=3D"">
=09=09<div style=3D"font-weight:bold">If you reply to this email, your mess=
age will be added to the discussion below:</div>
=09=09</span><a href=3D"http://freemarker.624813.n4.nabble.com/Comparison-I=
ssue-tp4655606p4655612.html" target=3D"_blank" rel=3D"nofollow" link=3D"ext=
ernal">http://freemarker.624813.n4.nabble.com/Comparison-Issue-tp4655606p46=
55612.html</a>
=09</div><div class=3D"HOEnZb"><div class=3D"h5">
=09<div style=3D"color:#666;font:11px tahoma,geneva,helvetica,arial,sans-se=
rif;margin-top:.4em;line-height:1.5em">
=09=09
=09=09To unsubscribe from Comparison Issue, <a href=3D"" target=3D"_blank" =
rel=3D"nofollow" link=3D"external">click here</a>.<br>
=09=09<a href=3D"http://freemarker.624813.n4.nabble.com/template/NamlServle=
t.jtp?macro=3Dmacro_viewer&amp;id=3Dinstant_html%21nabble%3Aemail.naml&amp;=
base=3Dnabble.naml.namespaces.BasicNamespace-nabble.view.web.template.Nabbl=
eNamespace-nabble.view.web.template.NodeNamespace&amp;breadcrumbs=3Dnotify_=
subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send=
_instant_email%21nabble%3Aemail.naml" rel=3D"nofollow" style=3D"font:9px se=
rif" target=3D"_blank" link=3D"external">NAML</a>
=09</div></div></div></blockquote></div><br></div>


=09
=09
=09
<br/><hr align=3D"left" width=3D"300" />
View this message in context: <a href=3D"http://freemarker.624813.n4.nabble=
.com/Comparison-Issue-tp4655606p4655615.html">Re: Comparison Issue</a><br/>
Sent from the <a href=3D"http://freemarker.624813.n4.nabble.com/freemarker-=
devel-f626829.html">freemarker-devel mailing list archive</a> at Nabble.com=
.<br/>
------=_Part_74742_830624177.1454516059533--


--===============8281104853301274028==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
--===============8281104853301274028==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
FreeMarker-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-devel

--===============8281104853301274028==--