An administrator may want to disable drilling on Row and Column header programmatically. This can be done using Strategy Web SDK.
Before customization:

After customization:

Follow these steps to achieve this customization:
public NoRowHeaderDrillReportCellDrill(Shortcut definition) {
super(definition);
// TODO Auto-generated constructor stub
}
@Override
protected ComposedContextMenuBuilder getComposedContextMenuBuilder(
TransformContext context) {
Object obj = null;
if((getCell(context) instanceof ReportGridCellRowTitle) || (getCell(context) instanceof ReportGridCellColTitle))
{
obj = new InvalidDrillContextMenuBuilder((com.Strategy.web.app.transforms.ReportGridDisplayCell.Context)context);
return ((ComposedContextMenuBuilder) (obj));
}
else
return ((ComposedContextMenuBuilder) (super.getComposedContextMenuBuilder(context)));
}
