Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

How do I create Dynamic List of Links to open modal dialogs based on List Library items.

$
0
0

Hi,

I am using SharePoint 2010.

I have created a Task Library with 2 content types Summary Task and Task.

Summary Task creates a folder and Tasks should be created within the Summary Task Folder.

Using SPD I am trying to create a simple page for our users, which displays the Summary Tasks and for each Summary Task there is a link/button to create a new Task within that Summary Task (rather than them having to remember to click into the folder before creating the task).

New Summary Tasks can be added at any time so this page needs to be dynamic

I have multiple line text column (LinkColumn) in Summary Task which I populate (via workflow) with the Link

<a class="ms-addnew" id="idHomePageNewItem" href="[URL]/NewForm.aspx?RootFolder= [URLOfFolder]&ContentTypeId=0x010800E1E8CB3286F69E48A9434E6AA78CA68C&IsDlg=1" onclick="javascript:NewItem2(event, &quot;[URL]/NewForm.aspx?RootFolder=[URLOfFolder]&ContentTypeId=0x010800E1E8CB3286F69E48A9434E6AA78CA68C&IsDlg=1&quot;);javascript:return false;" target="_self">Add new item</a>

Where [URL] and [URLOfFolder] are the library URL and the appropriate folder URL for each item.

On the page the LinkColumn displays as a link.  When I click on the link it opens the new item form and a Task is created within the correct Summary Task, BUT it is not in a modal dialog.  Also when I submit the screen just goes blank.

If I use this same Link in the HTML of a content editor on the same screen it works fine.

I am obviously doing something wrong.

How can I create a dynamic list of links to open modal forms based on the content of the Summary Tasks ?

Thank you for your time.


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>