0 Replies Latest reply on Dec 6, 2017 4:56 PM by kfuerte-2 RSS
    kfuerte-2 Newbie

    Accesing Windchill folder contents

    Hi everyone,

     

    We're attempting to create a simple applet in Thingworx that accesses our windchill repo. So far we've been able to create queries that can fetch our available container and folder types. However, we are unable to access the objects (ei. parts, process plans, documents) contained within the folders by using a conventional query.

     

    The Windchill extension query service takes:

     

    var params = {

    containerUfid:   /* STRING    OR:wt.pdmlink.PDMLinkProduct:2559991*/,

    criteria:  /* STRING */,

    type:  /* STRING */,

    dataShape: /* DATASHAPENAME */

    };

     

    After using our subfolder obid in our queries, we got the following error:

     

    Wrapped com.ptc.jws.service.com.ptc.windchill.ws.Exception_Exception: com.infoengine.util.IEException: java.lang.ClassCastException: wt.folder.SubFolder cannot be cast to wt.inf.container.WTContainer Nested exception is: java.lang.ClassCastException: wt.folder.SubFolder cannot be cast to wt.inf.container.WTContainer; nested exception is: wt.util.WTException: java.lang.ClassCastException: wt.folder.SubFolder cannot be cast to wt.inf.container.WTContainer Nested exception is: java.lang.ClassCastException: wt.folder.SubFolder cannot be cast to wt.inf.container.WTContainer Cause: com.infoengine.util.IEException: java.lang.ClassCastException: wt.folder.SubFolder cannot be cast to wt.inf.container.WTContainer Nested exception is: java.lang.ClassCastException: wt.folder.SubFolder cannot be cast to wt.inf.container.WTContainer; nested exception is: wt.util.WTException: java.lang.ClassCastException: wt.folder.SubFolder cannot be cast to wt.inf.container.WTContainer Nested exception is: java.lang.ClassCastException: wt.folder.SubFolder cannot be cast to wt.inf.container.WTContainer

     

    Note: We've been using the container and folder "obid" properties to navigate and query folders.