Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Making a field copyable

Status
Not open for further replies.

australia3

Technical User
Nov 9, 2004
64
GB
I want users to be able to copy an automatically computed field from one form to another like you can with the sender of a memo. Is there a way of doing this?
 
Lots and lots of options, but would have been a great advantage if there where slightly more info about the field itself. Taken from the message it must be assumed that the value should be preserved; To set a computed field with property 'Computed when composed' is one way of doing it, but then the needed values has to be available for 'setting' when creating the original...

As said, with slightly more info, there is a much better possibility to point you in the right direction instead of listing all possible options, so please provide a little more info about the purpose of the copyable FIELD...

TrooDOS

Brgds,

TrooDOS
 
The field is the document unique field. I want users to be able to reference this field in other documents. Ideally I want them to create a document from a parent document (with this unique field) and the new document to have a hyperlink or some of the fields of the original document to save them having to reference it themselves. Do you know what I mean?
 
Yes, I think so: What you are looking for is either a Parent - Response hierarchy, or something very similar. If that is what you have in mind, Parent-Response is done automatically using a $REF field (You should normally not declare this field, it's all built-in as default...)

I often use this structure COMBINED with a separate UNIQUE field (Computed when composed) to make the add'l keys for search. Notes have very good built-in methods for keeping track of response documents, but I also prefer to use keys that is slightly more readable than a 32 character key; So I use the @UNIQUE function to create those keys. I also set this field to be inherited into the response + I give the response a separate unique value (1 common main key for the structure + unique key pr response)

To copy all fields from one to another, depends on the settings for the response document. On the second tab (form properties, the one looking like a hat with a 'propella' on top) the first tick box 'Formula inherit values from selected document' will bring in the values of the fields with the same names. Make sure to declare the fields you want brought over inside the response document. If you want a link back to the parent document, create a rich text placeholder for this...

I suggest you read a bit about Parent-Response hierarchy in the Notes designer help. It is well documented but a bit 'large' so there will be some help documents to look into, but it could give you definetively better answers than what I can squeeze in here...

Brgds,

TrooDOS
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top