How can I add User Settings?

I would like to add more fields to the Help > Settings page. How can I do this?

I tried adding a Dynamic Attribute, but, when I add the attribute and go to Visibility > Add target screen there are no screens in the drop down it is blank.

I was also looking for a screen that I could extend but I am not finding it either.

How can I do this?

Dynamic attributes would’n help - they can be used only with an entity, but Settings screen is not associated with any.

But you can extend it as any other screen in the platform, its ID is settings. See the attached screenshot

An extended XML descriptor may look like this:


<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<window xmlns="http://schemas.haulmont.com/cuba/window.xsd"
        class="com.company.sales.web.my_screens.ExtSettingsWindow"
        extends="/com/haulmont/cuba/web/app/ui/core/settings/settings-window.xml"
        messagesPack="com.company.sales.web.my_screens"
        xmlns:ext="http://schemas.haulmont.com/cuba/window-ext.xsd">
    <layout>
        <groupBox>
            <grid>
                <rows>
                    <row>
                        <label align="MIDDLE_LEFT"
                               value="My setting"/>
                        <textField id="myField"/>
                    </row>
                </rows>
            </grid>
        </groupBox>
    </layout>
</window>

extend-settings

@konstantin is there any Entity associated to this setting? I guess I can use text field to display my session attributes, am I right?

Mortoza

These are just various values not associated with entities.