Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
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