saveAttachment function doenst work. Access issue?

A Hamre
Tera Contributor

Hi, I have created a button that lets the user upload an attachment on the sc_req_item table. I use the "saveAttachment" function. My problem is that when an itil user clicks the button, the attachment dialog opens up, but the "choose file" button is nowhere to be seen. However, it works for user with the admin role. If the itil user clicks the paperclip button, the attachment dialog works just fine. Anyone knows any reason for this. Is this some kind of access issue? The two screenshots below should explain the situation:

find_real_file.png

Above you can see how it looks when the itil user clicks the custom button

find_real_file.png

And here you can see how it looks when the same user clicks the paperclip button.

1 ACCEPTED SOLUTION

Hi,

 

Create a read,write and create ACL and provide access to ITIL and delete access to admin. Please check after creating the ACLs.

 

Regards,

Ram M

View solution in original post

4 REPLIES 4

rammohanraomadd
Kilo Guru

Hi,

 

Please check if the ITIL user has write access on the table. Additionally also check if user has access to add the attachments on that particular table from sys attachment table.

 

Regards,

Ram M

Hi, thank you for your reply. The table I'm uploading to doesn't have any ACLs on it, so I'm not sure where to look. When the itil user looks for the list view (typing mytable.list in the filer navigator) the message "Security constraints prevent access to requested page". If you try to create a new record by typing mytable.do in the filter navigator all the fields for the table are greyed out. the table is not inherited from anything, and there are no client scripts, ui policies, acls etc on it. I added a test button that created a new record on the table, and the itil user is allowed to do that.

Hi,

 

Create a read,write and create ACL and provide access to ITIL and delete access to admin. Please check after creating the ACLs.

 

Regards,

Ram M

added a write acl and now it works! thank you 🙂

 

(dont understand why this was necessary though.. as the table had no acl and itil user could create and populate record via script)