The JS code is only executed inside the browser. That means you only have access to what the browser has access. These are mostly APIs e.g. online or inside the intranet to retrieve data and show it to the user.
If you want to make changes, first copy the template file under /libs/pappserver/webapps/3dfindit-enterprise/plugins/plugin.js
to $SITESETUP/3df/plugins
and then change it. Each file existing there is a) accessible via webserver and b) overwrites a file possibly existing in the delivery state.
this.onExampleButtonClicked = function (transferObject) { // Retrieve data of currently selected table line: const tableData = await window.Psol.Services.Table.getTableVertical(transferObject); // Get data from table line: console.log(tableData); };
It writes the transfer object to the console. The transfer object contains information about the currently opened part for further processing:
If the Browser is integrated into a PDM system then it is also possible to access the PDM in most cases, but it depends on how it is integrated and is implemented different. See these issues for examples:
https://partconcept.cadenas.de/show_bug.cgi?id=131531