Solved

Assets library as webpart

Posted on 2011-03-15
4
1,319 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
  • 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

If you create your solutions on SharePoint sooner or later you will come upon a request to set  permissions of the item depending on some of the item's meta-data - the author, people assigned as approvers, divisions, categories etc. The most natu…
SharePoint Designer 2010 has tools and commands to do everything that can be done with web parts in the browser, and then some – except uploading a web part straight into a page that is edited in SPD. So, can it be done? Scenario For a recent pr…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now