Highlighted

FM2019: Structure View element unfold results in document change

Community Beginner ,
Aug 05, 2020

Copy link to clipboard

Copied

When in structure view of FM2019 some element is unfold and then close the document the FM AIP sends event FA_Note_PreQuitDoc(which is correct). But, the boolean FP_DocIsModified is set to true.

We do not need to save document upon any click in Structure View.

Any idea please ?

Views

32

Likes

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

FM2019: Structure View element unfold results in document change

Community Beginner ,
Aug 05, 2020

Copy link to clipboard

Copied

When in structure view of FM2019 some element is unfold and then close the document the FM AIP sends event FA_Note_PreQuitDoc(which is correct). But, the boolean FP_DocIsModified is set to true.

We do not need to save document upon any click in Structure View.

Any idea please ?

Views

33

Likes

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
Aug 05, 2020 0
Mentor ,
Aug 05, 2020

Copy link to clipboard

Copied

Hi,

 

This is normal behavior. The expand/collapse state is a property of the element object, so that the Structure View settings persist when you close and reopen documents. In other words, a change to the expand/collapse state of any object is considered a document change.

Maybe there is a workaround? What is the real problem with the FP_DocIsModified flag?

 

Russ

Likes

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
Reply
Loading...
Aug 05, 2020 0
ofoo6 LATEST
Community Beginner ,
Aug 05, 2020

Copy link to clipboard

Copied

Thank you for your answer.

There is no problem with the flag...we just want to get FALSE for this call

Fx_ApiGetInt(FV_SessionId, FMId, FP_DocIsModified);

in case user did just a a expand/collapse in Structure View.

Likes

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
Reply
Loading...
Aug 05, 2020 0