AnsweredAssumed Answered

Building Block - Issue with Course Creation

Question asked by mj0068591 on May 18, 2018
Latest reply on May 21, 2018 by as0045500

Hi,

I am trying to create Building Block to automatically create course based on the course id provided. I tried to use Course() function available in http://library.blackboard.com/ref/4679010d-34ca-4629-9285-f7da3b83f0ee/blackboard/data/course/Course.html
Code executes successfully but Course is not created in BB. Also, I have imported blackboard.data.course.Course package in my code. Code is in .jsp file and validated through Eclipse.

 

Code used to create course:-

<%@ page language="java" import="blackboard.base.*,
blackboard.persist.*,
blackboard.platform.*,
blackboard.data.course.Course" %>


<%@ taglib uri="/bbNG" prefix="bbNG" %>

<bbNG:learningSystemPage title="Training Account" ctxId="ctx" >

 

String CourseName = "DEV_MJ";
Course c2 = new Course();
c2.setCourseId(CourseName);
c2.setTitle(CourseName);
c2.setDescription(CourseName);

Am I missing anything?

Any input will be helpful.

 

Thanks.

Monica

Outcomes