Link to home
Start Free TrialLog in
Avatar of BroadAustralia
BroadAustraliaFlag for Australia

asked on

Action to only run when on response doc -- not parent doc...

Hello All,

How do I make my compose action ( in a view ) throw up an error/message if the user is attempting to run on the parent document?  I only want the action to run on the response doc...

Many thanks,

Broad.
ASKER CERTIFIED SOLUTION
Avatar of Steve Knight
Steve Knight
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I'm not quite sure, but I'd try to define the new form as a Response-to-response form. I think Notes will required a response document by itself.
Avatar of BroadAustralia

ASKER

Hi Guys

Thanks Steve that worked perfectly:        @If(Form!="ResponseForm";@Return("");"")

Sjef I don't follow you?

Broad.
No problem, thanks for the points.
Steve
I've probably completely misread your question, but I can at least explain what I was driving at...

Notes knows 3 types of forms: Main, Response and Response-to-response forms. That's at the form level. On the document level, there are but two: a document without responses (Main) and a document with responses (the other two). Now, when you are in a view that supports a hierarchy and you open a new document with a form that's defined as a Main form, Notes will see to it that the document you create isn't attached to some other document as a response. When it is a form that is defined as a Response-to-Response form, Notes will need a current document to attach the newly created document to (hence the complaint "No document is selected; please select a document to respond to").

In the last case, when a Response form is used, Notes needs a current document, but it won't attach the new document to the current document, but to the Main document in the tree the current document belongs to, as a new first-level response document to the common main document.

Will this help??
Hi Sjef,

Yes you have misread the question but thanks for the explaining this it all is helping me ;)   especially the last paragraph I didn't know that..

Broad.