Workdesk HR - Form customization/web-services
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2013 04:57 AM
Hello there,
I'm using Alfresco Workdesk with HR app.
I want to add combobox in "New Dossier" form and then I want the data in combobox to be loaded via web-services.
From where can I start to make my idea alive?
Any suggestions,examples?
Thank you.
I'm using Alfresco Workdesk with HR app.
I want to add combobox in "New Dossier" form and then I want the data in combobox to be loaded via web-services.
From where can I start to make my idea alive?
Any suggestions,examples?
Thank you.
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2013 07:04 AM
Hi Baaka,
Workdesk allow to define custom handler for fields,
to achive that you can configure in the owbootstrap.xml a FieldControl.
You would need to implement the OwFieldManagerControl interface, which will be called in different context of the UI.
There you could implement your service based populated Combobox rendering.
FieldControls are registered on the Id of the field you want to manage in the UI, see the examples in owbootstrap.xml.
Cheers,
D.evil
Workdesk allow to define custom handler for fields,
to achive that you can configure in the owbootstrap.xml a FieldControl.
You would need to implement the OwFieldManagerControl interface, which will be called in different context of the UI.
There you could implement your service based populated Combobox rendering.
FieldControls are registered on the Id of the field you want to manage in the UI, see the examples in owbootstrap.xml.
Cheers,
D.evil
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2013 10:17 AM
Thank you D.evil,
Any examples? tutorials? please.
I'm in trouble creating custom form (with combobox/list) in which data'll be loaded dynamically.
Any examples? tutorials? please.
I'm in trouble creating custom form (with combobox/list) in which data'll be loaded dynamically.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2013 02:14 AM
Well there are examples for handling Comboboxes, look into
it creates a simple combobox with "next days" content.
There are three methods to implement:
The first two are obvious for what they are used,
the last one is for extracting the value from HTTP request which was fired.
com.wewebu.ow.server.fieldctrlimpl.OwNextDaysDateControl
it creates a simple combobox with "next days" content.
public void insertEditField(….){ … List items = new LinkedList(); Set keys = TRANSLATION_KEYS.keySet(); Iterator keysIterator = keys.iterator(); while (keysIterator.hasNext()) { Integer key = (Integer) keysIterator.next(); String tranlationKey = (String) TRANSLATION_KEYS.get(key); String defaultValue = (String) DEFAULT_TRANSLATION_VALUES.get(key); String displayValue = getContext().localize(tranlationKey, defaultValue); items.add(new OwDefaultComboItem(key.toString(), displayValue)); } OwComboModel model = new OwDefaultComboModel(false, false, "" + iSelectedKey, items); OwComboboxRenderer renderer = ((OwMainAppContext) getContext()).createComboboxRenderer(model, strID_p, null, null, null); renderer.renderCombo(w_p);}
There are three methods to implement:
public void insertReadOnlyField(…)public void insertEditField(…)public Object updateField(…)
The first two are obvious for what they are used,
the last one is for extracting the value from HTTP request which was fired.