powered by CADENAS

Manual

Manual

1.7.5.19.5.  Block [PARTdataManager:CustomDockContent:0] - Create custom docks with a web-view via config

Create custom docks with a web-view via config. The web-view is designed to handle events from part-selection and table-selection.

The linking to Wikipedia serves as an example. You can just as well link to your shop or provide installation instructions, etc.

The linking to Wikipedia serves as an example. You can just as well link to your shop or provide installation instructions, etc.

Getting started:

  1. Open $CADENAS_SETUP/partsol.cfg.

  2. Search the block [PARTdataManager:CustomDockContent:0].

  3. Copy the entire block and increment the last number in the block's name to create additional docks.

  4. Read the comments of keys to adjust everything as desired.

Using the following example results in the above depiction, when searching for "screw" and clicking one of the first results.

WEBVIEW_SELECTION_CHANGED_URL=https://de.wikipedia.org/w/index.php?search=$NN.

Any CADENAS environment variables are possible as well ($CADENAS_LANGUAGE.) or $NORM_TITLE.=Norm title or $NORM_NUMBER.=Norm number or

$TABLE_RELPRJPATH..

More details can be found in the descriptions of the keys itself.

It is also possible to access the widget from script:

dim app
set app = CreateObject("partdatamanager.application")

dim view
set view = app.FindSectionContent("UniqueNameHere")
if IsObject(view) then
  view.loadUrl("https://www.google.de")
end if

[Note] Note

This functionality works directly via client computer, not via PARTapplicationServer.