• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

FormatChangeList property integer value mystery

Enthusiast ,
Jan 06, 2018 Jan 06, 2018

Copy link to clipboard

Copied

I am using ExtendScript to dynamically manipulate the formatting of a structured document. It's all working quite well except for one mystery...

Given an EDD that has a text formatting rule where the left indent is set to 0 mm. This will be stored in the associated FormatChangeList as an integer value of 0. That's fine, but the default value for all FormatChangeList properties is 0. So my question is, how does the EDD get generated to include only specific instances where a property value is set to 0?

fclEDD.png

In the DataBrowser we see this:

fclDataBrowser.png

String values are set to null and Objects can be tested using ObjectValid()...

I feel that there is a hidden mechanism that tells the FrameMaker formatting engine to use the value 0 when it is set in the EDD, but ignore it at all other times. That seems unlikely, so I think this must be a bug in the ExtendScript implementation and that the empty values should be null? is this odd behaviour the same via the FDK?

Thanks for any help

Ian

TOPICS
Scripting

Views

427

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jan 06, 2018 Jan 06, 2018

Copy link to clipboard

Copied

Further investigation shows that in the FDK an FO_FormatChangeList only includes the properties that have a value. In the ExtendScript environment a FormatChangeList incorrectly includes ALL properties.

I think it's safe to say that this is a bug. Does anyone disagree?

Ian

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jan 29, 2018 Jan 29, 2018

Copy link to clipboard

Copied

LATEST

Added as bug FRMAKER-3906

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines