Solved

Assets library as webpart

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

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…
The Scenario: Let’s say you have a quote worksheet in Excel that you use to work up sales figures and such for your clients. You utilize SharePoint to manage and keep track of these documents. You would like values from your worksheet to populate Sh…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

840 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