spicysudhi
Programmer
hi
below is my code. I am trying to update a measure in the model with some different label. Actually, the measure lable needs to be different every month, so I thought of updating everymonth before cube building. The code returns no errors, but the cube generated is not having the new lable or model is not updated with the new label.
============
Dim objTransApp As CognosTransformer.Application
Dim objModel As CognosTransformer.Model
Dim objMeasure As New CognosTransformer.Measure
Set objTransApp = New CognosTransformer.Application
Set objModel = objTransApp.OpenModel("D:\test.pyi")
Set objMeasure = objModel.Measures("Qty")
objMeasure.Label = "Qty May-04"
objModel.Update
objModel.Save
objModel.Close
=====================
the requirement is something like the lable on the measure should be current month-name + some description (say Qty). In the above example, I am trying to update the measure "Qty" with label "Qty May-04" so that in cube it displays as "Qty May-04" and not as just Qty.
can anyone help me here...
thanks,
Sudhi
below is my code. I am trying to update a measure in the model with some different label. Actually, the measure lable needs to be different every month, so I thought of updating everymonth before cube building. The code returns no errors, but the cube generated is not having the new lable or model is not updated with the new label.
============
Dim objTransApp As CognosTransformer.Application
Dim objModel As CognosTransformer.Model
Dim objMeasure As New CognosTransformer.Measure
Set objTransApp = New CognosTransformer.Application
Set objModel = objTransApp.OpenModel("D:\test.pyi")
Set objMeasure = objModel.Measures("Qty")
objMeasure.Label = "Qty May-04"
objModel.Update
objModel.Save
objModel.Close
=====================
the requirement is something like the lable on the measure should be current month-name + some description (say Qty). In the above example, I am trying to update the measure "Qty" with label "Qty May-04" so that in cube it displays as "Qty May-04" and not as just Qty.
can anyone help me here...
thanks,
Sudhi