Showing Announcement list in Custom Page in Sharepoint site - list

I am having a sharepoint site and i had added a custom aspx page and I want to show the announcement list items in that page. How to show the list items in a custom page ?. Helpful links and sample code would be helpful?

Access Your custom page from the browser and Edit the page by clicking Site action > Edit Page. If you have a Web part Zone available in your page then
Click 'Add a webpart'(for webpart page) > Click 'Insert' tab in ribbon > Select 'WebPart' > List and libraries > select the announcement list and click OK.
This will add a web part of announcement list in your page.
But if you dont have the webpart zone then i am afraid it is not possible directly,
But you can use client object model for this visit this
http://msdn.microsoft.com/en-us/library/ee539350%28v=office.14%29.aspx

I found a solution for my requirement. I had used XsltListViewWebPart for displaying announcement list in custom application page. I would like to thank everyone who offered me their advice thanks a lot.
The following link did it for me
http://suryapulipati.blogspot.in/2011/08/sharepoint-2010-show-add-new-item-or.html

Related

Master page showing unexpectedly

When I am clicking on the upload button in document web, inside that the section master page is showing (which should not).
How to remove this either in SharePoint designer or SharePoint 2013 itself?
Also, the site settings is showing up on home page (but it should show in a separate new page).
Screeshots:
It looks like you have a custom master page that is missing much of the core structure of a master page. In particular, an out of the box master page responds to a Query String value of "?IsDlg=1" to control if master page content is displayed in SharePoint dialog boxes along with primary page content.
To see this, go to a site without this custom master page and visit a list or library page. Edit the URL and, if there's no Query String (i.e. no "?" in the URL, add "?IsDlg=1" (no quotes), or if there is a query string add "&IsDlg=1" (no quotes). Notice the difference in the displayed content.
Something is missing from your custom master page. Either the lack of standard CSS classes or missing JavaScript references.
Can you reset the master page back to one of the out of the box master pages and check to see if everything is now working.
As the the Site Settings, someone must of added an IFRAME or a Page Viewer web part to the home page and set the URL to the Site Settings page.

Change View of Sharepoint XSLT List View webpart in javascript

I have created a Sharepoint hosted app for Office 365. It has a page file "default.aspx". I have added an XSLTListViewWebpart on that page, referring a custom List I created within my APP project. I have a requirement that on a button click event, I need to change the View of the List displayed in the XSLTListViewWebpart. Since there is no server code within the APP, would this be possible in javascript? Or would it be possible to somehow change the query that the webpart uses?
You can try to use Javascript object model to achieve this. Please see this article.

Why is Insert > Related List not working in sharepoint 2013?

Hi I have got a few lists with Lookup fields from Source lists. I wish to have a Related lists (Webpart connections from 2007 days) where I select item from master and then child records are displayed. Although I have followed the instructions on the below article, the "relationship" bit is not working. The Related records from the child lists are not filtering rather showing all records from the child table.
http://office.microsoft.com/en-us/sharepoint-help/create-list-relationships-by-using-unique-and-lookup-columns-HA102771358.aspx
I also encountered this issue, and the solution is pretty simple, but not very obvious. When creating a new page, you MUST be sure that you create a page of type Web Part Page. When you use the default "Add a Page" option from the site settings menu, the default page type is a Wiki page, not a web part page. Even though you can add web parts to a Wiki page, the Wiki page does not include the functionality for implementing web part connections.
Once I created a page using one of the Web Part Page types, I was able to use web part connections.
have you tried this:
Browse to the affected page, and then open the page in edit mode.
Click the drop-down arrow in the upper-right corner of the Web Part for the tasks list, and then click Edit Web Part.
On the right side of the page in the Web Part properties controls, click the plus sign (+) on the Miscellaneous section, click to select the Server Render checkbox, and then click OK.
Save the changes to the page.
source: http://support.microsoft.com/kb/2924913

Google code Wiki Homepage

How can I be able to set a wiki page as a homepage (make it appear every time I click on the "Wiki" tab) in my google code project.
Thanks in advance
On your GoogleCode site, click "Administer", then "Tabs". In the form that appears, you can customize which wiki pages are to be used for the "Downloads"/"Wiki"/"Issues"/"Source" tabs.

How to add Announcement list/webpart to Publishing Portal

I have a Publishing Portal site and I need to add some announcements to some of the pages. I've read an article which says that i have to create an announcement list to be able add an announcement web part but i can't seem to find any resources on how i can add an announcement list.
Any help will be greatly appreciated.
TIA!
Your problem is that you have not activated the relevant feature on the site settings page. You need to go to the site collection site settings page. Then select Site Actions - manage site features
Then activate the feature called Team Collaboration lists. You will now be able to create an announcement list
From the home page of your site (or from any page really) you should see a "View All Site Content" link on the top of the navigation menu.
View All Site Content http://friendfeed.s3.amazonaws.com/86fed07f0809beefaeeaee0013ee2b952079bc09
Click on that link and it will show you a dashboard listing all of the SharePoint lists that have been provisioned for the current site. Click on the Create button to create a new SharePoint list.
Create new SharePoint List http://friendfeed.s3.amazonaws.com/6c0b244801826f8b3ee01811211b88668ba8f713
From there you will see the option to create an Announcments list (under the Communications header). Complete the wizard to complete the list.
Once the list is created you can select Edit Page from the Site Actions menu on any SharePoint page in the site and then select a "Add a Web Part" on the web part zone you want to put your Announcements web part into. You should now see a web part listed with the same name as your Announcements list that you just created.
Select that web part to add it to the page and display.
Hope that helps. If this isn't the answer to your problem leave a comment or update your question with clarification and I will try to help.
Giving you direct instructions on how to create the list would most likely leave you more lost than ever. If this is a publishing portal, there's a lot more to learn beyond just creating a list. Content must be approved, and is versioned. I'd strongy advise you not to start poking around in there as you run a large risk of messing up the portal. Don't get stressed by people demanding you perform such things without having received any training. Grab yourself a coffee, flip your boss the finger and watch some pertinant webcasts on http://office.microsoft.com/en-us/sharepointserver/FX101211721033.aspx
Hope this helps,
Oisin