You need to sign in to do that
Don't have an account?

SubTotal Page Break Logic...
Hi all,
I am trying to compare two apex:variables (Current Prod Type and the previous prod type) and if they are different do a Subtotal line in a table:
<apex:outputText value="{!if(!myProdTyp == !LastProdTyp,'','<tr><td>SUBTOTAL</td></tr>')} ">
</apex:outputText>
Both LastProdTyp and myProdTyp are apex:variables.
I am getting an error message when I try the above syntax saying: Error: Incorrect parameter type for function 'not()'. Expected Boolean, received Text
Please advise. Thanks in advance!
-Jim
{!If(myprodtype == lastprodtyp, ' ' , '<tr><td>subtotal</td></tr>')}
But the error is w.r.t NOT function. I dont see you using not anywhere. Can you post entire code?
All Answers
{!If(myprodtype == lastprodtyp, ' ' , '<tr><td>subtotal</td></tr>')}
But the error is w.r.t NOT function. I dont see you using not anywhere. Can you post entire code?
Thanks the "Not" part of the error I believe was because of the '!'... It was thinking I wanted to do a "Not". Once I removed the "!" the error message was fixed.