Brian,

In short - buttons.  In my situation, I use a separate form to store the 
attachments, and just present them on the user form via a table field.  I 
then have buttons for View, Add, Replace, Delete, and Save to Disk.  You 
can then control who has access to the buttons.  The attachment pool is 
hidden, so they never see it, just the table field.

Oh, and don't get Read/Write confused with Display Only:
        "Read/Write", "Read Only", and "Disabled" are display options. 
This setting addresses how the field will appear in the user tool.
        "Optional", "Required", and "Display Only" are entry mode options 
on the Database tab.  This setting determines if a field is created in the 
db or not.

Attachment pools aren't a database field, and so the "entry mode" concept 
won't apply.
Attachment fields are database fields, and so the "entry mode" concept 
will apply.

Hope that helps,
Thad Esser
Remedy Developer
"Argue for your limitations, and sure enough, they're yours."-- Richard 
Bach



"Sokol, Brian" <[EMAIL PROTECTED]> 
Sent by: "Action Request System discussion list(ARSList)" 
<[email protected]>
12/13/2007 01:11 PM
Please respond to
[email protected]


To
[email protected]
cc

Subject
Re: Can An Attachment Field Be Made Read Only? (UNCLASSIFIED)






** 
If it is display only then how do you save the file in the attachment 
field?

From: Action Request System discussion list(ARSList) 
[mailto:[EMAIL PROTECTED] On Behalf Of Thad K Esser
Sent: Thursday, December 13, 2007 3:54 PM
To: [email protected]
Subject: Re: Can An Attachment Field Be Made Read Only? (UNCLASSIFIED)

** 
I have a display only attachment field that is being set with a set 
fields.  When I was first setting it up, one issue I had was that if I put 
the attachment field on an Admin Only tab (or a tab to which the user 
doesn't have permissions), the set fields wouldn't happen.  This was the 
case even if the attachment pool/field itself had the proper permissions. 
In my case the attachment field was hidden anyway, so I just moved it off 
the page holder and it worked fine. 

Just something to keep in mind. 

Thad Esser
Remedy Developer
"Argue for your limitations, and sure enough, they're yours."-- Richard 
Bach 


"Heider, Stephen" <[EMAIL PROTECTED]> 
Sent by: "Action Request System discussion list(ARSList)" 
<[email protected]> 
12/13/2007 12:40 PM 

Please respond to
[email protected]



To
[email protected] 
cc

Subject
Re: Can An Attachment Field Be Made Read Only? (UNCLASSIFIED)








** 
I do that here but with a Set Fields from another form. 
  
Try this: perform the Set Fields from the same form by ?1? = $1$   This 
should cause Remedy to retrieve the file from the server. 
  
  
Stephen 
Remedy Skilled Professional 
  



From: Action Request System discussion list(ARSList) 
[mailto:[EMAIL PROTECTED] On Behalf Of Sokol, Brian
Sent: Thursday, December 13, 2007 3:35 PM
To: [email protected]
Subject: Re: Can An Attachment Field Be Made Read Only? (UNCLASSIFIED) 
  
Looks like you can not use a Set Field to copy from one attachment field 
to the other. Any other ideas? 
  



From: Sokol, Brian 
Sent: Thursday, December 13, 2007 3:16 PM
To: [email protected]
Subject: RE: Can An Attachment Field Be Made Read Only? (UNCLASSIFIED) 
Ok tried this -when I click on the button I do a Set Field from the 
protected Attachment field to it's copy. I then do a 
PERFORM-ACTION-OPEN-ATTACHMENT command on the 2nd attachment field. When i 
try this I get the following error; 
  
An invalid argument was encountered. 
  
It looks like the set field fails to copy the attachment . 
  



From: Action Request System discussion list(ARSList) 
[mailto:[EMAIL PROTECTED] On Behalf Of Heider, Stephen
Sent: Thursday, December 13, 2007 2:58 PM
To: [email protected]
Subject: Re: Can An Attachment Field Be Made Read Only? (UNCLASSIFIED) 
** 
Scratch that last message.   I am working on a separate display-only form 
for all attachments.  On regular forms there doesn?t seem to be an option 
to create a display-only attachment field. 
  
However? you can still use the same method of doing a Set Fields into 
another attachment field.  This second attachment field would be set to 
$NULL $ either when saving or in the active-link (after the 
PERFORM-ACTION-OPEN-ATTACHMENT command).   Because the user is really 
opening a copy of the file the original file remains intact. 
  
Stephen 
Remedy Skilled Professional 
  



From: Action Request System discussion list(ARSList) 
[mailto:[EMAIL PROTECTED] On Behalf Of Heider, Stephen
Sent: Thursday, December 13, 2007 2:47 PM
To: [email protected]
Subject: Re: Can An Attachment Field Be Made Read Only? (UNCLASSIFIED) 
  
Brian, 
  
Is the attachment field on the form display-only (probably not)? 
  
Try this, when the user clicks the button do a Set Fields from the regular 
attachment field to a hidden display-only attachment field. Then run the 
PERFORM-ACTION-OPEN-ATTACHMENT command.  This way it should be impossible 
for anything to get written . 
  
Stephen 
Remedy Skilled Professional 
  



From: Action Request System discussion list(ARSList) 
[mailto:[EMAIL PROTECTED] On Behalf Of Sokol, Brian
Sent: Thursday, December 13, 2007 2:23 PM
To: [email protected]
Subject: Re: Can An Attachment Field Be Made Read Only? (UNCLASSIFIED) 
  
I changed the action to PERFORM-ACTION-SAVE-ATTACHMENT FieldID and that 
will work but I would rather have them be able to view the attachment 
directly. 



From: Sokol, Brian 
Sent: Thursday, December 13, 2007 2:14 PM
To: [email protected]
Subject: RE: Can An Attachment Field Be Made Read Only? (UNCLASSIFIED) 
Hi Stephen, 
  
I just tried your approach and I am hoping I did something wrong because 
this would be a perfect solution. When I click on the button I run an AL 
with a Run Process action. It performs the following: 
  
PERFORM-ACTION-OPEN-ATTACHMENT FieldID 
  
This opens the file fine but if I modify the file and save it, the changes 
are written back to the attachment file. 
  
Brian 
  



From: Action Request System discussion list(ARSList) 
[mailto:[EMAIL PROTECTED] On Behalf Of Heider, Stephen
Sent: Thursday, December 13, 2007 1:42 PM
To: [email protected]
Subject: Re: Can An Attachment Field Be Made Read Only? (UNCLASSIFIED) 
** 
Brian, 
  
How about this approach: 
  
When the screen is opened or the entry retrieved ? when the attachment 
field is not null - change the attachment field to Hidden, display the 
name (and optionally the size) of the attachment file in a read-only 
character field that is displayed as text.   Unhide a button next to this 
character field that, when clicked, opens the attachment.   
  
This allows the user to open, print, save a local copy, but does not allow 
them to make any changes to the attachment or remove the attachment from 
the record. 
  
In the above example, only the presence of an attachment will trigger your 
workflow to make it ?read-only?.  You probably would want to add a 
condition that will not make the attachment ?read-only? if the user is 
part of a certain group, ie. ?App-Administrator?.   This will provide the 
ability for certain users to have access to remove or update an 
attachment.   
  
Stephen 
Remedy Skilled Professional 
  



From: Action Request System discussion list(ARSList) 
[mailto:[EMAIL PROTECTED] On Behalf Of Sokol, Brian
Sent: Thursday, December 13, 2007 1:30 PM
To: [email protected]
Subject: Re: Can An Attachment Field Be Made Read Only? (UNCLASSIFIED) 
  
I don't want the submitter to be able to change it once he or she attaches 
it to the form. I had thought of using a separate form but I am not sure 
that would prevent the submitter from changing it as well. 
  
__20060125_______________________This posting was submitted with HTML in 
it___ __20060125_______________________This posting was submitted with 
HTML in it___ 
***IMPORTANT NOTICE: This communication, including any attachment, 
contains information that may be confidential or privileged, and is 
intended solely for the entity or individual to whom it is addressed. If 
you are not the intended recipient, you should delete this message and are 
hereby notified that any disclosure, copying, or distribution of this 
message is strictly prohibited. Nothing in this email, including any 
attachment, is intended to be a legally binding signature.***
__20060125_______________________This posting was submitted with HTML in 
it___
__20060125_______________________This posting was submitted with HTML in 
it___ 

***IMPORTANT NOTICE: This communication, including any attachment, contains 
information that may be confidential or privileged, and is intended solely for 
the entity or individual to whom it is addressed.  If you are not the intended 
recipient, you should delete this message and are hereby notified that any 
disclosure, copying, or distribution of this message is strictly prohibited.  
Nothing in this email, including any attachment, is intended to be a legally 
binding signature.***

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"

Reply via email to