Component Inspector attribute modifications remove Screen Fragment Properties

Hello Everyone

I have found a problem in CUBA Studio that affects the XML screen descriptors.

Operating System: macOS Big Sur 11.1
Browser: Safari Version 14.0.2 (16610.3.7.1.9)
File System: Case-Sensitive Journaled HFS+ (APFS)
Datebase: MySQL 8.0.19

CUBA Platform version: 7.2.11
CUBA Studio plugin version: 14.3-193
IntelliJ version: CUBA Studio 2019.3

Use Case: I have created a Screen Fragment that uses two properties that are passed to it from the screen that uses it. This is the normal usage as described in the documentation and the my fragment does work correctly in several screens.

Problem: When I use the studio’s Component Inspector to modify an attribute of another screen component in my ext-main-screen.xml or other screen descriptor file, for example, when I set the lookupField to editable=“false”, then I lose all of my fragment properties. Studio removes them.

Before setting editable=“false”…

<fragment id="browserFrameFragment" screen="demo_BrowserFrameFragment">
    <properties>
       <property name="page" value="home"/>
       <property name="mimeType" value="text/html"/>
   </properties>
</fragment>

After setting editable=“false”…

<fragment id="browserFrameFragment" screen="demo_BrowserFrameFragment"/>

The properties are gone.

You may test this behavior yourself with this demo project that I received from Gleb for another subject and modified to reproduce this behavior. Please note that I did not include any fragment controller code; it is not necessary to show this behavior.

Demo project: anonymous-screens-access.zip (90.9 KB)

I hope that all of this information can be of help.

Best regards
Chris

Thank you for reporting the problem. We have created a YouTrack issue
BR,
Yulia Maistrenko

@Maistrenko
Hello Yuliya

Thank you for the quick feedback and your efforts.

Best regards
Chris