Open varunmshetty opened 6 years ago
I think I did some work around SLK compatibility mode for the 1.8 release but I can't remember what it was. It's not something I've looked at in a while.
Thanks for your response Richard.
if (learnerAssignmentGuidId == Guid.Empty) { AssignmentProperties properties = slkStore.GetNewAssignmentDefaultProperties(SPContext.Current.Web, Location, OrganizationIndex, SlkRole.Learner, out packageWarnings);
AssignmentItemIdentifier assignmentId = slkStore.CreateAssignment(SPContext.Current.Web, Location, OrganizationIndex, SlkRole.Learner, properties);
learnerAssignmentGuidId = slkStore.GetCurrentUserLearnerAssignment(assignmentId);
//start attempt AttemptItemIdentifier attemptId = slkStore.StartAttemptOnLearnerAssignment(learnerAssignmentGuidId);
However, with v1.8.2, the GetNewAssignmentDefaultProperties() method is no longer available. CreateAssignment() doesn't take 5 arguments.
Do you have any suggestions as to how I can implement this function with the latest binaries?
I have managed to tweak the previous implementation in the following area:
Please let me know your thoughts.
Thanks, Varun
Have a look at AssignmentProperties.aspx.cs to see how it works now. At one point it's doing
AssignmentProperties = AssignmentProperties.CreateNewAssignmentObject(SlkStore, SPWeb, SlkRole.Instructor); AssignmentProperties.SetLocation(Location, OrgIndex, Request.QueryString["title"]);
Thanks for the pointer Richard! It worked. This is how my final implementation looks:
========================= AssignmentProperties properties1 = AssignmentProperties.CreateNewAssignmentObject(slkStore, SPContext.Current.Web, SlkRole.Learner); properties1.Title = ModuleTitle; properties1.SetLocation(Location1, OrganizationIndex, ModuleTitle);
AssignmentItemIdentifier assignmentId1 = slkStore.CreateAssignment(properties1); learnerAssignmentGuidId = slkStore.xGetCurrentUserLearnerAssignment(assignmentId1);
Still trying to figure out the original issue (need of compatibility view for IE11) as I am still forced to add my website to the compatible list for the modules to render. Any help on this would be greatly appreciated!
Hi,
I upgraded my environment to the latest SLK version 1.8.2 yesterday from 1.3.1. However, from my tests I find the IE compatibility mode is still causing me problems. I have to add my site to the compatibility list for the module to load on IE browsers. Is it just me? Am I doing something wrong? If anyone has any inputs, please let me know.
Thanks, Varun