Hide attachments pasted in Lotus Rich Text field - lotus-notes

How to hide an attachment in a Lotus Notes document pasted in a rich text field?
Using attach icon the attachment can be hidden using hide-when formula !#IsNewDoc, if it is pasted it remains visible even in case of the same hide when formula.
(Lotus Notes 8.5.3 client)
After saving and reopening the document, the attachment is still displayed. (Is seems #isnewdoc does not work)

It does work the way you described BUT after setting hide-when formula you have to close and reopen the document because the formula !#IsNewDoc hides the attachment only if document is not new.
Even if you edit an existing document you have to
press F9 or
select menu View/Refresh
after setting hide-when formula. The hide-when formula doesn't work right away. The document has to be recalculated before hide-when formula takes affect.
EDIT:
You have a form with a RichText field. This has a hide-when formula !#IsNewDoc. Normally, all content disappears when document is saved and reopened. But, if user copies an attachment from another Notes document's Richtext field the attachment stays visible.
Why? If you copy an attachment from another RichText field then not only the attachment is copied but also all properties. In this case the property hide-when is empty for copied attachment.
Here is a solution:
Create a subform "AttachmentsNewDoc" with RichText field without any hide-when formula.
Create a subform "AttachmentsExistingDoc" with RichText field inside a collapsed section with hide-when formula 1.
Include in your form a calculated subform with formula #If(#IsNewDoc; "AttachmentsNewDoc"; "AttachmentsExistingDoc")

Rich Text fields can not normally be hidden. The rich text itself can contain hide-when formatting.
So you have to use a work-around if you need/want to hide the attachments.
I would use the computed subform trick for this.

Yes, for documents already saved, you need to go to the richtext field and check all items (files) to make sure the hide when on these are set correctly.

Related

How to calculate a Lotus Notes Footer

I want to add a footer to a Lotus Notes document. The Lotus Notes form "Printing" tab allows me to add a footer. However I would like to calculate the footer based on the value of a field on the form rather than just adding text. Is there a way of doing this?
Unfortunately, you can't show field content in print footer.
The only thing possible is inserting document's window title with &W.
Form's Window Title formula can be calculated with field contents.

Sharepoint 2010 Content types Hyperlinks and Word QuickParts

Sharepoint 2010I'm slowly making progress with Sharepoint, but have encountered a problem with Content Types and Word Quickparts.
What I'm trying to do:
I want a Content type to hold summary information for manuals and related documents that might be located in separate libraries. I want to display this information in a Table within Word (by setting up a template) using Word Quick Parts>Document property fields.This table would then summarise all the relevant fields and their related links at the top of a document that in turn summarises information about a particular system.This Word document in turn would be stored in a separate document library.
This all works fine for dates, text descriptions, check boxes, yes/no fields and drop down selections as I can find the related Word Quick Parts>Document Property
However, the "Hyperlink or Picture" Type fields are not present in the Word Quick Parts>Document Property fields. SoAm I completely misunderstanding what content types are for? orIs there a setting within sharepoint that would make these hyperlinks visible in the Word Quick Parts?or Is there a better alternate solution. Thanks!
Hyperlink is not available as property in Word Quick Parts.
Sadly, you can access to this field in Word when you click in the property icon. This will display all the SharePoint property of the document with the hyperlink field.
A workaround would be to create a simple text field and to put the URL of the hyperlink field in this field. (With Workflow or Event Receiver)
An another deep solution is proposed in this link :
https://social.msdn.microsoft.com/Forums/office/en-US/c7619237-baa1-4669-af65-0f0a39223aad/sharepoint-metadata-and-office-quickparts-hyperlinks-are-not-appearing-in-the-quick-part-list?forum=worddev
This is about create two properties, one for the text, one for the url. Then to arrange it in Word in order to get an hyperlink.
Since Microsoft seems to be removing a lot of its legacy web pages, the content of the above link is copied below:
a. In the sharepoint list, you will need two text properties, one for
the link text and one for the display text. Let's call them hllink1
and hldisplay1. For a sample document, put some text in each of these
properties.
b. in the template,
insert the hllink1 Document Property and the hldisplay1 Document Property. This is a temporary move that will let you change thevalues
of these properties without displaying the DIP
insert a HYPERLINK field as follows
use ctrl-F9 to insert a pair of field code braces { }
type HYPERLINK "" between the {}, so you have
{ HYPERLINK "" }
then insert another copy of the hllink1 Document Property between the ""
{ HYPERLINK "the Document Property for hllink1" }
c. select the Hyperlink field and use F9 to update it. When you show
the result (Alt-F9), you should see a clickable hyperlink where the
"display text" is the same as the link text
d. Click somewhere inside the display text, and insert the hldisplay1
Document Property.
e. Carefully select the remainder of the display text and delete it.
You should stil be left with a hyperlink that can be ctrl-clicked in
the usual way.
f. Modify the texts in hllink1 and hldisplay1. However notice that,
as a maximum, the hyperlink display text will update automatically.
The tooltip for the hyperlink does not update automatically.
g. Select the hyperlink and press F9 to update it. The tooltip/link
text should update

Hide-When doesnt work when a document is changed

Im facing a problem with a hide-when formula of an editable field in lets say Document A. The hide-when formula includes a #DbLookup statement, where a field of Document B is read. Dependent on that field, it is hidden or shown.
When I open the Document A, it works just fine and the editable field is hidden. Then I go back to Document B and change the value of the field so the field shows in Document A it is still hidden. Only when I go back in the Notes Designer and save the form of Document A again the hide-when formula works correctly again.
So everytime I change the value of the field in Document B, I have to save the form of Document A again for the hide-when formula to work correctly.
Note that I use #If and #True/#False in my hide-when formula, as it is not that simple as I've explained above.
Any solution in order to make the hide-when formula work correctly?
Thanks in advance!
Add "NoCache" to first parameter of #DbLookup("":"NoCache"; ... ).
This will read the data from your Document B every time not just at first call (or after changing form).

Can I hide a subform in notes designer from specific set of users?

Can I hide a subform in notes designer from restricted people using a field in the main form?
I have a field in my main form which has a bunch of email ID generated on computed for display. I only want my subform to be visible to those bunch of usernames.
Is this possible?
You can chose to do a computed subform,
In Designer,
First Open a Form
Then on the menu bar go to Create>Resource>Insert Subform>Insert Subform Based on Formula.
Then you can use a formula to choose to display a subform or not.

Binding richtext field with two controls in xpages

I have a richtext field in the form to enter text and store attachments. In xpages, i have used multiline edit box control to enter text and file upload control to attach files in richtext field. Both the controls are binded to same richtext field.
If I attach file using file upload control and enter text in multiline edit box, i see the text being stored in the document and attachment being omitted. How to achieve in storing both attachment and text in the richtext field ?
You can't bind 2 controls to one backend field. They will overwrite each other. Keep them separate. For your specific problem the RichText Editor Evolution might be the solution. It uses a bean to put things together.
You will need to change your RichText to "store MIME"

Resources