[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
Title: | DECmcc user notes file. Does not replace IPMT. |
Notice: | Use IPMT for problems. Newsletter location in note 6187 |
Moderator: | TAEC::BEROUD |
|
Created: | Mon Aug 21 1989 |
Last Modified: | Wed Jun 04 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 6497 |
Total number of notes: | 27359 |
2442.0. "QUESTION - MSL - Variable display (DEPENDS ON clause)" by MANENG::SHEA (Shea ... as in stadium) Thu Feb 27 1992 07:04
Is there any way to suppress display of a particular attribute by using MSL.
What I want to do is NOT display something depending on the value of another
thing. I have tried the DEPENDS ON clause when defining an attribute, but this
does not help me (things still get displayed even if the DEPENDS ON clause
evaluates to FALSE). This is a simplistic (and unworking) example, but shows
what I want to be able to do ... in this example, the value of Stat1 would be
printed by the PM regardless of what the value of Char1 is.
TYPE Thing = 99999 (Unknown = 0, Val1 = 1, Val2 = 2);
GLOBAL ENTITY FRED = 171 : IDENTIFIER = (IdX), SYMBOL = CLASS_FRED,
IDENTIFIER ATTRIBUTES
ATTRIBUTE IdX = 1 : FullName
DNS_IDENT = PRIMARY_NAME,
ACCESS = NONSETABLE,
DISPLAY = TRUE,
SYMBOL = ATTR_FRED_IDX,
CATEGORIES = ( CONFIGURATION )
END ATTRIBUTE IdX;
END ATTRIBUTES; (* IDENTIFIER *)
CHARACTERISTIC ATTRIBUTES
ATTRIBUTE Char1 = 2 : Thing
ACCESS = NONSETABLE,
DISPLAY = TRUE,
CATEGORIES = (CONFIGURATION),
SYMBOL = ATTR_FRED_CHAR1
END ATTRIBUTE Char1;
END ATTRIBUTES; (* CHARACTERISTIC *)
STATUS ATTRIBUTES
ATTRIBUTE Stat1 = 3 : Unsigned32
ACCESS = NONSETABLE,
DISPLAY = TRUE,
CATEGORIES = (CONFIGURATION),
DEPENDS ON = "Char1 IN SET (Val1, Val2)"
SYMBOL = ATTR_FRED_STAT1
END ATTRIBUTE Stat1;
END ATTRIBUTES; (* STATUS *)
:
:
:
Any help greatly appreciated,
Pete Shea.
T.R | Title | User | Personal Name | Date | Lines |
---|
2442.1 | try a variant record, or don't return it | TOOK::CALLANDER | MCC = My Constant Companion | Tue Apr 07 1992 13:19 | 7 |
| the depends on doesn't do it, to tell you the truth the only way to do
what you ask is NOT to return the attribute unless you want it, or to
combine the two attributes into a single attribute using a variant
record. Please note though that there is currently no means of entering
a variant record so the attribute could not be settable.
|