[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 160
  • Last Modified:

Moving attachments within document

I have a database where there are sometimes 10 attachments attached to a document.  I'd like to secure access to those attachments by restricting based on userroles.

In order to do that I believe I need to move those attachments to a richtext field in order to take advantage of the 'hide when' feature.

What is the best way to move all of those attachments to a field within the same document when it appears that they were originall attached to the 'body'.

Thanks,
0
ITDharam
Asked:
ITDharam
  • 3
2 Solutions
 
marilyngCommented:
You cannot use the hide-when features in a rich-text field, they are unpredictable.

Instead use subforms, one with the rich text field and the attachments, and one without, or one rich text field per attachment and add or remove subforms.. although the robustness decreases with more subforms (each is an additional hit on the server)

The subforms can be computed, so when someone of a certain role opens the document, the rich text subform shows, else it doesn't.

Downside is that refreshing the form doesn't change the subforms, so if someone opens in read mode and switches to edit mode, you have to close and reopen the form to get the subform to load.
0
 
cezarFCommented:
or use the $V2AttachmentOptions field. set it "0" or "1" to hide or show attachments
0
 
marilyngCommented:
This is a really nice explanation of $V2AttachmentOptions

https://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/b1eb142471e6737385256fcd0011df64?OpenDocument


It is, at best, an old chestnut that works and most times does not. :)
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now