cancel
Showing results for 
Search instead for 
Did you mean: 

Define a new component for XForm

gursimrat
Champ in-the-making
Champ in-the-making
Hi,
I need a component in my XForm where I can select items from one box and move the selected items to another box, and move them up or down for ordering.
If such a component does not exists ,Is there a way out to customize existing List component for extended functionality or define a new component for XForm.

Thanks,
Gursimrat
1 REPLY 1

jbarmash
Champ in-the-making
Champ in-the-making
You would have to write one or more custom xform widgets.  You'd have to create it using DOJO Ajax Library, which is what the Alfresco XForm widgets are based on. 

You can create this all as one big widget.  The key to undrestand is that the widget is bound to the xml property through html form name (i.e. <text name="field1"> maps to xml <field1> on the backend.  Look at examples - it would become clear. 

Check out for guidance:
http://wiki.alfresco.com/wiki/Forms_Developer_Guide#Configuring_UI_control_mappings_in_web-client-co...

Try to find in the code the implementation of the List component and try to customize it.