Widget Library: Eventscript references cannot be used

Hallo

Unsere Projekte sind so aufgebaut, dass wir ein Subprojekt haben. Dieses Subprojekt heisst bei uns Framework und darin sind die grundlegenden Funktionen etc. implementiert. Dieses Subprojekt ist bei allen Projekten gleich.

Bis anhin haben wir Compound widgets mit XML Events und Actions erstellt. Da hat das referenzieren einer Widget Library aus dem Framework Subprojekt sehr gut funktioniert.

Neu habe ich ein Compound widget umgestellt und arbeite mit JavaScript (mappScript) ==> eventscript hinzugefügt. Sobald ich diese Widget Library als Referenz in mein Projekt verwende, kommt die Meldung: Eventscript references cannot be used.

Ich verwende mappView 6.6.0 und AS6.7.0

Frage: Geht das grundsätzlich nicht oder muss man da was spezielles beachten bei der Namensgebung oder Referenzierung?

Hi @Andreas_Koller I see R&D has fixed an issue on Eventscript refrence:

but not all…
Could you report the new issue to our Support in your area? and please update us when you have news.
Thanks
Ciao
Valerio

Hello Valerio

Here’s an first update:

On July 14, 2026, a support ticket CASE-90745 was created in Switzerland.

I’ve been waiting for an updated status ever since.

Best regards, Andreas

Thanks Andreas,
actually I see an update:

Problem description
When a mappView Compound Widget that contains an Eventscript is placed inside a Widget Library that is added to a project by reference, the project no longer compiles.
The build aborts with the error: Eventscript references cannot be used.

Root cause analysis

There is no relation between the compound widget and the eventsript file except the position at engineering time.
So the eventscript must be on the same position to be able to access widgets of the compound widget (intellisense).
This behavior (no references are allowed) will be documented in the help for mapp View 6.8

Ciao
Valerio

Hello,

An important update on this topic for the record.

Following further clarification with B&R 2nd Level Support and B&R R&D, the reported issue has now been officially recognized as a bug.

The fix is targeted for mappView 6.8.0.

Ciao,
Filipe