cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
s5B
Helper I
Helper I

How to create file add button from computer.

Hello, I want to create a button where I can load an excel file from the computer and use it in databases, how can I do this?

https://www.youtube.com/watch?v=Pa-pYEkLH-U

I saw this video, but I couldn't find the attachment even though I did it as mentioned.

Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
StalinPonnusamy
Super User
Super User

Hi @s5B 

 

Please let me know if any help with this post.


Please do not forget to give kudos if you find the suggestion helpful or Accept it as a solution if works fine to help other users to find it useful.

 

View solution in original post

2 REPLIES 2
StalinPonnusamy
Super User
Super User

Hi @s5B 

 

Attachment control does not exist on the controls list. So we need to hack the system to get control.

 

  • Insert New screen
  • Insert "Edit Form" control
  • Set Datasource (Any Sharepoint list)
  • Select the form
  • Go to "Edit Fields" on the right-side properties
  • Fields pop-up will display
  • Click "Add field" and Select "Attachments"
  • The form should display attachment control
  • Copy the attachment control and place it in the desired place (New screen)
  • Remove/Update few properties
    • Bordercolor to Balck
    • Remove Items
    • Update Tooltip to ""
    • Update DisplayMode to DisplayMode.Edit
    • Write your desired code on "OnAddFile"

 

Now you can control to add file(s).

 

StalinPonnusamy_0-1630935678474.png

 

StalinPonnusamy
Super User
Super User

Hi @s5B 

 

Please let me know if any help with this post.


Please do not forget to give kudos if you find the suggestion helpful or Accept it as a solution if works fine to help other users to find it useful.

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (1,612)