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 | 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 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: How do I pass a macro to a CSS Phoebus screen at startup from the command line |
From: | "Pietryla, Tony via Tech-talk" <tech-talk at aps.anl.gov> |
To: | "Kasemir, Kay" <kasemirk at ornl.gov>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Mon, 7 Dec 2020 18:44:09 +0000 |
Kay, I found the issue. Not all the macros were being passed to the main display from the command line. I had to quote the entire string of macros on the command line. Tony On 12/7/20, 11:35 AM, "Kasemir, Kay" <kasemirk at ornl.gov> wrote: Hi: >I succeeded in passing macros on the command line, now I want to open a generic display from this top level display and selectively assign one of the macros. I am using
an action button to open the related display. I have tried assigning the generic macro to one of macros passed from the command line (GENERIC_MACRO = $(MACRO1)), in the related display dialog box, but the macro doesn’t expand. The new screen shows the value
of GENERIC_MACRO as $(MACRO1) rather than the value of $(MACRO1).
This works for me: In a display, define MACRO1=Value 1, MACRO2 = Value 2. Then add for example a label with text "You picked $(PICK)". I can now open that display from the command line with one of -resource file:/path/to/file?PICK=Something -resource file:/path/to/file?PICK=$(MACRO1) -resource file:/path/to/file?PICK=$(MACRO2)
In the last case, when I open the context menu on the display to open the display information dialog, then check the "Macros" tab, it contains: MACRO1 = Value 1 MACRO2 = Value 2 PICK = $(MACRO2) -Kay |