I am developing a workflow which involves a chain of tasks. This chain is started atomatically on the creation of a specific list item. The workflow creates a new "readonly" list item in another list to hold all the information and creates a new task item to collect more info. This new task then updates the "readonly" list item with its new data and creates the next task in the chain.
我正在开发一个涉及一系列任务的工作流程。此链在创建特定列表项时自动启动。工作流在另一个列表中创建一个新的“只读”列表项以保存所有信息并创建一个新任务项以收集更多信息。然后,此新任务使用其新数据更新“只读”列表项,并在链中创建下一个任务。
The initial list item can have attachments. How can I transfer or otherwise link these attachments to the new readonly list item ?
初始列表项可以包含附件。如何将这些附件传输或以其他方式链接到新的只读列表项?
I only have sharepoint designer and cant implement this in code due to corporate IT restrictions. (or can I?)
由于公司的IT限制,我只有sharepoint设计师并且无法在代码中实现这一点。 (或者我可以吗?)
1 个解决方案
#1
0
Ok well I have a plan and nobody has even looked at this question yet.
好吧,我有一个计划,甚至还没有人看过这个问题。
I will edit the NewForm.aspx and include javascript to capture the fileupload fields in a PreSaveAction. Then call updateListItems Web Service with javascript to create items in an Attachments list. Creating these items triggers a workflow that concatentaes the attachment names together with the URL of the attachment directory for the original list. Then all I need to do is grab the Id from the original list item when its created and add that back into the concatenated links to finish them. Then each task in the chain can pull out the concatenated list of links back to the original attachments.
我将编辑NewForm.aspx并包含javascript以捕获PreSaveAction中的fileupload字段。然后使用javascript调用updateListItems Web Service以在“附件”列表中创建项目。创建这些项会触发一个工作流,该工作流将附件名称与原始列表的附件目录的URL连接在一起。然后,我需要做的就是在创建时从原始列表项中获取Id,并将其添加回连接链接以完成它们。然后链中的每个任务都可以将连接的链接列表拉回到原始附件。
easy
简单
Lets see how it goes! Anybody any other ideas?
让我们看看它是怎么回事!有人还有其他想法吗?
#1
0
Ok well I have a plan and nobody has even looked at this question yet.
好吧,我有一个计划,甚至还没有人看过这个问题。
I will edit the NewForm.aspx and include javascript to capture the fileupload fields in a PreSaveAction. Then call updateListItems Web Service with javascript to create items in an Attachments list. Creating these items triggers a workflow that concatentaes the attachment names together with the URL of the attachment directory for the original list. Then all I need to do is grab the Id from the original list item when its created and add that back into the concatenated links to finish them. Then each task in the chain can pull out the concatenated list of links back to the original attachments.
我将编辑NewForm.aspx并包含javascript以捕获PreSaveAction中的fileupload字段。然后使用javascript调用updateListItems Web Service以在“附件”列表中创建项目。创建这些项会触发一个工作流,该工作流将附件名称与原始列表的附件目录的URL连接在一起。然后,我需要做的就是在创建时从原始列表项中获取Id,并将其添加回连接链接以完成它们。然后链中的每个任务都可以将连接的链接列表拉回到原始附件。
easy
简单
Lets see how it goes! Anybody any other ideas?
让我们看看它是怎么回事!有人还有其他想法吗?