[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Assets library as webpart

Posted on 2011-03-15
4
Medium Priority
?
1,372 Views
Last Modified: 2012-05-11
Hi,

I have created assets library for video files in subsite A and wanted add that video files library in to subsite B as a webpart.

I tried to add using dataview webpart but I was unable to change data source in designer and got an error "The server returned a non specific error when trying to get data from data source" Check the format and content of your query and try again.If the problem persists,contact the server administrator."

I tried the following scripts as well.got neither results nor error.

1. http://blog.pathtosharepoint.com/2009/01/22/a-simple-method-to-display-a-list-in-another-site/

2) <script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"></script>

<script type="text/javascript">
    $(document).ready(function() {
        var soapEnv =
            "<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'> \
                <soapenv:Body> \
                     <GetListItems xmlns='http://schemas.microsoft.com/sharepoint/soap/'> \
                        <listName>Feedback</listName> \
                        <viewFields> \
                            <ViewFields> \
                               <FieldRef Name='Title' /> \
                           </ViewFields> \
                        </viewFields> \
                    </GetListItems> \
                </soapenv:Body> \
            </soapenv:Envelope>";

        $.ajax({
            url: "http://portal.iaai.com/_vti_bin/lists.asmx",
            type: "POST",
            dataType: "xml",
            data: soapEnv,
            complete: processResult,
            contentType: "text/xml; charset=\"utf-8\""
        });
    });

    function processResult(xData, status) {
        $(xData.responseXML).find("z\\:row").each(function() {
            var liHtml = "<li>" + $(this).attr("ows_Title") + "</li>";
            $("#tasksUL").append(liHtml);
        });
    }
</script>

<ul id="tasksUL"/>

Can anybody please let me know how to add webpart?

Any help would be appreciated.

Thank you,
0
Comment
Question by:aaedla
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 14

Expert Comment

by:GeorgeGergues
ID: 35138056
Use the XML  RSS as your communications

Intrasite can be tricky with sharepoint .


There are so many way but depending on the site hierarchy and security that can be challenging.


Here is the easy way.

Go to  your library  -> Settings - > Communication settings - > RSS Feed .

Set the columns you want on your RSS syndication .

On the Receiving end , place an RSS / XML webpart to show your feed.


PS: Also you can do the same with Content Query web part if you have the sharePoint Enterprise version.



Best of luck.
0
 

Author Comment

by:aaedla
ID: 35141792
George,

Thank you for your suggestion.

I tried but it didn't worked for me due to the security level we are using.

 
0
 

Accepted Solution

by:
aaedla earned 0 total points
ID: 35142287
I got the solution.It's very  simple.

1. Add list/library as a webpart on a page.

2. Open that  page in SharePoint Designer and and select design mode and then select the webpart.

3. Click Webpart on tool bar and then click To Site Gallery  to export webpart to site webpart gallery.

4. Now the webpart is available under Miscellaneous webparts category.

0
 

Author Closing Comment

by:aaedla
ID: 35174620
easy solution and I resolved my problem
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When installing SharePoint 2010 RTM I came across a strange error, I was getting timeouts during the installation. I searched the web and found the best solution to be found here (http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010genera…
I recently came across an issue with a MOSS 2007 deployment where access into some sub-sites were denied, even for the MOSS farm administrators. A bit of background to the setup of this MOSS farm; this was a three server setup, consisting of a fr…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question