Skip to main content
Participating Frequently
August 5, 2020
Question

FM2019: Structure View element unfold results in document change

  • August 5, 2020
  • 1 reply
  • 311 views

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 ?

    This topic has been closed for replies.

    1 reply

    Legend
    August 5, 2020

    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

    ofoo6Author
    Participating Frequently
    August 5, 2020

    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.