I am trying to query a SharePoint 2013 list from InfoPath 2013 WebForm. I took the reference from
johnliu’s blog.
1. Created a Data connection
“Rest_Equipments” to query the list using following filter
http://MyURL /_vti_bin/listdata.svc/Equipment_No?$filter=Unit%20eq%20'UNIT00-EOH'
2. Created one more “list” data connection called
“Units” to bring “Unit numbers” for lookup from SharePoint list
3. Created a Drop-Down List box “Unit Number” to show the available Unit numbers using
Units data connection
4. On selection of “Unit Number” created following rule to change the Rest URL & query
i.
concat("http://MyURL/_vti_bin/listdata.svc/Equipment_No?$filter=Unit%20eq%20'", Unit Number, "'")
ii. Query using data connection “Rest_Equipments”
5. Created a Drop-Down List box which is fetching “Equipment Number” from External data source
“Rest_Equipments”, this should bring the result as per 4. -> i.
It works as expected in the InfoPath Designer preview, but it does not return any results after publishing & opening it in browser, and there is no error as well. Can someone point at what may be going wrong here?
Thanks in Advance