Hello everybody,
The app I've created uses the AzureBlobStorage connector to save images online.
Our surveyers in the field uses the app on the phone to fill in data and make a lot of pictures. Once everything is saved and uploaded the people in the office uses these information to create a report in an app on the desktop. Almost everything is automated.
In the desktop app the pictures are shown in a gallery and via HTML shown in the report via the concat function and tables.
Thing is that not all pictures should end up in the report. The people in the office should be able to deselect the pictures in the gallery to avoid them to show up in the report. Deleting the photo's is not an option.
Copying the files from one folder to another in Azure Blob is possible but I hope I can do it via metadata.
So, what I want is to add a column in my function AzureBlobStorage.CreateFile which says "Report: Yes".
Then when I collect the pictures in the gallery on the desktop app, this field is shown and editable.
I hope you can help me.
Thanks a lot.
Solved! Go to Solution.
Hi @Anonymous ,
Do you want to add a column in the AzureBlobStorage.CreateFile() function to identify if the picture would be displayed/used within the Report?
Actually, the arguments exposed within the AzureBlobStorage.CreateFile() function is based on the Azure Blob Storage API. If you want to add a column in the AzureBlobStorage.CreateFile() function manually, I afraid that there is no way to achieve your needs in PowerApps currently.
As an alternative solution, I think the Checkbox could achieve your needs. On your side, you could consider add a Checkbox within the Gallery (display your pictures), and then if you want to include pictures in your Report, please select the corresponding Checkbox within the Gallery Item.
I have made a test on my side, please take a try with the following workaround:
Select the corresponding Checkboxes for these pictures you want to show in your Report within your Gallery, then when you want to filter the selected pictures within your Gallery, please consider take a try with the following formula:
Filter( Gallery1.AllItems, Checkbox1.Value = true )
After that, you could concatenate the pictures into your Report based on above filtered table using Concat function:
Concat( Filter( Gallery1.AllItems, Checkbox1.Value = true),
.... )
Please consider take a try with above solution, then check if the issue is solved on your side.
Best regards,
Hi @Anonymous ,
Do you want to add a column in the AzureBlobStorage.CreateFile() function to identify if the picture would be displayed/used within the Report?
Actually, the arguments exposed within the AzureBlobStorage.CreateFile() function is based on the Azure Blob Storage API. If you want to add a column in the AzureBlobStorage.CreateFile() function manually, I afraid that there is no way to achieve your needs in PowerApps currently.
As an alternative solution, I think the Checkbox could achieve your needs. On your side, you could consider add a Checkbox within the Gallery (display your pictures), and then if you want to include pictures in your Report, please select the corresponding Checkbox within the Gallery Item.
I have made a test on my side, please take a try with the following workaround:
Select the corresponding Checkboxes for these pictures you want to show in your Report within your Gallery, then when you want to filter the selected pictures within your Gallery, please consider take a try with the following formula:
Filter( Gallery1.AllItems, Checkbox1.Value = true )
After that, you could concatenate the pictures into your Report based on above filtered table using Concat function:
Concat( Filter( Gallery1.AllItems, Checkbox1.Value = true),
.... )
Please consider take a try with above solution, then check if the issue is solved on your side.
Best regards,
Hi @v-xida-msft ,
thank you for your reply.
Since it is not possible to add a column to the createfile function, I think this is a very neat solution.
I tried it, it worked!!
Thanks.
User | Count |
---|---|
239 | |
116 | |
94 | |
58 | |
32 |
User | Count |
---|---|
286 | |
132 | |
106 | |
63 | |
57 |