Using hidden-data with table-data dont seems to work!
Hello,
It seems that using the hidden-data macro for content inside a table-data doesnt work. Maybe I'm using it wrongly.
I want to hide the whole section including h2 title and table-data if filed is empty.
Here is my code:
Thanks for any help.
It seems that using the hidden-data macro for content inside a table-data doesnt work. Maybe I'm using it wrongly.
I want to hide the whole section including h2 title and table-data if filed is empty.
Here is my code:
{hidden-data:whenEmpty=Prénom}
h2. Contact(s) sur site
{table-data:contacts}
|| PRENOM || NOM || TELEPHONE ||
| {text-data:Prénom|width=150px}{text-data} | {text-data:Nom|width=150px}{text-data} | {text-data:TéléphoneContact|width=250px}{text-data} |
{table-data}{hidden-data}
Thanks for any help.
1
person has this problem
I have this problem, too!
Tell me when someone solves it.
The more people who report this problem, the more it gets noticed.
The more people who report this problem, the more it gets noticed.
The best solution from the company
-
Hi again,
I've found the bug and checked in a fix, so it will show up in the next release. In the meantime, you can grab a development build from here and install it manually into your Confluence server.
The company and 1 other person say
this solves the problem
-
Inappropriate?Unfortunately, you are correct - you can't hide a table based on the contents of the table, just on whether the table has any rows or not. In this case, you can hide the section when there are no rows by doing this:
{hidden-data:whenEmpty=contacts}
-
That surprises me, David; but I would have pointed out that, from that position in the page at least, he has not referenced the {{contacts.Prénom}} field properly. -
Well, one thing is, if you specify {hidden-data:whenEmpty=contacts.Prenom}, does it mean when any of the 'Prenom' fields are empty or when all of them are empty.
It may be possible to add a new feature to support it. If you're interested in one, please add a feature request, but I don't think it will happen for the next version. I can schedule it for the following one though. -
Oh, I feel sheepish - tripped over the same problem I called you on...! -
Inappropriate?I came to the solution to remove table-data and instead use simple wiki table with text-data field. This has worked until now.
Today we deploy Confluence 3.0.1 and Scaffold 3.2.0 and this doesnt work anymore. Look for yourself. Here is the code:
{code}{hidden-data:whenEmpty=Procedure}
|| Procédure - Mode d'emploi - Guide d'utilisation ||
| {text-data:Procedure|type=area|width=100%|height=300px}{text-data} |
{hidden-data}{code}
This is the render:
I’m frustrated
-
Inappropriate?Hi Michael,
I've confirmed the bug and raised a bug report here. Please log in and watch the issue to get updates when it progresses. -
Inappropriate?Hi again,
I've found the bug and checked in a fix, so it will show up in the next release. In the meantime, you can grab a development build from here and install it manually into your Confluence server.
The company and 1 other person say
this solves the problem
-
Inappropriate?We're having the exact same problem with {hidden-data} not rendering wiki-markup since we upgraded yesterday... Maybe I'm stupid, but how can I download the build containing the fix? I went to the Banboo site, but could see no mechanism for downloading a file to install...
I’m miffed
-
Inappropriate?Hmm. The current build doesn't seem to be keeping the artifacts. Try this one:
https://bamboo.developer.atlassian.co... -
Inappropriate?Mr. Peterson, you are the MAN! :D
That works like a charm, many thanks! (And the fast response is impressive...)
To all: The above Bamboo build solves this problem perfectly.
I’m stoked
Loading Profile...



EMPLOYEE

