阅读 141

Add table for Sharepoint integration with PowerApps Model driven

Add or remove the SharePoint documents tab to the main form for any table

 

Adding a tab on a table main form to display SharePoint documents helps users discover and use the SharePoint integration features that are available in a model-driven app.

Important

To use this feature you must enable document management. More information: 

Add the documents tab in the FormXML

  1. Create a new solution. Sign-in to Power Apps and go to Solutions, select New solution and then enter the required and optional information. More information: 

  2. Add the table to the solution where you want to add the documents tab on the main form. All standard and custom tables are supported. More information: 

  3. Include the form for the table in the solution, such as the main form for the account table. Next to the table, select ..., and then select Edit. Select the Forms tab. If the form you want is missing, add it.

  4. Add a one-column tab to the main form. To do this, in the form designer select an area on the form canvas, select Add Component, and then select 1 Column Tab.

  5. In the form designer select the New Tab on the form designer canvas, select Add Column, and add a column such as Address 1: City from the left pane. You can use any text or numeric column for the tab. 

  6. Rename the tab label. To do this, select New Tab, and in the right properties pane replace New Tab with something more descriptive, such as Files.

  7. Select Save, select Publish, and then close the form designer.

  8. From the Power Apps maker home page, select Solutions, select the solution, and the select Export to export the solution as an unmanaged solution. More information: 

  9. Extract the solution and open the customization.xml file with an XML or text editor.

  10. In the customization.xml search for label description="Files" (or whatever you named the tab label in the previous step).

  11. Scroll down to the control id="field name" element, such as control id="address1_city" and replace the entire element with the  in this topic.

  12. Make these modifications to the XML sample.

    a. Locate the RelationshipName element and replace it with the schema name that appears as entityLogicalName_SharePointDocument. For example, for the accounts table the schema name for the relationship is Account_SharePointDocument, which is the schema name for the XML sample in this topic. To find the name for a different table, go to Settings > Customizations > Customize the System > Tables > select the table > select 1:N Relationships. Locate the Related Table of type SharePointDocument.

    b. Create a globally unique identifier (guid) and replace the existing uniqueid guid located in the control element you pasted in the previous step while preserving the curly braces {}.
     c. Save your changes to customizations.xml.

  13. Open the solution.xml file and increment the Version element value. For example, from 1.1.0.0 to 1.2.0.0.

  14. Package all solution files into a compressed (zipped) folder and import in to your environment. If you receive an error that you must delete the previous solution, do so. More information: 

XML sample for adding the documents tab to a form

XML
 
     
      {0016F9F3-41CC-4276-9D11-04308D15858D} 
      false         
      Account_SharepointDocument
      sharepointdocument 
      Fixed 
      false 
      true 
       
      false 
      Grid 
       
      false 
      false 
      10 
      #F3F3F3 
     
   
">  <control id="DocumentSubGrid" classid="{E7A81278-8635-4d9e-8D4D-59480B391C5B}" indicationOfSubgrid="true" uniqueid="{9cd66b5c-8b7a-6433-c5a5-46a7245dd534}"> 
    <parameters> 
      <ViewId>{0016F9F3-41CC-4276-9D11-04308D15858D}ViewId> 
      <IsUserView>falseIsUserView>         
      <RelationshipName>Account_SharepointDocumentRelationshipName>
      <TargetEntityType>sharepointdocumentTargetEntityType> 
      <AutoExpand>FixedAutoExpand> 
      <EnableQuickFind>falseEnableQuickFind> 
      <EnableViewPicker>trueEnableViewPicker> 
      <ViewIds /> 
      <EnableJumpBar>falseEnableJumpBar> 
      <ChartGridMode>GridChartGridMode> 
      <VisualizationId /> 
      <IsUserChart>falseIsUserChart> 
      <EnableChartPicker>falseEnableChartPicker> 
      <RecordsPerPage>10RecordsPerPage> 
      <HeaderColorCode>#F3F3F3HeaderColorCode> 
    parameters> 
  control> 

Remove the documents tab

  1. Sign in to , in the left pane expand Data, and then select Tables.

  2. Select the table you want, select the Forms tab, and then open the form where the file tab needs to be removed.

  3. Select the Files tab, and then on the form designer toolbar, select Delete.

  4. On the form designer toolbar, select Publish.

原文:https://www.cnblogs.com/lingdanglfw/p/14991807.html

文章分类
代码人生
版权声明:本站是系统测试站点,无实际运营。本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 XXXXXXo@163.com 举报,一经查实,本站将立刻删除。
相关推荐