Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 01/16/2006 7:57 PM by  Mike Willard
Moving folders - Hierarchical View
 3 Replies
Sort:
You are not authorized to post a reply.
Author Messages
Mike Willard
New Member
New Member
Posts:44


--
01/16/2006 3:23 PM

    We have a few folders (collections) in the Library that need to be moved to another folder.  When selecting the folder that we want to move to, all the folders are displayed in a "flat" view.  Most of our folders have 2 subfolders (BH and BTC) to distinguish between two divisions of our company.  When seeing these folders in the flat view, it impossible to tell which BH or BTC you're moving to. 

    I've gone into the DB and changed these manually, but I'd like for our users to be able to do it themselves.  Help?

    Mike

    Peter Donker
    Veteran Member
    Veteran Member
    Posts:4536


    --
    01/16/2006 5:19 PM
    A fully structured dropdown list with collections is on the 'DMX wish list'. I can't give a deadline for implementation as it is not something trivial to implement. I will add the following for the next update: For every collection in the list it will show in brackets the parent collection behind it.

    Peter
    Peter Donker
    Veteran Member
    Veteran Member
    Posts:4536


    --
    01/16/2006 5:33 PM

    Here is the fix. Run the following under Host > SQL as script provided you are running DMX 03.02.x

    IF EXISTS (select * from dbo.sysobjects where id = object_id(N'{databaseOwner}{objectQualifier}DMX_GetAllPortalCollections') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
    DROP PROCEDURE {databaseOwner}{objectQualifier}DMX_GetAllPortalCollections
    GO

    CREATE PROCEDURE {databaseOwner}{objectQualifier}DMX_GetAllPortalCollections
      @PortalId Int
    AS

    SELECT {objectQualifier}DMX_Entries.Description+' ('+ISNULL(p.Description, 'Root')+')' AS Description, {objectQualifier}DMX_Entries.EntryId, {objectQualifier}DMX_Entries.CollectionId, {objectQualifier}DMX_Entries.EditRoles, {objectQualifier}DMX_Entries.ViewRoles, {objectQualifier}DMX_Extensions.ResourceFile, {objectQualifier}DMX_Extensions.Icon16
    FROM ({objectQualifier}DMX_Entries LEFT JOIN {objectQualifier}DMX_Extensions ON {objectQualifier}DMX_Entries.EntryType={objectQualifier}DMX_Extensions.ExtensionKey) LEFT JOIN {objectQualifier}DMX_Entries AS p ON {objectQualifier}DMX_Entries.CollectionId=p.EntryId
    WHERE (((LEFT({objectQualifier}DMX_Entries.EntryType,10)='Collection') Or (LEFT({objectQualifier}DMX_Entries.EntryType,17)='Custom.Collection')) And (({objectQualifier}DMX_Entries.Deleted)=0) And (({objectQualifier}DMX_Entries.PortalId)=@PortalId)
    And (({objectQualifier}DMX_Extensions.PortalId)=@PortalId))
    ORDER BY {objectQualifier}DMX_Entries.Description

    GO

    Mike Willard
    New Member
    New Member
    Posts:44


    --
    01/16/2006 7:57 PM

    It worked beautifully, Peter.  Thanks for your quick response!

     

    Mike

    You are not authorized to post a reply.