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>
修改版本号上传

上传后的效果

浙公网安备 33010602011771号