I'm currently working on a large InfoPath project and need to write code to programatically modify receive data connections. I have successfully modified the FileQueryConnection.FileLocation but the SharepointListQueryConnection.SiteUrl is set to read-only. Very frustrating.
Does anyone know a way around this? Or, is there a way to programmatically create the entire SharepointListQueryConnection on the fly in code?
Thanks.