Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Conditionally place an object!!!

Status
Not open for further replies.

ssudha

Technical User
Oct 14, 2002
62
IN
Hello Friends,
Actually i am stuck with a problem like this.......in generating a report.

I get values(0 or 1) for flag column. I need to place checkbox for flag column. When value is 0 check box unchecked and when value is 1 check box checked. I am trying with two .bmp files but no success.

Kindly suggest some solution to this problem.
Thanks in Advance.
 
There has been a post similar to this before, I am still looking. It involved using a formula to output a certain letter depending on the 1 or zero, and then changing the font of that formula field on the report to Wingdings - which gives the check box, checked or unchecked. I'll see if I can find it.
 
Hi,
Thanks for the prompt reply,.....atleast i got some direction to go about.......let me check with this...

If u come across some solution to the same, please respond immediately.
Thanks.
 
It seems you just need to create a formula:

if {table.field} = 1 then 'x' else chr(254)

put that formula on the report and change the font to Wigdings.
I'll give it a go to see if it works for me.
 
Ah it gives you a tick and a cross,

if {table.field} = 1 then 'x' else 'o'
is almost there - the boxes don't come out the same size
 
Try:

if {table.field} = 1 then
chr(254)
else
chr(168)

The formula must be formatted with the wingdings font.

-LB
 
Hi,
I am using Business Objects 6.1b and i am getting empty checkbox and a checkbox with a cross in it for characters "o" and "x".
I need tick mark....Any help.
 
Hi Friends,
This is working perfectly for me.....
= If (<Flag>="1") Then Char(254) Else Char(168).

But if i export it to PDF i see some junk characters....
Excel is ok (fonts are supported).

Any other possibility of conditionally placing the objects in the cell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top