cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Windchill extension for Thingworx, service Navigate, typeFilter parameter

Highlighted
Regular Member

Windchill extension for Thingworx, service Navigate, typeFilter parameter

Hello,

I'm facing an issue using the service Navigate, to retrieve only the items with a given softtype.

The service "Navigate" allows to use a "targetTypes" parameter, wich is an Infotable.

var params = {

    targetRoleName: undefined /* STRING */,

    otherSide: undefined /* BOOLEAN */,

    autoNavigate: undefined /* BOOLEAN */,

    configSpecType: undefined /* STRING */,

    baseUfid: undefined /* STRING */,

    associationTypeIdentifier: undefined /* STRING */,

    configSpecParams: undefined /* INFOTABLE */,

    targetTypes: undefined /* INFOTABLE */,

    dataShape: undefined /* DATASHAPENAME */

};

// result: INFOTABLE dataShape: "undefined"

var result = me.Navigate(params);

But I don't know what is the required field in the datashape of this infotable,

I have created a "typesFilter" infotable, to use it in the targetTypes parameter, with the following fields and values (without success):

var newEntry = new Object();

newEntry.value="WCTYPE|ext.thales.palma.part.PalmaDesignItem|ext.thales.softtype.Component"; // STRING

newEntry.type = "WCTYPE|ext.thales.palma.part.PalmaDesignItem|ext.thales.softtype.Component"; // STRING

newEntry.objectType = "WCTYPE|ext.thales.palma.part.PalmaDesignItem|ext.thales.softtype.Component"; // STRING

newEntry.itemType = "WCTYPE|ext.thales.palma.part.PalmaDesignItem|ext.thales.softtype.Component"; // STRING

newEntry.typeID = "WCTYPE|ext.thales.palma.part.PalmaDesignItem|ext.thales.softtype.Component"; // STRING

typesFilter.AddRow(newEntry);

Thank you very much for you help,

Best Regards,

Alexis

Tags (1)