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.
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