Solved

Assets library as webpart

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Pimping Sharepoint 2007 without Server-Side Code Part 1 One of my biggest frustrations with Sharepoint 2007 in the corporate world is that while good-intentioned managers lock down the more interesting capabilities of Sharepoint programming in…
Summary In SharePoint 2010 it is easy to create custom color themes to jazz up a site. Theme colors can also be created in PowerPoint 2010 with a few clicks. But how do the chosen colors actually look in the SharePoint site? The attached PowerPoint…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

815 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

6 Experts available now in Live!

Get 1:1 Help Now