Hi,
I have a request form with a Action button for Printable version of request (@command([compose];“printableRequest”). Printable version form has Inherit values from selected document property enabled with computed fields for request form.
It works fine as long as I don’t have any Form Formula defined for the view from where i have opened the request document. If I add form formula to that view, clicking action button for printable version opens the same request form instead of opening printable form.
I am using lotus notes client 6.5.3 and server 6.5.3.
Subject: Formulas Inherit Values and Form Formula behaviour
From the Notes Help:
…If a user attempts to compose a new document using a different form by selecting Create - Phone Number from the Notes menu, the user will see the form in the Form Formula instead of the New form. The same is true of view actions that use formulas or LotusScript to compose a new document.
To avoid this problem, add the following line to the form formula:
@If(@IsNewDoc; @Return(Form); “”)
Subject: Formulas Inherit Values and Form Formula behaviour
Instead of composing a new doc from the underlying form try just switching to the printable form and see what that does. Use @Command([ViewSwitchForm]; formname). You can also just use the @Command([FilePrint]; …) with options to print with a specific form rather than switching to it first. HTH
Subject: RE: Formulas Inherit Values and Form Formula behaviour
Thanks Paul,
ViewSwitchForm is not working for me. I added it in action button to open printable form and nothing happened. I don’t want to use @Command([FilePrint];…) as I want user to view printable version before printing.
Subject: RE: Formulas Inherit Values and Form Formula behaviour
what happens if you try to switch to another form manually from within the doc? Open a document and go to View | Switch Form …, choose your PrintableForm and the doc should now display with that form. Does it work like that? That basically does the same thing as the button code you tried but I want to see if it reacts any differently.
Subject: RE: Formulas Inherit Values and Form Formula behaviour
Strange thing:I switched form manually as you said, nothing happened. Then i removed form formula from the opening view, reopened the request document, again tried manually switching form and it worked exactly what i need. It is not working with my form formula.
Just for your info, my form formula is just switching form based on a field value:
@If(fieldX = “abc”; “MCD”;“MCDReadonly”) where MCD is request form, MCDReadonly is readonly version of form in a certain case and an other third form for printing which i want to open against print action button.
Subject: RE: Formulas Inherit Values and Form Formula behaviour
maybe a bug but im sure IBM will give you the standard answer: not a bug, functioning as designed. But you can probably submit an enhacement request.