<!-- 
RSS generated by JIRA (9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b) at Mon Feb 12 01:22:52 CET 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Magnolia - Issue tracker</title>
    <link>https://jira.magnolia-cms.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-uk</language>    <build-info>
        <version>9.4.2</version>
        <build-number>940002</build-number>
        <build-date>19-01-2023</build-date>
    </build-info>


<item>
            <title>[DOCU-1965] Documentation on creating a custom &apos;select&apos; field with dynamic options list.</title>
                <link>https://jira.magnolia-cms.com/browse/DOCU-1965</link>
                <project id="10190" key="DOCU">Documentation</project>
                    <description>&lt;p&gt;I&apos;m looking for documentation on how I might be able to create a &apos;select&apos; field where the options list comes from an external source (e.g. REST service, database query, etc.).&#160; Ideally, I&apos;d want this for a &apos;twinColSelect&apos;, but I imagine the process is the same or similar.&#160; Does such documentation (or sample code) exist?&lt;/p&gt;</description>
                <environment></environment>
        <key id="80202">DOCU-1965</key>
            <summary>Documentation on creating a custom &apos;select&apos; field with dynamic options list.</summary>
                <type id="7" iconUrl="https://jira.magnolia-cms.com/secure/viewavatar?size=xsmall&amp;avatarId=10880&amp;avatarType=issuetype">Development Support Request</type>
                                            <priority id="6" iconUrl="https://jira.magnolia-cms.com/images/icons/priorities/neutral.gif">Neutral</priority>
                        <status id="6" iconUrl="https://jira.magnolia-cms.com/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="11">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="tmunroe">Travis Munroe</reporter>
                        <labels>
                    </labels>
                <created>Tue, 8 Oct 2019 22:58:11 +0200</created>
                <updated>Mon, 28 Oct 2019 11:38:23 +0100</updated>
                            <resolved>Fri, 25 Oct 2019 11:32:59 +0200</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="200662" author="slutz" created="Thu, 24 Oct 2019 17:04:27 +0200"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.magnolia-cms.com/secure/ViewProfile.jspa?name=tmunroe&quot; class=&quot;user-hover&quot; rel=&quot;tmunroe&quot;&gt;tmunroe&lt;/a&gt;, &lt;/p&gt;

&lt;p&gt;which version of Magnolia are you using? We are currently working on our REST client functionality and will ship light development capabilities with Magnolia 6.2 As a part of that, we are also improving the documentation and code samples. We do have some samples ready, but they are built using light development, so will only be applicable as of 6.2.&lt;/p&gt;

&lt;p&gt;Best regards,&lt;br/&gt;
Simon&lt;/p&gt;</comment>
                            <comment id="200676" author="tmunroe" created="Thu, 24 Oct 2019 20:25:03 +0200"  >&lt;p&gt;Hi Simon,&lt;/p&gt;

&lt;p&gt;We are currently on 5.7.3 but plan to migrate to 6.2 when it&apos;s available.&#160; I was able to get something working by extending&#160;info.magnolia.ui.form.field.factory.SelectFieldFactory and overriding the getOptions() method.&#160; Will this still work on 6.2 or does this all change with the move to Vaadin 8?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;/p&gt;

&lt;p&gt;Travis&lt;/p&gt;</comment>
                            <comment id="200715" author="slutz" created="Fri, 25 Oct 2019 11:32:48 +0200"  >&lt;p&gt;Hi Travis,&lt;/p&gt;

&lt;p&gt;that depends a bit on your context. Magnolia 6.2 will have a compatibility layer to take care of custom implementations. If you are using this implementation in your own app, then you should have no issue. If you are using a Magnolia app that we will port to the new UI framework with 6.2 (e.g. Pages), then you will have to use the legacy app most likely until you have ported your custom implementation. &lt;/p&gt;

&lt;p&gt;The good news are that it will be much easier to implement such things as of 6.2; you will be able to define a datasource and bind your select to it - with the declarative REST functionality, you won&apos;t even need coding efforts.&lt;/p&gt;

&lt;p&gt;I hope that helps you. I will close this ticket. If you need anything else, please create a ticket in the SUPPORT-project.&lt;/p&gt;

&lt;p&gt;Cheers,&lt;br/&gt;
Simon&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="59003" name="Screenshot at 2019-10-17 16-03-27.png" size="16123" author="mdrapela" created="Thu, 17 Oct 2019 16:11:15 +0200"/>
                            <attachment id="59002" name="image-2019-10-17-16-10-32-502.png" size="2130" author="mdrapela" created="Thu, 17 Oct 2019 16:10:32 +0200"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10111" key="com.atlassian.jira.toolkit:reporterdomain">
                        <customfieldname>Company</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>araglegal.com</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10031" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of First Response</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 17 Oct 2019 14:51:02 +0200</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_12730" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_14151" key="com.atlassian.jira.toolkit:message">
                        <customfieldname>Docu info</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10061" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comm is not jira-dev</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10071" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last participant</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>rgange</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_13136" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            4 years, 16 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10020" key="com.atlassian.jira.toolkit:attachments">
                        <customfieldname>Number of attachments</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10150" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname>Number of comments</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>slutz</customfieldvalue>
            <customfieldvalue>tmunroe</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10833" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|y01xku:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10244" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_14145" key="com.intenso.jira.issue-templates:issue-templates-customfield">
                        <customfieldname>Template</customfieldname>
                        <customfieldvalues>
                            


                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_15131" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Time in Discovery</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10032" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time in Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_13933" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Urgency (resolution)</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="15724"><![CDATA[Normal]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    </customfields>
    </item>
</channel>
</rss>