EduGarage Logo
Search:
Site Map
Upcoming Events:
Please e-mail us if you would like your webinar, conference, or get-together to be featured in this space.
Stay Informed:

Using blackboard.platform.gradebook2

rated by 0 users
Answered (Not Verified) This post has 0 verified answers | 4 Replies | 4 Followers

Top 500 Contributor
1 Posts
Michael Wheeler posted on 8 Jun 2010 1:07 PM

Can anyone point me to documentation or sample code (or anything) related to the blackboard.platform.gradebook2 API? I ran across the sample code at http://www.edugarage.com/display/BBDN/Gradebook+Extraction+Example, but I haven't been able to find much else.

It seems like it offers a more robust set of functionality than blackboard.data.gradebook, which could be helpful for some building blocks I'm working on. Really any info would be helpful.

Thanks.

All Replies

Top 150 Contributor
7 Posts

Did you find an answer for this.

I am in the same boat

Top 200 Contributor
Female
4 Posts

I think you can consider to use LineItem for grade center.I have written the program like grade center before.

Top 10 Contributor
Male
148 Posts

Your best bet is to use the webservice classes (yes, even from within a building block). Start off with

GradebookWS gws = GradebookWSFactory.getGradebookWSForTool();

and go from there. Personally, I think it's back to the middle ages with all those String and integer-constants arguments, but if you like PHP then you'll feel right at home I guess ;-)

Should you end up in permission hell (you definitely will if you use getGradebookWS() instead of getGradebookWSForTool()), try adding the following to your bb-manifest (courtesy of George Kroner):

<permission type="persist" name="Attempt" actions="load,persist,delete" />
      <permission type="persist" name="Outcome" actions="load,persist,delete" />
      <permission type="persist" name="OutcomeDefinition" actions="load,persist,delete" />
      <permission type="persist" name="outcomedefinitioncategory" actions="load,persist,delete" />
      <permission type="persist" name="OutcomeDefinitionScale" actions="create,delete,load,persist" />
      <permission type="persist" name="OutcomeDefinitionScaleSymbol" actions="create,delete,load,persist" />

    <required-webservices>
      <tool-login>
        <service name="Gradebook.WS">
          <operation>getAttempts</operation>
          <operation>getGradebookColumns</operation>
          <operation>getGradebookTypes</operation>
          <operation>getGrades</operation>
          <operation>saveAttempts</operation>
          <operation>saveColumns</operation>
          <operation>saveGradebookTypes</operation>
          <operation>saveGrades</operation>
        </service>
      </tool-login>
    </required-webservices>

While the gradecenter webservice API has public javadoc and is therefore officially supported, its documentation is rather terse.The API is also not complete; most notably, attempt files are not supported.

Top 500 Contributor
1 Posts

Peter,

I'm trying using webservice API from within a building block but whenI call getGradebookWSForTool() I keep getting java.lang.RuntimeException: Could not locate current Building Block context.

Do you have an idea why and I can overcome this?

Roy

Page 1 of 1 (5 items) | RSS
© 2006-2009 Blackboard Inc. All Rights Reserved. Blackboard, the Blackboard logo, and EduGarage are trademarks
or registered trademarks of Blackboard Inc. in the United States and/or other countries.