BIZZARE! Computed Text Prints variable name not value

Ok, before we start, this is not just a case of the formula being the fieldname in quotes by mistake! Just wanted to clear that up. It’s a bit more complicated than that!

It’s also not a cry for help - I’m posting this because I can’t believe it ever happened!!!

I have a document. There is an action button which displays it with a different form. This action also does some collating of information, into some LS arrays.

These arrays are written to fields on the document temporarily, and displayed using computed fields.

When you print the document, instead of the actual values, it prints the LotusScript variable name, which is not usd anywhere on the form, ever!!!

I’ve got around it by using computed fields, instead of text, but it’s still majorly odd.

In more detail, the document itself contains some multivalue fields to display data like:

Key Unit Price Value

A 50 150

A 49 148

B 75 300

B 80 400

When printed, this info is collated using 3 LotusScript arrays, called AryKeys, AryUnit and AryVal

AryKeys AryUnit AryVal

A 99 198

B 155 700

These arrays are then written into hidden, computed fields, called:

Keys (formula: Keys)

Units (formula: Units)

Vals (formula: Vals)

using

doc.Keys = aryKeys

etc etc

I then have tables all down the printing form which show these fields - the idea being that they are page headers.

These tables contained computed text to show the values of the above fields, as follows

@Implode(Keys;@NewLine)

When you open the document, it shows the correct values in the computed text. However, you press print, and the Keys computed Text changes to “AryKeys”

Note that this is a variable from the LS that created the document - it is never used within the document itself.

This works fine in R5 - but evidently not in R6

Confused!

Kiers

Subject: BIZZARE!! Computed Text Prints variable name not value

I have also had a smiliarly bizzare result from using Computed Text when printing.

The scenario is: open a document with Computed Text on it in READ mode. Print it. When you close the document, Notes prompts you if you want to save or not! (But you didn’t change anything! You couldn’t because you were in READ mode!)

After removing the Computed Text from the form, when printing the document in READ mode, the “save” prompt no longer appeared.

(This was on a Notes 6.x client.)

It seems that Computed Text and printing don’t like each other too much. Beware developers!