Data refs in diagrams
Posted: 30 Mar 2021 14:41
I have added a data ref to the box tab of a diagram.
%INDI.TITL%
This works fine and I use it to add a coloured border line around relevant boxes where the individual has a title recorded using the standard fact "Title" and using the person's title eg 2nd Baronet of Lamport as a value.
I also have expressions/data refs, among others, which I use successfully.
=IsTrue(%INDI._ATTR-CIVIL_WAR_ALLEGIANCE% = "Parliament")
=IsTrue(%INDI._ATTR-CIVIL_WAR_ALLEGIANCE% = "The King")
This puts an icon, dependant on allegiance, beneath the relevant box where the custom attribute "Civil War Allegiance" has been used for that individual and the value "The King" or "Parliament" added in the fact tab of the property box.
Two things have occurred to me.
1) some data refs include the letters ATTR or EVEN [eg Civil War allegiance above] and others do not [eg Title above]. This occurs with both events and attributes.
So my query is why is this and what difference does it make please?
2) With the civil war allegiance fact I record as a value either "The King" or "Parliament" and this is used in the expression to add the correct icon. With Title I also add a value eg "2nd Baronet of Lamport" but I cannot make an expression/s to give a different mark for different titles.
=IsTrue(%INDI._ATTR-Title% = "2nd Baronet of Lamport") is not a valid expression. Why is this? It is similar to, and based on, the Civil War one.
Ideally I would like to differentiate between say Baronet and Lord or Earl and so put a different box marker for each. This would mean examining the value to find a particular word. Is this possible please?
I have scoured the Knowledge base but cannot find an answer so any help would be appreciated.
Many thanks -- Peter
%INDI.TITL%
This works fine and I use it to add a coloured border line around relevant boxes where the individual has a title recorded using the standard fact "Title" and using the person's title eg 2nd Baronet of Lamport as a value.
I also have expressions/data refs, among others, which I use successfully.
=IsTrue(%INDI._ATTR-CIVIL_WAR_ALLEGIANCE% = "Parliament")
=IsTrue(%INDI._ATTR-CIVIL_WAR_ALLEGIANCE% = "The King")
This puts an icon, dependant on allegiance, beneath the relevant box where the custom attribute "Civil War Allegiance" has been used for that individual and the value "The King" or "Parliament" added in the fact tab of the property box.
Two things have occurred to me.
1) some data refs include the letters ATTR or EVEN [eg Civil War allegiance above] and others do not [eg Title above]. This occurs with both events and attributes.
So my query is why is this and what difference does it make please?
2) With the civil war allegiance fact I record as a value either "The King" or "Parliament" and this is used in the expression to add the correct icon. With Title I also add a value eg "2nd Baronet of Lamport" but I cannot make an expression/s to give a different mark for different titles.
=IsTrue(%INDI._ATTR-Title% = "2nd Baronet of Lamport") is not a valid expression. Why is this? It is similar to, and based on, the Civil War one.
Ideally I would like to differentiate between say Baronet and Lord or Earl and so put a different box marker for each. This would mean examining the value to find a particular word. Is this possible please?
I have scoured the Knowledge base but cannot find an answer so any help would be appreciated.
Many thanks -- Peter