scott4392
(Scott Maier)
March 11, 2017, 9:15pm
#1
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?
krivopustov
(Konstantin Krivopustov)
March 12, 2017, 8:47am
#2
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>
@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
krivopustov
(Konstantin Krivopustov)
March 13, 2017, 1:17pm
#4
These are just various values not associated with entities.