I have looked in the example before but haven't looked in the correct section (i was looking in Macros ...)
De : Kasemir, Kay <kasemirk at ornl.gov> Envoyé : mercredi 2 novembre 2022 15:35:59 À : tech-talk at aps.anl.gov; GAGET Alexis Objet : Re: Phoebus and dynamic macros
>
I was ... using script.
As we've promised from the start, details of the script API are subject to change.Transitioning from BOY/Eclipse/SWT
to Display Builder/Plain JRE/JavaFX, i.e. a completely new implementation, does require adjustments to scripts, and script of course won't work at all in the web runtime that uses HTML/CSS/_javascript_.
From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of GAGET Alexis
via Tech-talk <tech-talk at aps.anl.gov> Sent: Wednesday, November 2, 2022 10:17 AM To: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov> Subject: [EXTERNAL] Phoebus and dynamic macros
Hello,
I’m trying to migrate to Phoebus for our new development and I’d like to be able to set Macro dynamically (for my hundreds of acquisition channel for example). I was
able to do that with CSS boy using script.
Caused by: java.lang.Exception: Need Macros, got {CHANNEL=2}
at org.csstudio.display.builder.model.properties.MacrosWidgetProperty.setValueFromObject(MacrosWidgetProperty.java:53)
[..]
CHANNEL=2 because my PV loc://macroValue is set to 2.
seems to come from here but it's not really understandable for me