Custom DB Provider ResolveDirectory Not Firing

2 posts, 0 answers
  1. Tim
    Tim avatar
    16 posts
    Member since:
    Jul 2012

    Posted 09 Apr 2013 Link to this post

    Hi All,

    I have modified the Custom DB Provider to read from a table with records of folders and files.
    Each record has a column with the full path versus the demo which has each folder separated.

    My modifications have not deviated to any great extent from the original demo.

    The problem I am encountering is that the ResolveDirectory is called only once following the initial call of ResolveRootDirectoryAsTree.

    All of the folders render and the ResolveRootDirectoryAsTree is called whenever a folder is first expanded.

    ResolveDirectory does not fire when folders are expanded and no files are shown.

    Each Folder is loaded into a Directory Item:

    name "mySubfolder
    fullpath "Root/myFolder/mySubfolder/"
    location "Root/myFolder/"
    tag String.Empty,
    permissions PathPermissions.Read
    File Items null for ResolveRootDirectoryAsTree, populated for ResolveDirectory
    Directory Items null for ResolveDirectory, populated for ResolveRootDirectoryAsTree

    Each File is loaded into a File Item:

    filename "myfile.jpg"
    extension ".jpg"
    size int64
    path "Root/myFolder/mySubfolder/myfile.jpg"
    filehandlerURL "..."
    tag String.Empty
    permissions PathPermissions.Read

    I can post a snippet if need be, but I was wondering if anyone has encountered this or if the above structure is incorrect before I do so.

    The downloaded Custom DB Provider works fine, only the modified copy has this issue.


  2. Tim
    Tim avatar
    16 posts
    Member since:
    Jul 2012

    Posted 09 Apr 2013 Link to this post

    Found the issue.  My paths were incorrect for the ViewPaths etc.  I had Physical instead of Virtual.
  3. DevCraft R3 2016 release webinar banner
Back to Top