I need to programmatically determine the URL of the current form, preferably without adding new dlls to the form template and increasing the trust level.
The XmlLocation query string parameter looks perfect for this, but when I try to retrieve it using
String strSaveLocation = String.Empty;
e.InputParameters.TryGetValue("XmlLocation", out strSaveLocation)
it is empty.
In fact, outputting all the InputParameters shows that for my existing (i.e. already submitted and saved to a library) form, the XmlLocation parameter is not present (even though I see it in the querystring). Instead, there's SaveLocation (even though it's not in the querystring). The value of SaveLocation isn't dynamic - it points to the root folder even when my form is in a subfodler. I want a value that will work even if the form gets moved to a different subfolder.
View Complete Post