cancel
Showing results for 
Search instead for 
Did you mean: 

Problems to upload information to the form

klebervz_
Confirmed Champ
Confirmed Champ

Hi guys, I have two question:

1) I have an entity called Report and this Report can be related to one or more Missions existing in the database(another entity). On Report Creation Form, we want to create a list where the user can select more than one Mission related.

But I don't know which widget we can use there. We must apply some query in that Mission list. I know how create a list of "vocabulary", but we don't know how create a list for an entity, and how apply a query in this entity. Could someone help me?

2) I have a Workflow for Report and this workflow has 2 Tasks (nodes). The Task1 was forwarded to User1. This task has a field called "COMMENTS". I've set this value into a Workflow variable called "responsible_comments". User1 fills this field, responds to User2 and this Task is finished. The Task2 is started and I want to retrieve the last value of the "responsible_comments" into a Task2 form. I've built the Task2 Form using the Workflow variable "responsible_comments", but this value is empty. How can I show this value into Task2 Form?

Follow the picture belowalt text

alt text

alt text

alt textalt text

13 REPLIES 13

manuek_
Star Contributor
Star Contributor

Hi,

klebervz_
Confirmed Champ
Confirmed Champ

Hello,

manuek_
Star Contributor
Star Contributor

Hi,

klebervz_
Confirmed Champ
Confirmed Champ

Hi,

manuek_
Star Contributor
Star Contributor

In the first node, in Column 1, you have "Responsible comment", which looks like suspect.

klebervz_
Confirmed Champ
Confirmed Champ

I made the changes, and still appears empty.

manuek_
Star Contributor
Star Contributor

Sorry, I've no more idea.

manuek_
Star Contributor
Star Contributor

Hi,

Marwane_K_A_
Star Contributor
Star Contributor

1) What you're looking for is probably the "singleDocumentSuggestion" widget since Missions seem to be documents rather than static info from a vocabulary.

To make sure you can only choose mission documents, you'll have to set the "Document page provider name" to a custom "page provider". Those can only be contributed in XML right now (Advanced settings in Studio), here is some sample code:

<extension point="providers" target="org.nuxeo.ecm.platform.query.api.PageProviderService">
  <coreQueryPageProvider name="missionsProvider">
    <pattern>
      SELECT * FROM Mission WHERE ecm:currentLifeCycleState != 'deleted'
    </pattern>
  </coreQueryPageProvider>
</extension>

(more pageprovider examples at: http://explorer.nuxeo.org/nuxeo/site/distribution/Nuxeo%20Platform-5.8/viewExtensionPoint/org.nuxeo....

2) Why don't you assign the same workflow variable "responsible_comments" to both tasks? Unless I misunderstood something you used a node/task variable for Task1 while you could directly use "responsible_comments". Unless you overwrite "responsible_comments" between tasks, there's no reason its value could disappear.