Path of a document or folder

Good morning,

We have an interface in which we are using! DocumentAndFolderBrowserFieldColumns to paint a hierarchy of documents, the problem is that we are trying to obtain the path to display it as text in the following way,

if we have the following selected

we would have to obtain something like this:

"TST_Documentos_Texto_Con… / Prueba2/ Prueba1"

Has anyone had the same problem?

A greeting and thanks in advance.

  Discussion posts and replies are publicly visible

Parents Reply
  • +1
    Certified Lead Developer
    in reply to sandrap845

    For a more concrete example... the following is the definition of TEST_findParentRecursive() which will find all folder IDs up to the root knowledge center.  The rule calls itself whenever it detects a parent object is present.  The result is an array of map objects containing various data from lowest-level to highest.

    a!localVariables(
      local!parent: folder(ri!folderId, "parentFolderId"),
      local!hasParent: not(isnull(local!parent)),
    
      {
        a!map(
          folder: ri!folderId,
          folderId: tointeger(ri!folderId),
          isTopmostFolder: not(local!hasParent),
          parentFolder: tofolder(local!parent),
          parentFolderOd: local!parent
        ),
        if(
          local!hasParent,
          rule!TEST_findParentRecursive(
            folderId: local!parent
          ),
          {}
        )
      }
    )

Children