Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Sub Main()
Dim objImpApp As Object
Dim objImpCat As Object
Dim strUserName As String
Set objImpApp = CreateObject("CognosImpromptu.Application")
objImpApp.OpenCatalog "K:\Catalogues\test.cat"
Set objImpCat = objImpApp.ActiveCatalog
count =objImpCat.ActiveUserClass.UserClasses.Count
Select case Count
case 0
MsgBox "No user classes apart from Creator"
goto skip
case else
For x = 1 to count
strUserName = strUserName + Chr(10) + objImpCat.ActiveUserClass.UserClasses(x).Name
Next x
MsgBox "The names of the users are: " & strUserName
skip:
Set objImpCat = Nothing
Set objImpApp = Nothing
end select
End Sub
For x = 1 to count
strUserName = strUserName + Chr(10) + objImpCat.ActiveUserClass.UserClasses(x).Name
Set objImpUser = objImpCat.ActiveUserClass.UserClasses(x)
index = objImpUser.UserClasses.Count
If index = 0 then goto jump
For y = 1 to index
strUserName = strUserName + chr(10) + chr(9) + "subuser:" + objImpUser.Userclasses(y).Name
Next y
jump:Next x