Page 1 of 1

Speculative Link ~ Diagrams

Posted: 18 Dec 2014 14:43
by capnkeith
[EDIT by Mike Tate]
I have split this sequel off from Speculative Link (11966) because it is has become more complex than expected.

Please excuse me jumping in here.

I have been following this discussion and found Tatewise suggestion useful. However I am having difficulty getting the note text to display in a diagram box or on a report. I managed to get the code to display in the box but not the text :oops: Also managed to display an icon. What am I missing or not doing correctly?

I'm sure it is not relevant but I don't display an actual box in my diagrams, just the text.

Regards

Re: Speculative Link ~ Diagrams

Posted: 18 Dec 2014 15:53
by tatewise
What should work well in FH V6 is the new Contextual Data References explained in the Help for Understanding Data References. I think what worked is %CUR_FAMC.NOTE2%

%INDI.FAMC[1].NOTE2% should also work but only for 1st Parents.
%INDI.FAMC[2].NOTE2% should also work but only for 2nd Parents.
Whereas, %CUR_FAMC.NOTE2% should work for the displayed Parents.

The style of Box will make no difference.

Re: Speculative Link ~ Diagrams

Posted: 18 Dec 2014 16:26
by capnkeith
I have used %INDI.FAMC[1].NOTE2% and that is what it displays in the box not the actual text entered in the Note field. I tried creating a Text Scheme Custom Item but didn't have a lot of luck, not knowing what other settings to use.

Just tried this one %CUR_FAMC.NOTE2% but it told me "Not valid in this context"

Re: Speculative Link ~ Diagrams

Posted: 18 Dec 2014 16:52
by tatewise
In the Edit Text Scheme Item window in the Template box at the top I have literally %INDI.FAMC.NOTE2%
No string quotes, nothing else, default options, and it displays the Note text in both FH V5 and FH V6.

Similarly %CUR_FAMC.NOTE2% works on FH V6.

What are you actually entering into the Template box?

Re: Speculative Link ~ Diagrams

Posted: 18 Dec 2014 17:16
by capnkeith
I was using the insert button in Edit Text Scheme Item and using the Data Reference Assistant and even though there it displayed the code within % signs. They were missing when it transferred into the template window, which I had not noticed. I have now manually inserted them and now it works.

Thanks for your help.

Now I will have a go at changing the text colour for this note.

Re: Speculative Link ~ Diagrams

Posted: 18 Dec 2014 17:33
by tatewise
Did the %CUR_FAMC.NOTE2% version work?

I will investigate the lack of % when using DRA as it may be a bug in FH V6.

Re: Speculative Link ~ Diagrams

Posted: 18 Dec 2014 17:59
by capnkeith
No %CUR_FAMC.NOTE2% still does not work, same message.

Re: Speculative Link ~ Diagrams

Posted: 18 Dec 2014 18:08
by tatewise
You are running FH V6?
What type of Diagram have you tried?

Try editing existing working Template and change the %INDI. prefix to %CUR_
Make sure you replace IND and dot with CUR and underscore.

Re: Speculative Link ~ Diagrams

Posted: 18 Dec 2014 19:39
by capnkeith
I am running v6. I'm surprised you even asked :shock: :lol:

I have been using an All Relatives diagram.

Trying as requested, I cannot use %CUR_FAMC.NOTE2% in the Diagram Options / Boxes - message comes up "Data reference is to a record of the wrong type."

I can use %CUR_FAMC.NOTE2% in the Diagram Options / TEXT and it does display as expected in All Relatives, Ancestors & Descendants and Descendants diagrams but not the Ancestors diagram.

Regards

Re: Speculative Link ~ Diagrams

Posted: 19 Dec 2014 01:29
by capnkeith
Just added note to two other people in an All Relatives diagram, but note would not display until I changed text scheme back to INDI. . Even though the original one was still working with CUR_ ?

Regards

Re: Speculative Link ~ Diagrams

Posted: 19 Dec 2014 15:34
by tatewise
I have visitors at the moment, but will try to repeat those symptoms later on both FH V5 and FH V6 as appropriate.

Re: Speculative Link ~ Diagrams

Posted: 19 Dec 2014 21:44
by tatewise
I have investigated those symptoms on FH V5 & FH V6 and they largely, but not entirely, concur with Keith's.
  1. In FH V6 and FH V5 there are no problems with the %INDI.FAMC.NOTE2% format.
  2. In FH V6 both the Text Scheme and Boxes Condition DRA <<Insert mode for almost every Contextual Data Reference says Expression is not valid for this context, but if entered by hand they are all OK.
  3. In FH V6 the Edit Text Scheme Item DRA <<Insert mode omits the leading & trailing % on everything!
  4. In FH V6 the Edit Text Scheme Item allows Contextual Data References in the Template, but in Ancestor Box Types (green background) they display nothing.
I have reported these separately in another thread FH V6 Diagram Broken Data Refs (12009).