Find Infopath URL

dgoldie
dgoldie used Ask the Experts™
on
Hi,

I would like to store the URL of each individual xml doc in a field. The value of this field would be accessed by another form via a data connection dependent on certain criteria. So for example if I have a list of country flags saved onto a xml doc, when I opened the country information form there would be a button coded to perform a lookup and open the corresponding form containg the flag. A fiarly simplistic example but the main reaon I'm trying to find a way of directly accessing the form url is because using concat() is creating errors when some of the file names contains "&" or spaces.

What I'm really asking therefore is there a way of accessing the Address (URL) value that is displayed on the properties form of each individual xml form? (see image)
URL.bmp
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Director of Business Integration
Commented:
If you save the XML in SharePoint you can query the document library and get this. Just add a receive connection to the library and you can see every form in the library and build a hyperlink with this data.

If you are using submit so that the location and naming is controlled, you know the path when it is saved.  What I often do is have a field in the schema of the XML which has that path and then I use that to build a link in the form. You can promote this if you want as a column.

If you have funky characters that concat breaks on you are going to have issues either way and you should just not allow special characters to be used. You can use validation to fins them.

Author

Commented:
Ideally I would have liked to avoid having to build the url, was hoping there was a system field that could accessed. Unfortunatly I can't get around the funky character side of things so instead I've decided to add the url's manually, initially I was fixed with the idea of using some sort of lookup or concatenation to populate the URL field but because there is a finite number of forms that will remain relatively static once created I am able to live with the manual option.

Author

Commented:
This answer doesn't actually show me how to do what I was trying to do but does show me that it can't be done the way I was trying to do it and I would have to except a compromise - although it may be a case of digging a bit deeper to find that it is possible.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial