I’m trying to bring the picture from the camera library action to a custom state and it does not seem to want to do that. Has anyone ran into this yet? On the workflow I have press a button, open camera library, set state image result of step 1 camera library
the image is being saved but it is not refreshing the image element on the sheet
The same issue for me and especially with lists of images uploaded from gallery. But sometimes it happens also for single captured image from camera
@nick.carroll seems to be an issue
do you mind sharing more details on your setup? The following steps worked for me:
- add an image element onto a view
- add a custom state of image type to the view
- set the data source of the image element to the view state
- add a button to launch the photo library and set the sate with step of 1’s upload photo
The photo uploads and is saved but it does not refresh the image element
Im using a non-scrollable sheet at the moment
What is the custom state set on? The sheet?
yes on the sheet. its a sheet on top of a modal at the moment
Oh interesting. My sheet opens behind the modal view but just testing on a sheet on a normal view, it works as expected
so i have a job details view / click location information button → go to location info view in modal → click equipment and a sheet for equipment shows, a button to add equipment shows a new sheet, this is the sheet that is not showing the image properly.
Is there a reason you are using a custom state as the image data source instead of the image in the database?
I wanted to store the image before creating the thing so that when someone cancels you dont have to delete the empty thing. I have tried both ways though and the image still does not refresh once you upload a picture
Makes sense. Thats super weird its not showing up though, should be no reason why unless its because the number of sheets?
Yeah im not sure but only one sheet can be displayed at once it looks like. So its just the one sheet open.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.