Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: SPCascadeDropdown page refresh again...

$
0
0

Thanks for the reply.

I am using SP 2010 Foundation with SPServices 0.7.1a.

I have a custom list and a document library. The document library is a lookup column from the custom list and the contents of the document library are displayed based on the selection from a dropdown which is controlled using SPCascadeDropdown. I would like the ability to add documents to the document library without having to leave the NewForm.aspx form of the custom list. I can do this by adding the below code to the NewForm.aspx page which launches the modal dialog box for the document library.

<input name="Button1" type="button" value="add document" onclick="javascript:NewItem2(event, &quot;http://server/app/_layouts/listform.aspx?PageType=8&amp;ListId=D6087103-3C70-4113-A91A-61CF4F380964&amp;RootFolder=&quot;);
javascript:return false;" href="/_layouts/listform.aspx?PageType=8&amp;ListId=D6087103-3C70-4113-A91A-61CF4F380964&amp;RootFolder=" target="_self"/>

This works fine and the document is added but, when the document library modal closes and the custom list newform.aspx is displayed some of the data has been removed from the dropdowns which are controlled by the SPCascadeDropdown function. All other text boxes remain populated and I can see the newly created document.

Hope this make sense! I will take some screenshots and embed so you can see the issue.

EDIT:  I think my issue is similar to this - http://spservices.codeplex.com/discussions/343663 but the majority of my data remins intact.



Viewing all articles
Browse latest Browse all 6517

Trending Articles



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