Programatically Assign Assignments

Topics: Developer Forum
Jul 17, 2008 at 8:38 PM

I have Sharepoint forms authentication working with a self-registration component. Once students complete their registration they are automatically assigned to a "student" group with SLK_Learner privileges; everything is working fine. However; now I'd like to programmatically assign assignments to the students when they complete the registration process. I'm starting to study the SLK source code and database to get ideas. 

 

Any tips or  ideas to point me in the right direction would be greatly appreciated.

 

Rich




Coordinator
Aug 26, 2008 at 5:49 AM
Take a look at the SDK, there are a number of server side APIs that may be of help to you.  The latest SDK build was in the 1.2.0 release at http://www.codeplex.com/SLK/Release/ProjectReleases.aspx?ReleaseId=6072

You can also take a look at the source code under Services -> SLK Assignment Broker at: http://www.codeplex.com/SLK/SourceControl/DirectoryView.aspx?SourcePath=%24%2fSLK%2fServices%2fSLKAssignmentBroker&changeSetId=37874
This is an example of modifying an SLK Assignment using the new Linq data access APIs in .NET 3.5.  It doesn't do exactly what you're looking for, but it should be an interesting guideline to working with the SLK database records for assignments directly.