Sharepoint列表超链接列 – 在PowerApps中获取替代文本

huangapple go评论77阅读模式
英文:

Sharepoint List Hyperlink Column - get Alternative Text in PowerApps

问题

SharePoint列表中有一个超链接列,允许我们快速链接到IT帮助台系统。超链接列允许URL和替代文本一起显示。这使SP列表看起来更整洁,因为您只看到IT工单号,而不是完整的URL,但它仍然可以点击。

在PowerApps中,我想在画廊中显示替代文本,但我只能成功地使用ThisItem.'SN Ticket Link'来获取完整的超链接。

请问如何显示替代文本?

谢谢!

英文:

I have a SharePoint list, with a Hyperlink column allowing us to quick link to our IT Helpdesk system. The hyperlink column allows for the URL and also alternative text to display. This makes the SP List look cleaner as you're just seeing the IT Ticket Nr rather than the full URL, but it's still clickable.

In PowerApps I would like to get that Alternative Text to display in a gallery, but I can only successfully pull through the full hyperlink using ThisItem.'SN Ticket Link', which is the column name.

How do I show the Alternative Text instead please?
Thanks

SharePoint List hyperlink column:
Sharepoint列表超链接列 – 在PowerApps中获取替代文本

PowerApps Result:
Sharepoint列表超链接列 – 在PowerApps中获取替代文本

PowerApps Code:
Sharepoint列表超链接列 – 在PowerApps中获取替代文本

答案1

得分: 2

抱歉,SharePoint连接器未返回替代文本,因此无法在Power Apps中显示(见下文)。一个替代方法是将该列拆分为两个,一个包含URL本身,另一个包含替代文本(也许可以通过在SharePoint中创建一个新的计算列来完成,但我不确定是否可能 - 这将是一个关于SharePoint标签的好问题)。

要查看来自SharePoint的响应,您可以使用Power Apps监视器,在其中您可以查看应用程序的网络请求和响应:

Sharepoint列表超链接列 – 在PowerApps中获取替代文本

英文:

Unfortunately the alternative text is not returned by the SharePoint connector, so it cannot be displayed in Power Apps (see below). An alternative would be to split that column into two, with one of them containing the URL itself, and a second one with the alternative text (maybe it can be done with a new calculated column in SharePoint, but I don't know if this is possible - this would be a good new question for the SharePoint tag)

To see the response from SharePoint, you can use the Power Apps Monitor, in which you can see the network requests and responses from the app:

Sharepoint列表超链接列 – 在PowerApps中获取替代文本

huangapple
  • 本文由 发表于 2023年2月14日 20:07:08
  • 转载请务必保留本文链接:https://go.coder-hub.com/75447617.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定