In powerapps I have a gallery with the attachments of the item, how do I remove them individually?
gallery filter:
LookUp(
'List of administrative procedures';
ID = Editable element. ID
) .Attached files;
delete button that doesn't work
Remove (
LookUp (
'List of Administrative Procedures';
ID = ElementEditable.ID
) .Attachments;
ThisItem
)
Solved! Go to Solution.
Hi @King :
Could you tell me what your datasource is?Is it SharePoint?
Do you want to delete the attachment selected by the gallery?
In theory, if you need to add or delete attachments, you should use the edit form control and submitform function.(Because the attachments control can only be used in the form).
I suggest you try these steps:
1\add an edit form(Form2)
DataSource
'List of administrative procedures'
Item
LookUp(
'List of administrative procedures';
ID = Editable element. ID
)
2\add a button and set it's OnSelect property to:
SubmitForm(Form2)
I think this link will help you a lot:
Best Regards,
Bof
HI,
It would be easier to use SharePoint and use the attachments field to do this all the heavy lifting is done by SharePoint and can add or remove as you want.
Hi @King :
Could you tell me what your datasource is?Is it SharePoint?
Do you want to delete the attachment selected by the gallery?
In theory, if you need to add or delete attachments, you should use the edit form control and submitform function.(Because the attachments control can only be used in the form).
I suggest you try these steps:
1\add an edit form(Form2)
DataSource
'List of administrative procedures'
Item
LookUp(
'List of administrative procedures';
ID = Editable element. ID
)
2\add a button and set it's OnSelect property to:
SubmitForm(Form2)
I think this link will help you a lot:
Best Regards,
Bof
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
247 | |
122 | |
84 | |
83 | |
67 |