Unsolved
This post is more than 5 years old
30 Posts
0
518
August 25th, 2008 08:00
Dynamic Model: refine computed DisplayName
Hello everybody
Does anybody know how to refine a computed string attribute?
I try something like the following syntax.
e.g.
refine computed DisplayName = SystemName . "/" . SC_prNames;
Withou success.
I also tried to replace the "." by a "+", "," and a "&".
Any helps would be appriciated.
Regards,
Christian
Does anybody know how to refine a computed string attribute?
I try something like the following syntax.
e.g.
refine computed DisplayName = SystemName . "/" . SC_prNames;
Withou success.
I also tried to replace the "." by a "+", "," and a "&".
Any helps would be appriciated.
Regards,
Christian
No Events found!
FredericMeunier_0588be
143 Posts
0
August 25th, 2008 11:00
from my understanding, I think a computed attribute can't be a string (see the expression in MODEL doc). Now regarding your needs, the DisplayName can be computed at discovery time, which should be a good solution (no change between 2 discoveries), or if there is lot of change during the object life, you can subscribe to attribute change and trigger the change of the DisplayName based on the new value.
HTH,
--Fred
*** APG v4.1 is now available with new out of the box reports for Smarts InCharge health***
Frederic Meunier
Solutions Watch4Net Inc
APG & Smarts InCharge integration
http://www.watch4net.com
Christian4
30 Posts
0
August 25th, 2008 12:00
In the dasboard I checked and I saw the type of Field "computed (with expression) string". Somehow it is also possible to refine such an attribute of type string. But if I have a look wo the definition I don't know how to interpret it.
Regards,
Christian
FredericMeunier_0588be
143 Posts
0
August 25th, 2008 12:00
unfortunately, there is some differences of the features existing within a DM and the ones available using DynamicModule ... you can try to open a ticket to see if this is a bug or not. As there is no doc regarding the computed attribute of type string, the behavior can be by design or by mistake.
--Fred