Updating dimension only selected values : AX 2012 ProjFundingSource

Hi guys,

Is there a way to update the dimension of only one value .

for eg.

ProjTable.defaultdimension = CustTable.defaultdimension;

The above code gets in all the dimension values in the projTable eg.costcenter,department.

But I want to update only the costcenter and not the department for projTable .

I need to keep department value in projtable as blank bu

I tried searching for solutions online but those does not work

Thanks,

Vikas Mehta