cancel
Showing results for 
Search instead for 
Did you mean: 

PopupManager.displayForm - edit task's properties

macok
Champ in-the-making
Champ in-the-making
I'm trying to display popup which enables user to edit some of a task's properties. I thought displayForm function would be suitable for this:
http://sharextras.org/jsdoc/share/community-4.0.d/symbols/Alfresco.util.PopupManager.html#.displayFo...

But according to forms developer guide (http://wiki.alfresco.com/wiki/Forms_Developer_Guide#Usage) only nodes are supported for now:
The properties the form UI component supports are listed and explained below.

itemKind: The "kind" of item the form is for, the only supported kind currently is "node".
itemId: The identifier of the item the form is for, this will be different for each "kind" of item, for "node" it will be a NodeRef.

Could you please give me some hints how to display popup that enables user to edit some of the task's properties?

Thanks in advance for the reply!
3 REPLIES 3

kaynezhang
World-Class Innovator
World-Class Innovator
Which version are you using ? alfresco now supports task-type。

macok
Champ in-the-making
Champ in-the-making
Thank you for the reply, my version is 4.1.4.

So what are the valid form properties to pass to the function?
I guess it's something like:
         params.itemKind  = 'task';
         params.itemId  = 'activiti$12345';

@EDIT
The configuration i posted above worked fine.
However, itemKind  = 'task' was just lucky guess so I would be glad for some source of information about supported itemKinds.

scouil
Star Contributor
Star Contributor
Hi,

The only doc I could find about this itemKind values is:
http://wiki.alfresco.com/wiki/Forms_Developer_Guide#Usage
<cite>itemKind: The "kind" of item the form is for, the only supported kind currently is "node".</site>

Looking into alfresco code however I could find:
- "task" :
In workflow-form.js
and here: https://forums.alfresco.com/forum/developer-discussions/alfresco-share-development/simpledialog-cann...
- "workflow" :
In start-workflow.js
- "type" :
In cloud-folder.js, toolbar.js, datalists.js
and here http://forums.alfresco.com/forum/developer-discussions/alfresco-share-development/using-forms-servic...
And of course, "node"

Not sure if there are others. I can't think of anything else whose properties are edited via the form generator anyway.

Regards,
Scouil
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.