I have a form with a datasource that contains a field (Total) which has a display method on it. This datasource is linked to another form and the display method makes use of this other datasource. I need to extend the display method on an extension class...any options...
display NonNegativeTotal getTotalCostPrice(ProjHierarchyTemp _record)
{
// If this record is an estimate, just return the field value
ProjWBSTaskEstimateUnionView taskEst = _record.joinChild();
if (taskEst.SourceTableId == tableNum(PSAActivityEstimates))
{
PSAActivityEstimates estimateRecord = TaskEstimateUnion_ds.joinedPSAActivityEstimates(taskEst);
//NEED TO MODIFY RESULT HERE
return estimateRecord.TotalCostPrice;
}
else if (taskEst.SourceTableId == tableNum(ProjPlanVersion))
{
ProjPlanVersion taskRecord = TaskEstimateUnion_ds.joinedProjPlanVersion(taskEst);
container totals = ProjWorkBreakdownStructureV2FormHelper::getTotalPrices(taskRecord, totalPricesCache);
return conPeek(totals, 1);
}
else
{
return 0;
}
}