Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 143529

D365 - Display method on FormDataSource - CoC

$
0
0

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;
}
}


Viewing all articles
Browse latest Browse all 143529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>