I'm building an xbl control that requires some pre-configured values at design time. These preconfigured values come from a web service and I have another control (similar to dynamic data dropdown) that lets me select a value.
I would like to use the second control in the control settings so I tried that in the fb:control-details section but that seems to only allow input controls. Is there a way to use other controls in the control settings dialog? I've been using the following for testing. There are 4 items in the control-details. The first and last are inputs, the second is a standard select1 and the third is my custom control. Only the first and fourth ones display when the control settings dialog is displayed. <fb:metadata xmlns="http://orbeon.org/oxf/xml/form-builder"> <fb:display-name lang="en">Codeset Dropdown</fb:display-name> <fb:icon lang="en"> <fb:small-icon>/forms/orbeon/builder/images/dropdown.png</fb:small-icon> <fb:large-icon>/forms/orbeon/builder/images/dropdown.png</fb:large-icon> </fb:icon> <fb:datatype>xs:string</fb:datatype> <fb:template> <im:codeset-select1 id="" appearance="minimal" ref="" xmlns="" ColorCode="" codeset="" category=""> <xf:label ref="" /> <xf:hint ref="" /> <xf:help ref="" /> <xf:alert ref="$fr-resources/detail/labels/alert" /> </im:codeset-select1> </fb:template> <fb:control-details> <xf:input ref="@codeset"> <xf:label>Select the codeset</xf:label> <xf:hint>The codeset</xf:hint> </xf:input> <xf:select1 ref="@ColorCode" appearance="full"> <xf:item> <xf:label>Red</xf:label> <xf:value>red</xf:value> </xf:item> <xf:item> <xf:label>Orange</xf:label> <xf:value>orange</xf:value> </xf:item> </xf:select1> <im:codeset-index-select1 ref="@codeset"> <xf:label>Select a codeset</xf:label> <xf:hint>Format is ns:codeset where ns is the namespace and codeset is the name of the required codeset</xf:hint> </im:codeset-index-select1> <xf:input ref="@category"> <xf:label>Select the category within the codeset</xf:label> <xf:hint>The category is a name of a set of entries in the codeset</xf:hint> </xf:input> </fb:control-details> </fb:metadata> |
Administrator
|
Hi Brian,
At this point, as you've noted, you can only use inputs in the preferences. This is done in the section of dialog-control-details.xbl linked below. You can see there that the code generates an xf:input if it finds an xf:input under fb:control-details. Now you could add code there in dialog-control-details.xbl to add your control foo:bar if a foo:bar is found in fb:control-details. This at least waiting for that code to be more generic and maybe allow any type of control under fb:control-details. https://github.com/orbeon/orbeon-forms/blob/tag-release-4.9-ce/src/resources-packaged/xbl/fb/dialog-control-details/dialog-control-details.xbl#L318 Alex On Wed, May 6, 2015 at 12:20 AM, bwallis42 <[hidden email]> wrote: > I'm building an xbl control that requires some pre-configured values at > design time. These preconfigured values come from a web service and I have > another control (similar to dynamic data dropdown) that lets me select a > value. > > I would like to use the second control in the control settings so I tried > that in the fb:control-details section but that seems to only allow input > controls. Is there a way to use other controls in the control settings > dialog? > > I've been using the following for testing. There are 4 items in the > control-details. The first and last are inputs, the second is a standard > select1 and the third is my custom control. Only the first and fourth ones > display when the control settings dialog is displayed. > > > > -- > View this message in context: http://discuss.orbeon.com/xbl-and-fb-control-details-tp4659877.html > Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.com. > > -- > You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. > To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. > To post to this group, send email to [hidden email]. -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |