How to Populate Sharepoint MOSS 2007 Reference Data? - sharepoint

I need to populate reference data in a number of custom lists across difference versions (DEV, TEST and LIVE) of the same MOSS 2007 installation. Can anyone point me towards a way of doing this? I am initially looking at using a script (PowerShell?) or tool to populate this data.
Thanks, MagicAndi.

There is the CodePlex project SharePoint 2007 Test Data Population Tool that can do this. I've only ever written my own tools to do this myself so can't vouch for it.
I haven't heard of any PowerShell scripts that can do it but they wouldn't be hard to write. Do a search for PowerShell and SharePoint and I'm sure you'll find numerous examples.

It depends on How you create the List. If you create the List through the SharePoint UI then you need to populate the details as per Alex comments or Custom Code / powershell script. In case if you have a Feature that creates the list follow this

Related

Deploy List Definitions, content types and site columns on Office365

I was wondering which is the best way to deploy our typical SharePoint artifacts such as list definitions, content types and site columns that we usually design in Visual Studio to a Office365 site collection.
I have been working on O365 for more than an year now and the only solution that I came up with is to create a sandboxed solution with no code and obviously deploy it to my site.
Unfortunately many clients nowadays don't even want to hear the word "sandboxed", so is there an alternative solution?
Thanks for the help!
The Office 365 Patterns and Practices has examples on how to do that:
https://github.com/OfficeDev/PnP
Mainly in https://github.com/OfficeDev/PnP/tree/master/Samples you will find all the items you are looking for.
https://github.com/OfficeDev/PnP/tree/master/Solutions/Provisioning.Framework.Cloud.Async contains a fully built solution with an xml based templating engine to fully provision sites/site collections.
Sandbox solutions are still very applicable, especially in O365 .CSOM with PowerShell is another viable alternative solution .This thread has discussed about this topic. Please refer to below article :
Programmatically creating Site Columns and Content Types using the App Model

Passing parameters in Web Parts

I am working with Sharepoint 2003. I want to pass data from one web part to other like select a drop down in one web part and the other gets updated. I am pretty new to SharePoint please suggest me any tutorials, links sample code to do that.
Thanks for help.
kind regards
vivek
This requirement is specified by creating connectable web parts. See this link:
http://msdn.microsoft.com/en-us/library/ms469765.aspx
Although it is for SharePoint 2010 and 2007, but concepts are same.
Madhur's link is good although you'll have to make sure you don't try to use the Asp.Net WebPart infrastructure to create your WebPart. That support was added in the 2007 cycle of the product.
You will want to extend Microsoft.SharePoint.WebPartPages.WebPart http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webpartpages.webpart(office.12).aspx

How do I show graphs and KPIs from an OLAP cube in Sharepoint?

I need to display content from an OLAP cube in Sharepoint. This could be done using PerformancePoint Server but unfortunately Microsoft has decided to drop support for that product some time ago. Their plan is to integrate some of the functionality directly into the next version of Sharepoint instead. The problem is that I can't wait that long and it would not be wise to base the solution on abondoned software.
How can I solve this, should I use Excel Services and/or how can I do this?
How would you solve it?
With regards
Marcus Lindholm
Reporting Services 2008 integrated with sharepoint
One resource that I have found useful is this - and yes i would use Excel Services
Excel Services step-by-step guides: white paper

How to create a ASP.NET association form for a SharePoint Workflow?

I'm reading Professional Microsoft SharePoint 2007 Workflow Programming.
This book provides some detailed info on how SharePoint works, but not the procedures to create workflow.
I wonder how to create a ASP.NET association form (instead of InfoPath form).
Thanks in advance!
You might want to have a look at http://www.codeplex.com/wss3workflow
This project provides some templates for creating an assoication form. Even if you don't continue to use them, they might help you learn how to create them.

Easiest way to extract SharePoint list data to a separate SQL Server table?

Edited:
What is the easiest way to scrape extract SharePoint list data to a separate SQL Server table? One condition: you're in a work environment where you don't control the SQL Server behind the SharePoint Server, so you can't just pull from the UserData table.
Is there there any utilities that you can use to schedule a nightly extract?
Is Microsoft planning any improvement here for "SharePoint 4"?
Update Jan 06, 2009:
http://connectionstrings.com/sharepoint
For servers where office is not installed you will need:
this download
There is a SSIS SharePoint task you can use to grab the data info a regular dataflow:
http://www.codeplex.com/SQLSrvIntegrationSrv
Scraping? As in screen scraping? Are you serious? ;)
2 Options
SharePoint Object Model - http://msdn.microsoft.com/en-us/library/ms441339.aspx
SharePoint Web Services - http://msdn.microsoft.com/en-us/library/ms479390.aspx
specifically the Lists web service
The web services is how Excel/Access communicate with SharePoint to integrate with its lists.
In fact a bit of Google foo gives these two results :-
Connecting SQL Reporting Services to a SharePoint List
Accessing SharePoint List Items with SQL Server 2005 Reporting Services
The 2 minute answer is to use Data Synchronisation Studio from Simego ( http://www.simego.com ) just point it at your List and database and it will sync all the changes.
There is an ADO.NET adapter for MOSS 2007/2010 and WSS 3.0/4.0 available which goes under the name Camelot .NET Connector for Microsoft SharePoint. It enables you to query lists in SharePoint through standard SQL language, using SharePoint as a data layer.
Besides from the connector, there will be a large number of open source tools and utilities available, such as webparts for exporting data to various formats (XML, MySQL, ..), Joomla plugins, synchronization services, etc.
See http://www.bendsoft.com for more details and to watch webcasts. BendSoft is currently looking for beta-testers and encourage all feedback from the community.
Example:
SELECT * FROM My Custom SharePoint List
INSERT INTO Calendar (EventDate,EndDate,Title,Location) VALUES ('2010-11-04 08:00:00','2010-11-04 10:00:00','Morning meeting with Leia','Starbucks')
DELETE FROM Corp Images WHERE Image Name = 'marketing.jpg'
I had written a full article about this with step by step screenshot procedures. It does not use any third party components only SQL BI Tools and Sharepoint. Have a look here
http://macaalay.com/2013/11/01/how-to-archive-sharepoint-list-items-to-sql-server/
As Ryan said I would also suggest using object model / web services to store data to separate SQL database. I think that the best approach is to write an event handler that will trigger on your least and copy the data user inserted/updated.
Regarding your query about "SharePoint 4", Bill Gates made some remarks at SharePoint Conference 2008. He suggests enriching SQL tables with SharePoint data, and goes on to mention several other potentially cool things. What exactly he means and whether it will help solve your problem in the future is hard to say until we start seeing betas of WSS4 / MOSS 14.
I would go with the simego software, but i dont have the money, maybe a 15 days trial is enough!
If you have MOSS installed, the Business Data Catalog can be setup from the Sharepoint Central Administration to automagically synchronize data for you. This is a very powerful product and is included with MOSS. I love it when a client has it enabled so I can take advantage of it.
But some don't and for myself, I've found that if they don't have BDC running and available, inevitably they don't give developers many rights to SQL Server so SSIS is generally out of the question (but maybe that's just me). No problem; for those I'll pull together a lightweight EXE that runs on a scheduled task that queries Lists.asmx and pushes changes to a SQL Server table. Fairly trivial stuff for a simple list where nothing is deleted. Get yourself Visual Studio 2008, CAML Builder, and prepare for a good time. The Lists.asmx results is a little funny in that a list's row's fields are each a single node with a lot of attributes, with no child nodes ... something like this off the top of my head ... just remember that when coding ...
<z:row ows_Id="1" ows_Field1="A1" ows_Field2="B1"/>
<z:row ows_Id="1" ows_Field1="A2" ows_Field2="B2"/>
Complications in code occur with copying lists where items are deleted, or where there is a parent/child relationship between SP lists. You'd think I'd have some code to send you, but I haven't bothered putting together something I could reuse.
I'm sure there's other ways of handling it, but the scheduled task EXE so far has been reliable for me for multiple apps for multiple years.
i wrote some code to achieve it, you can find it over here
extract data from moss 2007
Depending on the exact nature of the data you need to insert, it may be possible to just use the auto generated RSS feed to get the information you want, a process will need to read the rss and formulate a query.
Otherwise a consoleapp/service could use the object model to do the same thing, but with more control over field information.
I wish something like this was much easier to do. Something that didn't need SSIS and was boiled down to a console tool that reads a xml config file for source/target/map info.
http://blogs.officezealot.com/mtblog/archive/2008/06/03/importing-list-data-into-sql.aspx

Resources