This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how I can retrieve the Virtual folder structure in a view using MFiles API ?

Former Member
Former Member
I'm making a web application to access my vault, with my Windows Mobile device (because default MFILES web access isn't supported in windows mobile browser).

But I doesn't manage to retrieve my virtual folder structure in my views, now I just have all the object of my view but no virtual folder.

Can you explain to me how I can do this ?

Thanks.
  • Here is a quick example to retrieve the virtual folders of the first level in view 136 (i.e. Documents by Class in Sample Vault).

    Dim oView As MFilesAPI.View
    Set oView = Vault.ViewOperations.GetView(134)
    Dim oExpressionEx As MFilesAPI.ExpressionEx
    Set oExpressionEx = oView.Levels.Item(1)
    Dim oScs As MFilesAPI.SearchConditions
    Set oScs = oView.Levels.Item(1).Conditions

    Dim oFolderNameListing As MFilesAPI.FolderNameListing
    Set oFolderNameListing = Vault.ViewOperations.GetFolderNameListing(oExpressionEx, oScs, MFSearchFlagNone, False)
  • Former Member
    Former Member
    This work great for me thanks!!