Is there any way to apply price adder with Agile SDK?
Trying below code but getting error: Cell [PriceDetails.Material Price Adder 1] is read only.
Same user can apply price adder in web client
Map responsePriceMap = new HashMap();
responsePriceMap.put(ProjectConstants.ATT_PRICEDETAILS_MATERIAL_PRICE_ADDER_1, new Money(new Double(10), "USD"));
IProject project = (IProject) session.getObject(IProject.OBJECT_TYPE, "PRJ00009");
ITable analysisTable = project.getTable(ProjectConstants.TABLE_ANALYSIS);
Iterator analysisItr = analysisTable.iterator();
while(analysisItr.hasNext())
{
IRow analysisRow = (IRow) analysisItr.next();
ITable pricing_table =
(ITable)analysisRow.getValue(ProjectConstants.ATT_ANALYSIS_PRICING);
Iterator pricingItr = pricing_table.iterator();
while(pricingItr.hasNext())
{
IRow pricingRow = (IRow) pricingItr.next();
pricingRow.setValues(responsePriceMap);
}
}