如何使用PowerApps更新两个SP列表项目

发布于 2025-02-02 03:24:20 字数 382 浏览 3 评论 0原文

我们想将2个SharePoint列表连接到一个PowerApps画廊。因此,以SP列表1的形式以表1中的形式编辑,然后用SP列表2进行编辑。title列表1和列表2中的列是相同的。

画廊列表显示“ Gallery.ceed”过滤器是:

SortByColumns(
  Filter(
    [@BICT_DATA_KLANTEN_MAIN]; 
    StartsWith(
      Title; 
      ZOEKBALK_BICT_DATA_MAIN.Text
    )
  ); 
  "Title"; 
  If(
    SortDescending1; 
    Descending; 
    Ascending
  )
)

We would like to connect 2 Sharepoint lists to one PowerApps gallery. So editing in in Form 1 with SP list 1, and then editing in Form 2 with SP list 2. The Title column in List 1 and List 2 are the same.

The gallery list is showing "Gallery.Selected" the filter is:

SortByColumns(
  Filter(
    [@BICT_DATA_KLANTEN_MAIN]; 
    StartsWith(
      Title; 
      ZOEKBALK_BICT_DATA_MAIN.Text
    )
  ); 
  "Title"; 
  If(
    SortDescending1; 
    Descending; 
    Ascending
  )
)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

寒江雪… 2025-02-09 03:24:20

我很难简洁地回答这个问题。有很多因素在起作用。要将两个SharePoint列表连接到单个画廊控件,请将列表组合到一个集合中。

示例:

ClearCollect(colCombined,
    SPList1,
    SPList2
)
  • 将添加到项目画廊的属性。
  • 但这将添加两个SP列表中的所有记录。
  • 可能由于不必要的列,数据大小等而不想要此。

考虑到您提到的表单控制的形式,请对List1和List2之间的关系进行一些思考。我想您想要一个标题 - 详细信息 - 型的关系。

也许对您有用...

Its difficult for me to answer this question succinctly. There are SO many factors at play. To connect two Sharepoint lists to a single Gallery control, combine the lists into a single Collection.

Example:

ClearCollect(colCombined,
    SPList1,
    SPList2
)
  • Add colCombined to the Items property of the Gallery.
  • But this will add ALL records from both SP Lists.
  • You likely don't want this because of unnecessary columns, size of data, etc.

Considering the Form controls you mentioned, put some thought into the relationships between List1 and List2. I'm imagining you want a Header-Details-type of relationship.

  • Personally, I remove the Title column from Sharepoint lists then use a recordGUID column. Its more intuitive for me and others that come after me to maintain the app. "Title" says nothing about "ID key needed to relate lists".
  • Research the PowerApps GUID() function. You'll want to populate the recordGUID column of both lists when creating new records.
  • There is a 1-2hr class worth of nuance involved in creating a Header/Details type of application. From the UI to the Sharepoint best practices to the PowerFX code.

Maybe useful for you...
enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文