GALERIA EDITÁVEL ESTILO EXCEL NO POWER APPS! #powerapps #excel

GALERIA EDITÁVEL ESTILO EXCEL NO POWER APPS! #powerapps #excel

Editing Data in Power Apps Gallery

Introduction to Power Apps Gallery

  • The video introduces the process of editing data directly within a gallery in Power Apps, resembling an Excel layout with rows and columns.
  • Viewers are encouraged to like and subscribe to the channel for more content.

Adding a Gallery

  • The presenter demonstrates adding a vertical gallery by navigating through the insert menu and selecting the gallery option.
  • A SharePoint list named "testes" is chosen as the data source for the gallery, which is already connected to the app.

Customizing Gallery Layout

  • The presenter adjusts the model size of each row in the gallery to 40 pixels for better visibility.
  • An input text field is added with an outline style for improved visual clarity.

Displaying Data from SharePoint

  • The default value of the input text field is set to display titles from the connected SharePoint list.
  • Two methods are introduced: using a collection or updating records directly in SharePoint when editing.

Using Collections for Data Management

Creating a Collection

  • Upon page visibility, a collection named "registros" is created using ClearCollect, pulling data from the SharePoint list.
  • The collection successfully captures all records from SharePoint, allowing users to view them within Power Apps.

Updating Records in Collection

  • When changes are made in the input field, updates are applied to both the collection and corresponding records based on their IDs.
  • The Patch function is utilized to update specific fields within the collection dynamically as users edit entries.

Saving Changes Back to SharePoint

Implementing Save Functionality

  • A button labeled "Save Changes" is added; clicking it triggers an update of all modified records back into SharePoint using Patch.
  • Notifications confirm successful updates after saving changes, ensuring user feedback on actions taken.

Handling Read-only Columns

  • Issues arise when attempting to edit read-only columns from SharePoint; adjustments must be made during data retrieval.

Filtering Columns for Updates

Adjusting Column Selection

  • To avoid errors related to read-only columns, only necessary columns (ID and title here), are selected during collection creation by enabling explicit column selection features in settings.

Direct Updates Without Save Button

Streamlining Edits

  • A second method allows direct edits that automatically update records in SharePoint without needing a save button. This involves modifying how changes trigger updates via Patch.

Enhancing User Interface

Adding Additional Fields

  • Users can add various types of fields (e.g., combo boxes for user selection or date pickers), enhancing functionality similar to Excel's structure.

Final Testing and Validation

Validating Functionality

  • After implementing various fields, testing confirms that selections correctly reflect updates back into SharePoint.

Turn any video into a summary like this

YouTube links, meetings, lectures. With transcripts, search, and chat.

Video description

Aprenda neste vídeo como transformar uma galeria do Power Apps em um formulário editável, parecido com uma planilha do Excel! Ideal para quem quer atualizar registros diretamente na tela, de forma simples e dinâmica. Você vai ver como configurar os campos, usar variáveis de contexto e salvar as alterações no seu banco de dados (SharePoint, Dataverse ou Excel). *TODA SEXTA-FEIRA VIDEO NOVO NO CANAL! * Siga nossas redes sociais: Instagram: @elephantine.consultoria LinkedIn: Elephantine Consultoria Blog: www.elephantine.com.br/blog-elephantine #powerplatform #project #microsoft #powerautomate #powerbi #powerapps