Change Report Builder's initial dialog folder

Last post 05-15-2008 3:02 AM by diod. 2 replies.

Sort Posts:

  • Change Report Builder's initial dialog folder

    05-06-2008, 8:14 AM
    • Loading...
    • diod
    • Joined on 11-22-2005, 9:49 AM
    • Sweden
    • Posts 17

    Hi,

    I am in need of a modification in Report Builder. What I would like is something like...

    Either hide the "Models" folder completely in Report Builder's Open/Save dialogs
    or
    Make sure that the initial selected folder in Report Builder's Dialogs is "My Reports"
    and NOT the "Models" folder which it is now.

    Is this possible? 

    Thanks.

  • Re: Change Report Builder's initial dialog folder

    05-11-2008, 11:00 PM
    Answer

    Hi,

     

    I’m not sure what you really mean. But it looks like you want to assign the different permissions based on different users, and hide the other folders or data models which is not for the current user, right?

     

    If so, I think you can assign different roles in your report server, and then, meantime, set the different security roles for each object. (folder, report, model and etc.)

     

    Thanks.

     

    Sincerely,
    Michael Jin.
    Microsoft Online Community Support

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
  • Re: Change Report Builder's initial dialog folder

    22 hours, 9 minutes ago
    • Loading...
    • diod
    • Joined on 11-22-2005, 9:49 AM
    • Sweden
    • Posts 17

     

     Hi,

    Thanks for your reply, I have partly been able to do what I want. Currently I have set only Browser permissions on
    the Models folder. This prevents the users to save any reports to that folder, instead they are forced to save them
    into their My Reports folder.

    I have one issue left though. Since I am assigning the Browser permission to the Models folder, and within the
    models folder I create one model for each user. This means that when I create a new model it will inherit the
    permissions from the Models folders.
    This means that everyone will be able to see each others Models, this I would like to prevent. Therefor my question
    is this. How can I stop my newly created model from inheriting roles/permission from the parent folder? Instead
    I want it to use only the permissions that I set specifically.

    Below is the code I use today to create my models:

    1    ' Example:
    2    ' rs -i ModelUpload.rss -s http://localhost/ReportServer -v path="/Path/To/Data/Source/Folder"  -v modelName="My Model"  -v modelSourceFile="C:\mymodel.smdl"
    3   
    4    Public Sub Main()
    5        rs.Credentials = System.Net.CredentialCache.DefaultCredentials
    6       
    7        If not path.StartsWith("/") Then
    8            path = "/" & path
    9        End If
    10  
    11       PublishModel(modelName, path, modelSourceFile)
    12   End Sub
    13  
    14   Public Sub
    PublishModel(ByVal modelFilePath as string, byval path as string, byval modelSourceFile as string)
    15       Dim definition As [Byte]() = Nothing
    16      
    17       Dim
    stream As FileStream = File.OpenRead(modelSourceFile)
    18       definition = New [Byte](stream.Length) {}
    19       stream.Read(definition, 0, CInt(stream.Length))
    20       stream.Close()
    21  
    22       rs.CreateModel(modelName, path, definition, Nothing)
    23   End Sub

    Cheers!

     

     
Page 1 of 1 (3 items)