I need to supress a text object located in a report footer so that it only shows when a certain stock code is present in the details section.
I have tried 'if then':
if({stock.code})="T002")then false else true
but this doesn't have the desired result in that it fails to appear at all.
Using the above formula does it matter that T002 is not the entire code?
The code in question is a top level code and has a series of user changeable variables attached to it in the database, which create the final complete code. for example T002 is the top code for creating a stock item for a marquee of a given size and length.
Essentially what I need to achieve is that when there are marquee elements of the order I need the text object to visable in the report footer but if it is a catering order with no marquee then it needs to be supressed.
I also tried
instr({Stock.CODE},"T002")=0
which also has no effect on the behaviour of the text object.
In both situations the formula does not throw up any errors.
Rather than by stock code, is it possible to suppress the text object unless a specific word is present within the description?
The form is setup like this:
QTY Description Replacement Val Price Ea Total
1 6m x 12m Marquee 2978.00 413 413
In the above example, '6m' and '12m' are variables with the only constant being the word 'Marquee'
The full decription within the database is:
6m x {A}m Marquee with high grade, fire retardant PVC - {B}{D}{C}{E}{F}
So I was thinking:
Lookslike({INVBODY.DESCRIPTION},"*Marquee*")=false
with this example the text object shows on Marquee contracts but also on all other contracts as well.
I have another report which contains the same tables but uses different fields where the following formula works fine:
instr({Stock.CODE},"T002")=0
Am I missing something really obvious here???
I have tried 'if then':
if({stock.code})="T002")then false else true
but this doesn't have the desired result in that it fails to appear at all.
Using the above formula does it matter that T002 is not the entire code?
The code in question is a top level code and has a series of user changeable variables attached to it in the database, which create the final complete code. for example T002 is the top code for creating a stock item for a marquee of a given size and length.
Essentially what I need to achieve is that when there are marquee elements of the order I need the text object to visable in the report footer but if it is a catering order with no marquee then it needs to be supressed.
I also tried
instr({Stock.CODE},"T002")=0
which also has no effect on the behaviour of the text object.
In both situations the formula does not throw up any errors.
Rather than by stock code, is it possible to suppress the text object unless a specific word is present within the description?
The form is setup like this:
QTY Description Replacement Val Price Ea Total
1 6m x 12m Marquee 2978.00 413 413
In the above example, '6m' and '12m' are variables with the only constant being the word 'Marquee'
The full decription within the database is:
6m x {A}m Marquee with high grade, fire retardant PVC - {B}{D}{C}{E}{F}
So I was thinking:
Lookslike({INVBODY.DESCRIPTION},"*Marquee*")=false
with this example the text object shows on Marquee contracts but also on all other contracts as well.
I have another report which contains the same tables but uses different fields where the following formula works fine:
instr({Stock.CODE},"T002")=0
Am I missing something really obvious here???