customising announcement list in sharepoint 2010 - list

I am trying to add a customised announcement list to the main page of my SharePoint site on this list, there will be 7 columns on the list but the challenge i'm having now is how to only display 3 out of the 7 columns on the site and the other columns will only be displayed when user clicks on add new announcement or clicks on the list itself. Please can anyone give me an idea of how to achieve this.
E.g: Assuming i customised an announcement list to have column: management, operations, Assets, Finance,HR,QHSE and Technical and added it on my SharePoint page via web-part, How can i make it to only display 3 of the 7 columns like management, operations, Assets while other columns will only be seen whenever users click on the add new announcement or go directly to the list itself. Thanks

For displaying only 3 columns, create a view and set it in the webpart options.

When you create a new view of a SharePoint list, it essentially creates a new .aspx page with the view customized per your definition. This can be done for standard views easily from the SharePoint list's web interface. This is the suggestion from Le_Freddo and should work for creating custom views but not for creating custom edit pages.
For that I believe you need to use SharePoint Designer. Open the site in SharePoint Designer then locate the list you're working on under 'Lists' in the 'FolderList'. You'll see 4 pages, AllItems, DispForm, EditForm, and NewForm. Make a copy of the EditForm (before you modify it), then open the EditForm to make your changes to it. You can add or remove fields from the page. In this way you can customize the Edit form to show all fields or only a subset.
You can also use this method to customize the other views (removing columns you don't want users to see).
When you're done, you can direct your List to use the new pages or define which page to use for each operation (View-All, Display, Edit, Create New) by setting the List's properties (right click the list in the Folder View, select Properties, then the 'Supporting Files' tab will have links to the pages configured for these actions).
Good luck...

Related

Adding Hyperlink in subgrid

I want to add Hyperlink for each row in subgrid. What I am looking is I want to display a invoice number as a link. When user clicks on that it should open a external window. Already tried with Hyperlink field available Dynamics. But its comes with https://.. I don't want to show the URL inside the grid.
Regards
Saman
I'm assuming your using the Out of the Box sub grid on the Web Interface / UCI, in which there isn't an out of the box way to render a clickable external URL.
Is the invoice in CRM, if it is a record in CRM and it can be related to the subgrid record, adding the lookup field to the view will provide a clickable link.
Your other option would be using a custom UI to build your subgrid, like Kendo or building a PCF.
Though I don't see any existing PCFs in the gallery that do this (https://pcf.gallery/categories#grid) you could likely use one as a starting point.

How to create custom pages in Sitecore?

We need to create Custom Pages to manage products in Sitecore.
Product Management
List the existing products
Edit, Delete or add new product
The Product information will be stored in Sitecore content tree. How we can create forms in Sitecore to enable users to manage the products?
I think you are missing the point of having a CMS. To accomplish what you mentioned, all you need is a data template describing your product and create items in the content tree using that template. You should consider building custom Sitecore pages If you need a custom interface such as a maintenance screen for executing some custom task or trigger a job from within content editor.
If you require some custom management functionality, you may want to create a Custom Editor: Sitecore: adding new tabs to content editor

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

Excluding list items created by certain users from a list's view

I have a custom list created in Sharepoint 2007 and displayed by a content query web part.
I would like to
Show all items to general admin users except those items created by two users.
The two admin users need to see all items in the list.
The first requirement is easily done by adding a filter to the view on the created by field.
The second one is where I need help, is there a way to set the view of a list based on the user logged in to acheive the second requirement?
Or is this achievable another way?
Many Thanks,
Nav
If user has SPBasePermissions.ManageLists permissions, he will have permissions to view all items in the list.
If its not about permissions, but just which view which user sees by default, then it will involve some sort of coding :
Either you create webpart which will switch to desired view for desired user. (Involves coding, building, deploying)
Use content editor web part to switch with javascript - not that nice solution. (Because page would reload when you open it).
In the end I created two pages one called restricted and the other for all users configured the views on each page for each group of users. Then I restricted access to the 'restricted' page to the relevant users.
I used audiencing to display a link to the 'restricted' page to selected users