?
Solved

Assets library as webpart

Posted on 2011-03-15
4
Medium Priority
?
1,368 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

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

For SharePoint sites, particularly public-facing ones, there are times when adding JavaScript, Meta Tags, CSS Styles or other content to the page <head> section is more practical than modifying master pages.  For instance, you could add the jQuery l…
Microsoft SharePoint Foundation 2010 and Microsoft SharePoint Server 2010 do not offer the option to configure the location of the SharePoint diagnostic trace log files during installation.  This can, however, be configured through Central Administr…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

762 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