spicysudhi
Programmer
hi
Dim objTransApp As CognosTransformer.Application
Dim objModel As CognosTransformer.Model
Dim objCubeItem As CognosTransformer.Cube
Set objModel = objTransApp.OpenModel("test.pyi")
Set objCubeItem = objModel.Cubes.Item("myCube")
objCubeItem.CreateMDCFile
The above code works fine when the model has not inherited the access manager security. My model has got user classes inherited and the script is prompting the Common Logon screen for user name and password.
Is there anyway, I can set the username and password automatically using script?
I think this would be by assigning the objModel.signon; but I am not able to do this.
thanks in advnc.
regards,
Sudhi
Dim objTransApp As CognosTransformer.Application
Dim objModel As CognosTransformer.Model
Dim objCubeItem As CognosTransformer.Cube
Set objModel = objTransApp.OpenModel("test.pyi")
Set objCubeItem = objModel.Cubes.Item("myCube")
objCubeItem.CreateMDCFile
The above code works fine when the model has not inherited the access manager security. My model has got user classes inherited and the script is prompting the Common Logon screen for user name and password.
Is there anyway, I can set the username and password automatically using script?
I think this would be by assigning the objModel.signon; but I am not able to do this.
thanks in advnc.
regards,
Sudhi