Primavera (MOSC)

MOSC Banner

Primavera p6 integration api connect Rate to Resource!

edited Oct 28, 2014 10:00AM in Primavera (MOSC) 2 commentsAnswered

Hi!

First question in here!

I have a resource which im going to add two resorucerates to.

But I'm confused about when I have acctually made a connection. And when to use a certian method in the Resoruce class,

Here's my code.

      Resource res = new Resource(_sessionHelper.getSession());

      res.setId(importResourcesData.getResourceID());

      res.setIsActive(true);

      res.setUseTimesheets(true);

      res.setUserObjectId(importResourcesData.getUser());

      res.setName(importResourcesData.getFirstName() + " " + importResourcesData.getLastName());

      res.setEmailAddress(importResourcesData.getEmailAdress());

       ObjectId resObjId =res.create();

      Resource created, that much I understand but now for two scenarios.

    

Scenario #1

      ResourceRate rate = new ResourceRate(_sessionHelper.getSession());

      rate.setMaxUnitsPerTime(UnitsPerTime.ZERO_UNITSPERTIME);

      Calendar cal = Calendar.getInstance();

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