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:

How to set "Secondary Display" for LineItem by Blackboard API

rated by 0 users
Not Answered This post has 0 verified answers | 1 Reply | 1 Follower

Top 500 Contributor
1 Posts
Andrey Balan posted on 6 Jul 2012 1:51 PM

Hi guys,

I was able to set "Primary Display" of Lineitem by Blackboard API (as advised by http://forums.edugarage.com/forums/p/2802/8322.aspx):

OutcomeDefinitionDbPersister ocdPersister = (OutcomeDefinitionDbPersister)bbPm.getPersister(OutcomeDefinitionDbPersister.TYPE);
OutcomeDefinition ocd = lineitem.getOutcomeDefinition();
ocd.setCourseId(courseId);
ocd.setPosition(1);
OutcomeDefinitionScaleDbLoader ods2Loader = (OutcomeDefinitionScaleDbLoader)bbPm.getLoader(OutcomeDefinitionScaleDbLoader.TYPE);
OutcomeDefinitionScale ods = ods2Loader.loadByCourseIdAndTitle(courseId,OutcomeDefinitionScale.COMPLETE_INCOMPLETE);
ocd.setScale(ods);
ocdPersister.persist(ocd);


But if there is a way to programmatically set "Secondary Display" option for LineItem?
It should exist as long as you can manually set it and store in Grade Center. I just can't come up with the right idea of doing this.
I'm using Blackboard 9.1.

Thank you,
Andrey

All Replies

Top 50 Contributor
16 Posts

Andrey,

Can you please share the functioning code for setting the primary display and creating a new column in the grade center?

Thanks,

Jing

 

Page 1 of 1 (2 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.