Skip Ribbon Commands
Skip to main content

Documentum Resources

:

Code Samples: Copy collection to list

Documentum Resources
   public static IDfList dfList(Collection coll, int type)
   {
      try
      {
         IDfList list = getClientX().getList();
         list.setElementType(type);
         for (Iterator iter = coll.iterator(); iter.hasNext();)
         {
            list.append(iter.next());
         }

         return list;
      }
      catch (DfException e)
      {
         throw new RuntimeException(e);
      }
   }