Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: Empty field on a band with auto height  (Read 14817 times)

maurosanjo

  • Newbie
  • *
  • Posts: 10
    • View Profile
Empty field on a band with auto height
« on: December 06, 2016, 05:13:19 pm »
Hello Arin,

Still investigating LimeReport hehehe  :D

In previous posts here regarding the option to supress empty fields, it is only for warnings or for also the space that geometry of the field takes on the report?

I did some testing and the field is still present but empty. Is there any way to supress the field so the band with autoheight that contains it will have its height decreased?

Regards

Arin Alex

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1005
    • View Profile
Re: Empty field on a band with auto height
« Reply #1 on: December 07, 2016, 08:28:13 pm »
I will thinking about it  :)

maurosanjo

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Empty field on a band with auto height
« Reply #2 on: December 26, 2016, 10:32:53 pm »
Hello Arin,

There is no other way of achieving that?

Also, do you have a development documentation to ease the study of LimeReport sources? This would help code contributions :)

Regards!

Arin Alex

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1005
    • View Profile
Re: Empty field on a band with auto height
« Reply #3 on: December 27, 2016, 09:24:48 pm »
Hi
I can offer the following solutions:
put fields that you want to suppress on subdetail band and set visibility of the band to false when you want to hide this fields
it wil work on latest (1.4) version. Example is attached.

Quote
Also, do you have a development documentation to ease the study of LimeReport sources?
Unfortunately there is no development documentation :(
« Last Edit: January 09, 2017, 07:19:13 pm by Arin Alex »

maurosanjo

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Empty field on a band with auto height
« Reply #4 on: January 09, 2017, 02:12:45 pm »
Hello Arin,

Unfortunately the subdetail won't do the trick, they appear for each row on the data band, what I want is only once per group so GroupHeader would be the one. The fields will be customized by the user regarding visibility.

Thanks for your kind attention.

Kiko

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Empty field on a band with auto height
« Reply #5 on: June 07, 2018, 08:02:16 pm »
Hello everyone,

The property "autoHeight" still does not suppress the text field when it is empty.
Is it supposed to do this or is there another function or property to make the text field suppress?

Regards.

Subst

  • Sr. Member
  • ****
  • Posts: 450
    • View Profile
Re: Empty field on a band with auto height
« Reply #6 on: June 08, 2018, 11:50:33 am »
To Kiko:

Is the textitem inside band?
In this case set autoHeight property to true for the band also

Kiko

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Empty field on a band with auto height
« Reply #7 on: June 08, 2018, 12:48:08 pm »
Yes, the textitem is inside a band and both have the property "autoHeight" checked and doesn't work. The space still appears for each textitem when it is empty.

Subst

  • Sr. Member
  • ****
  • Posts: 450
    • View Profile
Re: Empty field on a band with auto height
« Reply #8 on: June 08, 2018, 01:02:31 pm »
It's so strange. Are u've built LR from source or have downloaded binary?

Subst

  • Sr. Member
  • ****
  • Posts: 450
    • View Profile
Re: Empty field on a band with auto height
« Reply #9 on: June 08, 2018, 01:03:20 pm »
Can I see your report file?

Kiko

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Empty field on a band with auto height
« Reply #10 on: June 08, 2018, 05:19:16 pm »
I built from source.
Here is my report file.

Subst

  • Sr. Member
  • ****
  • Posts: 450
    • View Profile
Re: Empty field on a band with auto height
« Reply #11 on: June 08, 2018, 05:40:07 pm »
Try to upload again. The file looks like corrupted

Kiko

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Empty field on a band with auto height
« Reply #12 on: June 08, 2018, 06:08:26 pm »
My bad.

Subst

  • Sr. Member
  • ****
  • Posts: 450
    • View Profile
Re: Empty field on a band with auto height
« Reply #13 on: June 08, 2018, 07:16:37 pm »
Well, look. You try to place all data in one band, and at bottom the text is exists. Therefore the band don't adjust it's size according the empty strings.
You need to place the strings in separate bands as variant.

Look the file I attached.

Arin Alex

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1005
    • View Profile
Re: Empty field on a band with auto height
« Reply #14 on: June 09, 2018, 03:20:52 am »
Kiko
Look at this sample maybe it can help you