It is currently Sat Feb 11, 2012 11:27 am

All times are UTC + 2 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: How to hide objects when no data entered
PostPosted: Mon Mar 08, 2010 4:43 pm 
Offline

Joined: Thu Sep 03, 2009 9:06 am
Posts: 36
Location: Pune
Hi all,

When I not insert any data in some fields in form and trying to print report, I am getting the objects as it is.

So, I want to hide that objects when there is no data.

If any solution please tell me.


Thanks


Top
 Profile  
 
 Post subject: Re: How to hide objects when no data entered
PostPosted: Tue Mar 09, 2010 1:00 pm 
Offline

Joined: Fri Apr 21, 2006 7:28 pm
Posts: 1332
Location: Cambridge, UK
manusurya9139 wrote:
... I want to hide that objects when there is no data....

E.g.
Code:
<para>[[ o.partner_order_id.city or '' ]]</para>

It's in the source code.

_________________
Regards, Geoff

Seath Solutions Ltd, Cambridge, UK


Top
 Profile  
 
 Post subject: Re: How to hide objects when no data entered
PostPosted: Wed Mar 10, 2010 6:34 am 
Offline

Joined: Thu Sep 03, 2009 9:06 am
Posts: 36
Location: Pune
Hi gegard,


Thanks for reply.

But even after doing this I am not able to hide objects in report. Is there any different solution for this problem?


Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 10, 2010 11:12 am 
Offline

Joined: Tue May 05, 2009 8:54 am
Posts: 15
Hi manusurya
Yes we can hide any obj for that u need to use " removeParentNode()"
see below for example:

Code:
eg:
<para style="terp_default_9">Telephone. : [[ o.partner_order_id.phone or removeParentNode('para') ]]</para>



Hope you got your solution

Thanks
SSI


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 12, 2010 7:03 am 
Offline

Joined: Thu Sep 03, 2009 9:06 am
Posts: 36
Location: Pune
Hi ssi

Thanks for reply. It worked for me. But I am not able to save space of object. Is it possible to remove the space??

Thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 2 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:

Protected by Anti-Spam ACP