Experimental Physics and Industrial Control System
Hello to Everyone,
i'm trying to develop a control panel in CSS and i want to change
dynamically the macro substitution in a linking container widget through
a dedicated script. Reading the help documentation, i saw the Macros
Property can be changed with this code:
Javascript:
importPackage(Packages.org.csstudio.opibuilder.scriptUtil);
var macroInput = DataUtil.createMacrosInput(true);
macroInput.put("pv", PVUtil.getString(pvs[0]));
widget.setPropertyValue("macros", macroInput);
In runtime, i expect the container widget has a new macro called "pv"
with value coming from my variable set as pvs[0] (in my case i'm using a
stringout record), but the only macro available is an element called
"LCID" that changes at every page refresh (for example LCID=LCID_872 of
LCID=LCID_880).
Is there any configuration i'm forgetting to provide the correct set of
macro to my widget?
Thanks in advance for any help!
- Maurizio M.
- Navigate by Date:
- Prev:
asyn R4-26 available Mark Rivers
- Next:
Possible to set EOS in asyn to match a character plus whatever character follows? Andrew Gomella
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
<2015>
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
asyn R4-26 available Mark Rivers
- Next:
Possible to set EOS in asyn to match a character plus whatever character follows? Andrew Gomella
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
<2015>
2016
2017
2018
2019
2020
2021
2022
2023
2024