Repeat in control details in own xbl control

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

Repeat in control details in own xbl control

pumbosha
Hallo

Is it possibility to use repeat in control configuration like in Action control in Orbeon PE (in "Set Service Request Values" section)? If yes, how to get values from repeat fields in xbl, and how to use it? I'm searching some tutorial for this, but I can't find. In addition: I use CE edition.

Regards,
Tom
Reply | Threaded
Open this post in threaded view
|

Re: Repeat in control details in own xbl control

Erik Bruchez
Administrator
I don't understand the question. Can you please clarify? -Erik
Reply | Threaded
Open this post in threaded view
|

Re: Repeat in control details in own xbl control

pumbosha
Thank You for reply.
I want to add to my control, configuration field like in image attachement below, and get the values from it. I know that, If I want to add to configuration simple inputs, I write in metadata section of my xbl file:

<control-details>
   <xf:input ref="@resource">
      <xf:label lang="en">Resource URI</xf:label>
      ...          
   </xf:input>
</control-details>       

but I don't know how to put to configuration panel repeat-field with '+' icon, and how to retrieve data from this field.



regards,
Tom
Reply | Threaded
Open this post in threaded view
|

Re: Repeat in control details in own xbl control

Alessandro  Vernet
Administrator
Hi Tom,

Right now, only xf:input is supported there, and you can't have a repeat. You can see how this is done right now in the Form Builder's code (see link below). The code essentially just iterates of the fb:control-details/*, which it assumes to be xf:input, and created xf:inputs in the dialog.

https://github.com/orbeon/orbeon-forms/blob/tag-release-4.5-ce/src/resources-packaged/xbl/fb/dialog-control-details/dialog-control-details.xbl#L296

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet