Get edited entity in xml editor screen

Good evening, such a question.
I have an xml of the editor screen, a collection is loaded there (indRequests).
It has a query.
I need to get in the query the current object (municipal), which is being edited.

<groupDatasource id="indRequestsDs" class="com.company.project.entity.INDRequest" view="showRequest">
            <query>
                <![CDATA[select e from project$INDRequest e where EDITED_ENTITY = e.municipal]]>
            </query>
        </groupDatasource>

Hi,
If you are developing legacy UI screens with datasources, then you can use parameters with :ds$ prefix to access item stored in another datasource (edited entity is stored in the datasource).
See here for information and examples:
https://doc.cuba-platform.com/manual-7.2/datasource_query_params.html