电源应用程序:在按钮单击后,在数据表中显示存储的过程数据

发布于 2025-02-07 23:27:58 字数 587 浏览 2 评论 0原文

我刚刚开始使用Power Platform(Power Apps)。我最近尝试在数据表中查看数据(通过Google表格),该数据表通过将(Google Sheets的数据源)(Google Sheets的数据源)附加到数据表中正常工作。

现在,我要做的是:

  1. 我在测试应用中添加了一个按钮

  2. ,在成功添加SQL Server数据源

    之后,我正在执行一个存储过程。
  3. 在该按钮的OnSelect上,成功添加SQL Server Data Source

    我在OnSelect中编写的代码

      myStoredProcdataonButtonClick.run()
     
  4. 现在,在调用此事件之后,我想在数据表中的存储过程调用中显示结果数据

  5. 中展示来自存储过程的结果数据,我无法看到数据源(对于该存储过程)

如何实现?

任何帮助/建议将不胜感激。

注意:我为此创建了一个从电源应用程序来执行按钮单击的存储过程的流程。

I have just started using Power Platform (Power Apps). I recently tried to see data (via Google Sheets) in a data table which worked fine by attaching a data source (of Google Sheets) to a data table.

Now, what I am trying to do is:

  1. I added a button in my Test app

  2. On that button's onSelect, I am executing a stored procedure after successfully adding a SQL Server data source

  3. The code which I wrote in onSelect is this:

    MyStoredProcDataOnButtonClick.Run()
    
  4. Now, after this event is called, I want to showcase the result data from the stored procedure call in a data table

  5. In the data table, I am unable to see the data source (for that stored procedure)

How can I achieve this?

Any help/suggestions would be appreciated.

Note: I created a flow for this from Power Apps to execute a stored procedure on button click.

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

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

发布评论

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

评论(1

余厌 2025-02-14 23:27:58

将SQL连接器添加到PowerApp。创建您需要的记录集合。

示例:

ClearCollect(colData,
    Filter(SQL_TABLE,
        whatever_column = whatever_value
    )
)

将画廊的属性设置为 coldata。将一些标签控件添加到图库模板中,以显示要显示的数据。就像@strattonn所说,SQL连接器是优质的。尽管检查 powerApps许可证指南并搜索“多路复用”。您当前的PowerApp-Flow-Flow-to-SQL Workflow 可能已经要求所有PowerApps用户获得优质许可。

Add the SQL Connector to the PowerApp. Create a collection of the record(s) you need.

Example:

ClearCollect(colData,
    Filter(SQL_TABLE,
        whatever_column = whatever_value
    )
)

Set the Items property of a Gallery to colData. Add some Label controls to the Gallery template for the data you want to show. Like @strattonn said, the SQL Connector is premium. Though check the PowerApps license guide and search for "multiplexing". Your current PowerApp-to-Flow-to-SQL workflow may already require all of your PowerApps users to be premium licensed.

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