add custom property to control setting

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

add custom property to control setting

fabio_barion

I added a new "Custom Settings" tab to te Control Setting, but it's empty,
how do I add a text box? this is the xbl component I created. I need to make
a label and a text box appear.



<xbl:xbl xmlns:xh="http://www.w3.org/1999/xhtml"
         xmlns:xf="http://www.w3.org/2002/xforms"
         xmlns:xs="http://www.w3.org/2001/XMLSchema"
         xmlns:ev="http://www.w3.org/2001/xml-events"
         xmlns:xxf="http://orbeon.org/oxf/xml/xforms"
         xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
         xmlns:xbl="http://www.w3.org/ns/xbl"
         xmlns:xxbl="http://orbeon.org/oxf/xml/xbl">

    <xbl:binding
                element=
                        "orbeon|custom-setting"
                id="orbeon-custom-setting">
                <metadata xmlns="http://orbeon.org/oxf/xml/form-builder">
                                <display-name lang="en">Custom-Setting</display-name>
                               
                                <templates>
                <bind type="xf:string"/>
                <view>
                    <fb:custom-setting>
                        <xf:label ref=""/>
                        <xf:hint ref=""/>
                        <xf:help ref=""/>
                        <xf:alert ref=""/>
                    </fb:custom-setting>
                </view>
            </templates>

                        </metadata>
        <xbl:template>
               
           
            <xf:input ref="xxf:binding('orbeon-custom-setting')"
id="txtCustom" />

                       
                        <xbl:template>
            <xf:select appearance="full"
ref="xxf:binding('orbeon-custom-setting-binding')"
xbl:attr="xxf:encrypt-item-values">
                <xf:hint mediatype="text/html"
value="xxf:hint('orbeon-custom-setting-binding')"/>
                <xf:item>
                    <xf:label mediatype="text/html"
value="xxf:label('orbeon-custom-setting-binding')"/>
                    <xf:value
xbl:attr="xbl:text=selected-value">true</xf:value>
                </xf:item>
                <xf:setvalue
                    event="xforms-select"
                    ref="."
                    xbl:attr="xbl:text=selected-value">true</xf:setvalue>
                <xf:setvalue
                    event="xforms-deselect"
                    ref="."
                    xbl:attr="xbl:text=deselected-value">false</xf:setvalue>
            </xf:select>
                       
        </xbl:template>
                       

        </xbl:template>
        </xbl:binding>
        </xbl:xbl>
       

--
Sent from: http://discuss.orbeon.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].
Reply | Threaded
Open this post in threaded view
|

Re: add custom property to control setting

Alessandro  Vernet
Administrator
Hi Fabio,

I've seen that your coworker Alberto also posted this question to your
private support, and that Erik posted a response to that question, so I
suggest we continue the discussion there. And of course, just let me know if
this is something different.

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.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].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet