InfoPath - 在表单加载时更改REST URL [英] InfoPath - Change REST URL on form load

查看:66
本文介绍了InfoPath - 在表单加载时更改REST URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在尝试在表单加载时使用"更改REST URL"规则,但是当表单打开时它似乎仍无法使用旧的REST URL。

I am trying to use the 'Change REST URL' rule on form load but it does not seem to work when the form opens it is still using the old REST URL.


我已使用网址配置数据连接以使用REST Web服务 - https:// ***** / **** / *** / _api / web / lists / getbytitle('Requests')/ Items(569)

I have configured the data connection to use REST Web Service using the url - https://*****/****/***/_api/web/lists/getbytitle('Requests')/Items(569)


这似乎可以正常工作,因为它为项目569提取了正确的数据。

and this appears to work as it pulls the correct data for Item 569.


但是我在表单加载时使用"更改其余URL"操作来获取当前项目但它不起作用(它仍然显示项目569的数据)。

However I am using a 'Change Rest URL' action on form load to get the current item but it doesn't work (it is still showing the data for item 569).


我甚至尝试使用以下网址更改规则以获取我知道存在的另一个项目 - "https:// **** / **** / **** / _api / web / lists / getbytitle('Requests')/ Items(625)"。这应该获得项目625的详细信息,但它没有,它仍然显示569的
数据。

I even tried changing the rule to get another item which i know exists using the following URL - "https://****/****/****/_api/web/lists/getbytitle('Requests')/Items(625)". This should get the details for item 625 but it does not, it still shows the data for 569.


我不认为规则是在页面加载时被调用但我不确定如何检查。

I don't think the rule is getting called on page load but I'm not sure how to check.


谢谢

推荐答案

尝试从本地计算机清除此缓存文件并试一试:

Try to clear this cache file from your local machine and give it a shot:

C:\ Users \ [Users] \ AppData \ Local \ Mysoftoft \ OffoPath \FormCache4

C:\Users\[Users]\AppData\Local\Microsoft\InfoPath\FormCache4

一些GUID不是父文件:) 

File with some GUID not parent file :) 

希望这有帮助


这篇关于InfoPath - 在表单加载时更改REST URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆