This project has moved and is read-only. For the latest updates, please go here.

Get Assignment Result for Learner Programatically

Topics: Developer Forum, User Forum
Dec 11, 2012 at 7:54 AM

I have create Custom web part to view learners modules and if Lerner has done it we are generating Certificate for them. 

I could create SlkStore web part and get User ID Name and check whether User is a Learner or instructor. 

public Microsoft.SharePointLearningKit.SlkStore SlkStore       




if (slkStore == null)                   

slkStore = SlkStore.GetStore(SPWeb);               

return slkStore;           




 UserDetail.Text = "Current User Name :  " + SlkStore.CurrentUserName + "
Current User Key : " + SlkStore.CurrentUserKey.ToString() + "
LearningStore User Key : " + lst.UserKey + "
ConnectionString: " + lst.ConnectionString;                    this.Controls.Add(UserDetail);

where you get Current User records with User Key

Current User Name : Nir####i P##
Current User Key : S-1-5-21-1315388863-2247631891-3124773430-9406
LearningStore User Key : S-1-5-21-1315388863-2247631891-3124773430-9406

as Like this I need to get All Assignment which Assign to that Learner and get results 

when i try to Create LearnerAssignmentProperties or AssignmentProperties or even SlkUser object it get error.


Jan 4, 2013 at 7:28 AM

You'll need to either use the methods in SlkStore to get assignments, or look at the assignment list web part to see how it uses the query framework.


SLK Coordinator