custom controls

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

custom controls

dac.nguyen

Hi,

currently we have created new data types and added them to your list of data
types. To use them, our users have to select a control, drag and drop it onto
the canvas. They then select and assign a data type from the list to the
control.

However, we would now like to provide a custom control for each of the data
types that we created. So the users would no longer have to select a control,
drag and drop onto the canvas and then select a data type.
They would simply select, drag and drop the custom control.

I know we can create a template but the problem with it is that it takes a
whole section when the user drops it. The user can not have a control displayed
simply next to a template section.

So my question is :
1) is this a feature you are looking to add? if yes, how soon?
2) if this is not a feature you are looking to add, is this something we could
ask you to build for us? could you give us an estimation of the cost and the
time it would take?

Thank you very much for you time.
Regards,

Dac Nguyen


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: custom controls

Erik Bruchez
Administrator
Dac,

One thing is unclear to me: are the custom controls identical to
existing controls, such as input fields or selection controls, but
with a different datatype for validation? Or are those custom controls
supposed to have different behavior?

Can you please provide a concrete example?

-Erik

On Wed, Mar 14, 2012 at 12:02 PM,  <[hidden email]> wrote:

>
> Hi,
>
> currently we have created new data types and added them to your list of data
> types. To use them, our users have to select a control, drag and drop it onto
> the canvas. They then select and assign a data type from the list to the
> control.
>
> However, we would now like to provide a custom control for each of the data
> types that we created. So the users would no longer have to select a control,
> drag and drop onto the canvas and then select a data type.
> They would simply select, drag and drop the custom control.
>
> I know we can create a template but the problem with it is that it takes a
> whole section when the user drops it. The user can not have a control displayed
> simply next to a template section.
>
> So my question is :
> 1) is this a feature you are looking to add? if yes, how soon?
> 2) if this is not a feature you are looking to add, is this something we could
> ask you to build for us? could you give us an estimation of the cost and the
> time it would take?
>
> Thank you very much for you time.
> Regards,
>
> Dac Nguyen
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Re: custom controls

jean-francois.rizand
Hi Erik,

I can talk on Dac's behalf; we are working together.

What we need is "Control Templates", the same way we have "Section Templates" in Orbeon Editor.
In the "Section Templates", there are predefined sections with all their fields ready for use. When you design a form, you select the section template and put it in its place on the form.

We would like to do the same but with control.
We would prepare a control template, based on the existing controls and set all necessary properties, data type etc....
Then, when designing a form we would select the custom control and put it in its dedicated grid cell. (no need to set datatype, items, properties, etc...).

We cannot use a custom section instead as a workaround because:
- we cannot move or copy a control from a section template to another grid cell in the form. (can we?)
- we don't want to have one section, one per control (not nice :-))

--- Jf

-----Message d'origine-----
De : [hidden email] [mailto:[hidden email]] De la part de Erik Bruchez
Envoyé : 16 mars 2012 19:04
À : [hidden email]
Objet : [ops-users] Re: custom controls

Dac,

One thing is unclear to me: are the custom controls identical to existing controls, such as input fields or selection controls, but with a different datatype for validation? Or are those custom controls supposed to have different behavior?

Can you please provide a concrete example?

-Erik

On Wed, Mar 14, 2012 at 12:02 PM,  <[hidden email]> wrote:

>
> Hi,
>
> currently we have created new data types and added them to your list
> of data types. To use them, our users have to select a control, drag
> and drop it onto the canvas. They then select and assign a data type
> from the list to the control.
>
> However, we would now like to provide a custom control for each of the
> data types that we created. So the users would no longer have to
> select a control, drag and drop onto the canvas and then select a data type.
> They would simply select, drag and drop the custom control.
>
> I know we can create a template but the problem with it is that it
> takes a whole section when the user drops it. The user can not have a
> control displayed simply next to a template section.
>
> So my question is :
> 1) is this a feature you are looking to add? if yes, how soon?
> 2) if this is not a feature you are looking to add, is this something
> we could ask you to build for us? could you give us an estimation of
> the cost and the time it would take?
>
> Thank you very much for you time.
> Regards,
>
> Dac Nguyen
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: RE: Re: custom controls

Erik Bruchez
Administrator
Jf,

This is already supported, if I understand you requirement well. The
Form Builder toolbox is already configurable via properties, see:

https://github.com/orbeon/orbeon-forms/blob/master/src/resources-packaged/config/properties-form-builder.xml#L20

Now some controls are complete XBL components, but some are just
placeholders for the basic controls. For example, the text controls:

https://github.com/orbeon/orbeon-forms/blob/master/src/resources/forms/orbeon/builder/xbl/text-controls.xbl

Notice now the <metadata> sections: they specify a <datatype>.

So you should be able to:

- create your own foo-controls.xbl
- add bindings with your custom datatype under <datatype>
- add properties to your properties-local.xml to point to that file
- restart the container or reload the toolbox (reload icon at the top)

-Erik

On Fri, Mar 16, 2012 at 4:52 PM, Jean-François Rizand
<[hidden email]> wrote:

> Hi Erik,
>
> I can talk on Dac's behalf; we are working together.
>
> What we need is "Control Templates", the same way we have "Section Templates" in Orbeon Editor.
> In the "Section Templates", there are predefined sections with all their fields ready for use. When you design a form, you select the section template and put it in its place on the form.
>
> We would like to do the same but with control.
> We would prepare a control template, based on the existing controls and set all necessary properties, data type etc....
> Then, when designing a form we would select the custom control and put it in its dedicated grid cell. (no need to set datatype, items, properties, etc...).
>
> We cannot use a custom section instead as a workaround because:
> - we cannot move or copy a control from a section template to another grid cell in the form. (can we?)
> - we don't want to have one section, one per control (not nice :-))
>
> --- Jf
>
> -----Message d'origine-----
> De : [hidden email] [mailto:[hidden email]] De la part de Erik Bruchez
> Envoyé : 16 mars 2012 19:04
> À : [hidden email]
> Objet : [ops-users] Re: custom controls
>
> Dac,
>
> One thing is unclear to me: are the custom controls identical to existing controls, such as input fields or selection controls, but with a different datatype for validation? Or are those custom controls supposed to have different behavior?
>
> Can you please provide a concrete example?
>
> -Erik
>
> On Wed, Mar 14, 2012 at 12:02 PM,  <[hidden email]> wrote:
>>
>> Hi,
>>
>> currently we have created new data types and added them to your list
>> of data types. To use them, our users have to select a control, drag
>> and drop it onto the canvas. They then select and assign a data type
>> from the list to the control.
>>
>> However, we would now like to provide a custom control for each of the
>> data types that we created. So the users would no longer have to
>> select a control, drag and drop onto the canvas and then select a data type.
>> They would simply select, drag and drop the custom control.
>>
>> I know we can create a template but the problem with it is that it
>> takes a whole section when the user drops it. The user can not have a
>> control displayed simply next to a template section.
>>
>> So my question is :
>> 1) is this a feature you are looking to add? if yes, how soon?
>> 2) if this is not a feature you are looking to add, is this something
>> we could ask you to build for us? could you give us an estimation of
>> the cost and the time it would take?
>>
>> Thank you very much for you time.
>> Regards,
>>
>> Dac Nguyen
>>
>>
>> --
>> You receive this message as a subscriber of the [hidden email] mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Re: RE: Re: custom controls

jean-francois.rizand
Thanks Erik.

It pretty much looks like what we need. :-)

-----Message d'origine-----
De : [hidden email] [mailto:[hidden email]] De la part de Erik Bruchez
Envoyé : 16 mars 2012 20:36
À : [hidden email]
Objet : [ops-users] Re: RE: Re: custom controls

Jf,

This is already supported, if I understand you requirement well. The Form Builder toolbox is already configurable via properties, see:

https://github.com/orbeon/orbeon-forms/blob/master/src/resources-packaged/config/properties-form-builder.xml#L20

Now some controls are complete XBL components, but some are just placeholders for the basic controls. For example, the text controls:

https://github.com/orbeon/orbeon-forms/blob/master/src/resources/forms/orbeon/builder/xbl/text-controls.xbl

Notice now the <metadata> sections: they specify a <datatype>.

So you should be able to:

- create your own foo-controls.xbl
- add bindings with your custom datatype under <datatype>
- add properties to your properties-local.xml to point to that file
- restart the container or reload the toolbox (reload icon at the top)

-Erik

On Fri, Mar 16, 2012 at 4:52 PM, Jean-François Rizand <[hidden email]> wrote:

> Hi Erik,
>
> I can talk on Dac's behalf; we are working together.
>
> What we need is "Control Templates", the same way we have "Section Templates" in Orbeon Editor.
> In the "Section Templates", there are predefined sections with all their fields ready for use. When you design a form, you select the section template and put it in its place on the form.
>
> We would like to do the same but with control.
> We would prepare a control template, based on the existing controls and set all necessary properties, data type etc....
> Then, when designing a form we would select the custom control and put it in its dedicated grid cell. (no need to set datatype, items, properties, etc...).
>
> We cannot use a custom section instead as a workaround because:
> - we cannot move or copy a control from a section template to another
> grid cell in the form. (can we?)
> - we don't want to have one section, one per control (not nice :-))
>
> --- Jf
>
> -----Message d'origine-----
> De : [hidden email] [mailto:[hidden email]] De la part de Erik
> Bruchez Envoyé : 16 mars 2012 19:04 À : [hidden email] Objet :
> [ops-users] Re: custom controls
>
> Dac,
>
> One thing is unclear to me: are the custom controls identical to existing controls, such as input fields or selection controls, but with a different datatype for validation? Or are those custom controls supposed to have different behavior?
>
> Can you please provide a concrete example?
>
> -Erik
>
> On Wed, Mar 14, 2012 at 12:02 PM,  <[hidden email]> wrote:
>>
>> Hi,
>>
>> currently we have created new data types and added them to your list
>> of data types. To use them, our users have to select a control, drag
>> and drop it onto the canvas. They then select and assign a data type
>> from the list to the control.
>>
>> However, we would now like to provide a custom control for each of
>> the data types that we created. So the users would no longer have to
>> select a control, drag and drop onto the canvas and then select a data type.
>> They would simply select, drag and drop the custom control.
>>
>> I know we can create a template but the problem with it is that it
>> takes a whole section when the user drops it. The user can not have a
>> control displayed simply next to a template section.
>>
>> So my question is :
>> 1) is this a feature you are looking to add? if yes, how soon?
>> 2) if this is not a feature you are looking to add, is this something
>> we could ask you to build for us? could you give us an estimation of
>> the cost and the time it would take?
>>
>> Thank you very much for you time.
>> Regards,
>>
>> Dac Nguyen
>>
>>
>> --
>> You receive this message as a subscriber of the [hidden email] mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws