none
Is it possible to add a cost resource assignment using the PSI? RRS feed

  • Question

  • I'm having trouble adding a cost resource assignment using the psi...it works fine for other resources, but as soon as I try to assign a cost resource it fails. 

    var assn = insertDataSet.Assignment.NewAssignmentRow( );
     
    assn.PROJ_UID       = projectGuid;
    assn.ASSN_UID       = Guid.NewGuid();
    assn.RES_UID        = new Guid(matchingResource["RES_UID"].ToString( ));
    assn.TASK_UID       = new Guid(activityRow["TASK_UID"].ToString( ));
    //assn.ASSN_UNITS     = ra.BudgetedUnits;
     
    //if( Convert.ToInt32( matchingResource["RES_TYPE"].ToString( ) ) == 25 )
    //    assn.ASSN_COST = resource.Rate;
                                            
    insertDataSet.Assignment.AddAssignmentRow(assn);

    Friday, November 9, 2012 9:40 PM

Answers