Primavera (MOSC)

MOSC Banner

Running sample API codes

edited Jan 28, 2016 7:01AM in Primavera (MOSC) 3 commentsAnswered

I tried to run one of API sample codes provided in support site to retrieve calendars information assigned to a project, I created a session to login and try to get info usiing below codes:

BOIterator <Project> projIter = gom.loadProjects(Project.getAllFields(), "Id = 'Edison High'", null);

if (projIter.hasNext())

{

    //Load all Project Calendars

   BOIterator <Calendar> projCalIter = p.loadProjectCalendars(Calendar.getAllFields(), null, null);

    System.out.println("Project Calendars ");

    System.out.println("-------------------------");

    while (projCalIter.hasNext())

    {

        Calendar projCal = projCalIter.next();

        System.out.println("Calendar: " + projCal.getName());

                   

        //Load Holiday Exception Dates

        System.out.println("Holiday Exception Dates ");

        System.out.println("-------------------------");

        List <Date> holidayExceptions;;

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center