"Allow Images Upload" in Mobile Agent does not insert the image into the table.

Narek
Kilo Contributor

Hello everyone,

 

I am working on an app in Mobile Agent.

I have an Action Function called New Service Request, that allows the users to create new records. The function is set to "Allow Images Upload". It works in a sense that the '+' sign does appear on the form and after choosing or taking a photo, the photo pops up on the right side of the '+' sign.

However, when I tap submit, and then view the records list using Mobile Agent, the record is there, but the image is not. I also check the sys_attachment table, and the image I uploaded does not appear in there either. 

How does attachment upload work, and how does it get stored in the app? 

Any help would be appreciated!

 

 find_real_file.png        find_real_file.png        find_real_file.png

1 ACCEPTED SOLUTION

Mike Gemma
Tera Expert

I wanted to add a real resolution to this issue since the link given is broken and I have also been struggling with this.

Image upload only works if the Table field is set, and the Table field is only visible if the context is set to Record.

In the sys_sg_button table where you created the function and selected "Allow images upload", you must change the function context to "Record" and then set the Table to Incident or whichever table you are using.  Save the record.  Then change the context back to "Global" and save again.

View solution in original post

14 REPLIES 14

Hello Joshwa,

 

Thanks for responding.

 

I follow the link, but I can't view the image under the workaround.

 

find_real_file.png

 

 

Here is how my sys_sg_button looks like:

 

find_real_file.png

find_real_file.png

 

The Reference used to be empty. So I changed it into the table that I am using. 

It did not work, so I went ahead and made the Reference to point to sys_attachments table.

 

find_real_file.png

 

But still, the image does not appear when I upload it and submit with a new record.

 

 Also, by any chance could you attach the image in the "Workaround" section of the link that you provided (unless you can't view it either)?

 

Thanks!

Have you found solution for this? I am also looking for same. Image I upload does not get attached to the record I create

Narek
Kilo Contributor

Not yet. I still face the same issue.

Narek
Kilo Contributor

Update:

The issue got resolved by itself. After days of uploading images in the ticket creation and not seeing them in the record, I tried it again, and it started working. 

I am not sure what exactly solved the problem, because I tried it the day before, and it did not work. On the next day, without changing any configuration files, I tried it, and it worked. The new images are now getting uploaded to the sys_attachments table after submitting the new ticket. 

Here are screenshots showing that the feature works.

find_real_file.png

find_real_file.png

 

find_real_file.png

 

 

Here is the state of sys_attachments table before and after the submission of the new ticket with the image.

 

find_real_file.png

find_real_file.png

 

That's cool. Thank you.

Can you confirm if you can auto-set UI parameters with some values?

Let say I have a category field and it should be auto-populated with Inquiry. Is this possible?