Skip to main content
Inspiring
December 16, 2015
Answered

Set conditional tag to all table cells including the content

  • December 16, 2015
  • 1 reply
  • 889 views

Hi,

I am using FM12, unstructured. I would like to set the entire content of a chapter to a certain conditional text (by selecting all content and setting the condition).

My problem is with tables. This action only sets the table as a frame, but does not set the table cell contents as conditional. Is there a simple way to do this without scripting?

Thanks in advance,

Hani

This topic has been closed for replies.
Correct answer Hani Salloum

I received a simple solution in the FrameMaker community - Set conditional tag to all table cells including the content

Thanks for your time.

1 reply

frameexpert
Community Expert
Community Expert
December 16, 2015

Hi Hani,

It would require scripting to make the contents of each table cell conditional, or all of the rows, but if the table anchor is conditional, the whole table should get hidden when you hide the text.

If you are making the entire chapter content conditional, you may be better to just Exclude the file from the book (right-click on the book component in the book window and check Exclude).

Rick

www.frameexpert.com
Inspiring
December 17, 2015

Thank you Rick for your reply. Let me explain the motivation. We have a document which is accessible only to specific customers, out of which we wish to create a smaller, rather basic document that will become publicly accessible. Since the document changes frequently, we wish to remain with one master source and not split the  documents.

We wish to hide a lot of proprietary content by conditionalizing entire chapters as non-public first, and then just conditionalizing some text and certain cells of tables as public. Please see the figure below for illustration. The highlighted table cells are the ones we wish to expose publicly, and hide the rest. We have hundreds of tables in the book, so there is a lot of manual work for the first version, but marking the public text and table cells is much easier than marking the non-public. If there is a way to set all table fields (cell text, not entire rows/columns), as conditional, then it would make our work much easier.


So I probably need scripting. Does anyone know of a publicly available script that sets all cell contents as conditional? I have a FrameScript license, but currently I don't have a scripter.

Thanks again.


Hani SalloumAuthorCorrect answer
Inspiring
December 17, 2015

I received a simple solution in the FrameMaker community - Set conditional tag to all table cells including the content

Thanks for your time.