Hi there,can anybody explain for what reasons Lotus created the new @Command “ComposeWithReference”? Was there something wrong w/ Compose? Is it just for the flags you can pass?
Background: in an app, the user can create a status-document from a main-doc using ComposeWithReference, or from the view using Compose.
Is there any significant (dis-)advantage using the one or the other version and may mixing up the two versions result in problems?
TUA,
Buzzy
Subject: Compose or ComposeWithReference?
This @Command Creates a response document containing a reference to the main document.
Subject: But…
…this is what the “normal” Compose did too…isn’t it?
Subject: RE: But…
The ComposeWithReference does more than compose used to. It doesn’t just generate a $Ref field – it generates a link, or the equivalent of “Inherit entire document into a Rich Text Field”, etc., depending on the reference flag you choose. With a Compose, you need to have these set up on the response form (@InheritedDocumentUniqueId in a computed-when-composed field, selecting the “inherit entire” option on the form, etc. That meant different forms for different purposes – the ComposeWithReference lets you handle the parent reference differently under different circumstances using fewer forms.
Subject: RE: But…
Only if what was being created used a response form. I believe this formula allows you to use any form to create a response document. It also allows a great number of optional parameters that can be very useful.
Subject: Well…
…for the response realls IS of type “response”, it should work anyhow. We have the problem that somtimes, the reference to the main-doc seems to be incorrect. On the responses PostSave-Event we’re setting the main-docs status using “@SetDocField($Ref; “Status”; “ERL”);”, but an other main-doc gets modified…strange!
Thanks,
Buzzy
Subject: RE: Well…
Do you have the response form itself set to inherit value? Not certain that it would have an effect but it sounds like its time to start trying everything.
Subject: RE: Well…
Hi,I’ll take a look at the form’s properties - thanks for the hint!
Buzzy