[ 
https://issues.apache.org/jira/browse/OFBIZ-13157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17893373#comment-17893373
 ] 

ASF subversion and git services commented on OFBIZ-13157:
---------------------------------------------------------

Commit 277f09a8cc499b9444b1bdacf1f2060e133dbe22 in ofbiz-site's branch 
refs/heads/master from Nicolas Malin
[ https://gitbox.apache.org/repos/asf?p=ofbiz-site.git;h=277f09a ]

Implemented: Add group option on drow-down in xml screen form (OFBIZ-13157)
Synchronized widget-form.xsd to add group-options description


> Add group option on drow-down in xml screen form 
> -------------------------------------------------
>
>                 Key: OFBIZ-13157
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-13157
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework/widget
>            Reporter: Nicolas Malin
>            Assignee: Nicolas Malin
>            Priority: Minor
>              Labels: Option, group, screen, widget, xml
>         Attachments: Capture d’écran du 2024-10-21 11-33-31.png
>
>
> When you define a drop-down field in xml form, add new optional level with 
> group-options to organize options.
> {code:java}
>         <field name="group">
>             <drop-down>
>                 <group-options description="A">
>                     <option key="A1" description="Ad1"/>
>                     <option key="A2" description="Ad2"/>
>                 </group-options>
>                 <group-options description="B">
>                     <option key="B1" description="Bd1"/>
>                     <option key="B2" description="Bd2"/>
>                 </group-options>
>             </drop-down>
>         </field> {code}
> Group-options can received all type options :
> {code:java}
>         <field name="roleTypeId">
>             <drop-down>
>                 <group-options description="Customer roles">
>                     <entity-options entity-name="RoleType">
>                         <entity-constraint name="parentType" vale="CUSTOMER"/>
>                     </entity-options>
>                 </group-options>
>                 <group-options description="Supplier roles">
>                     <entity-options entity-name="RoleType">
>                         <entity-constraint name="parentType" vale="SUPPLIER"/>
>                     </entity-options>
>                 </group-options>
>                 <group-options description="Other roles">
>                     <list-options list-name="otherRoles"/>
>                 </group-options>                
>             </drop-down>
>         </field> {code}
> At this time only the drop-down is supported, group-option can works for 
> radio and check but not implement on ftl macro library.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to