Power model driven选项卡中添加SharePoint

官方文档:https://learn.microsoft.com/zh-cn/power-apps/maker/model-driven-apps/add-documents-tab-entity-main-form

1、创建一个解决方案,里面只放需要改的表和它的窗体其他都不要加。

2、打开窗体添加一个选项卡并增加一个字段

要此表有和SharePoint的关系

 

 

 

 在这里勾上需要的表以增加关系(这里用了case)然后选择存储路径(以个人还是公司存储)

 

 

 

将解决方案导出来,非托管

 

在vscode中打开,并找到刚刚添加的选项卡

 

 将“control”标签替换

代码中替换标签与id

RelationshipName写关系名
uniqueid=其他id
复制代码
<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>false</IsUserView>         
      <RelationshipName>Account_SharepointDocument</RelationshipName>
      <TargetEntityType>sharepointdocument</TargetEntityType> 
      <AutoExpand>Fixed</AutoExpand> 
      <EnableQuickFind>false</EnableQuickFind> 
      <EnableViewPicker>true</EnableViewPicker> 
      <ViewIds /> 
      <EnableJumpBar>false</EnableJumpBar> 
      <ChartGridMode>Grid</ChartGridMode> 
      <VisualizationId /> 
      <IsUserChart>false</IsUserChart> 
      <EnableChartPicker>false</EnableChartPicker> 
      <RecordsPerPage>10</RecordsPerPage> 
      <HeaderColorCode>#F3F3F3</HeaderColorCode> 
    </parameters> 
  </control>
复制代码

修改版本号上传

上传后的效果

 

posted @   整只龙虾  阅读(63)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
点击右上角即可分享
微信分享提示