Giter Site home page Giter Site logo

pcf-attachmentsgrid's Introduction

PCF - Attachments Grid

A custom PCF control developed by Josh Hetherington and Ben Bartle using the PowerApps Component Framework. This is designed to offer a better UX than the standard notes pane for viewing attachments.

You can simple drag and drop one or multiple files into the attachments grid and they'll automatically be added to the notes.

Pre-requisites

In order to build and deploy these to your CDS instance you'll need the following:

If you want to deploy this and test it you'll obviously need some sort of PowerApps/Dynamics 365 license and instance. Grab a trial from here.

Building & Debugging

Once you've grabbed the code, navigate to the correct folder for the component you want, and run the following command from the terminal:

npm install

This will install all the dependencies (and make take a minute or two). Then run:

npm run start

This should bootstrap the component and run the harness to allow you to see the component running and debug if required.

Usage

Simply add any field to the Form, and configure it to use the control. It doesn't really matter what the field is as the control only uses the supplied ComponentFramework.Contextto grab the entity id and entity logical name. Your entity will need to support attachments (obviously) for this to work.

Then drag your files onto the control and they'll be uploaded and the grid will refresh.

Contributing

This is still very much a work in progress, and we would like to investigate the following:

  1. Better CSS Styling, if anyone has any recommendations, interested in working with Microsoft's Office Fabric when it becomes more available
  2. Better error handling for loading the control on an un-saved record, and for records which don't support notes
  3. Tests!

Just fork the repo, create a feature branch for your change and send us a PR.

pcf-attachmentsgrid's People

Contributors

benlbartle avatar powerappsdev avatar rwilson504 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.