I have an InfoPath form with QRULES. it is an expense report form. it loads the items in a section above- you click the button beside each item you want to add it and it fires off rules to add the values to fields below. when it is first loaded and you can see the items from which to choose, their is a URL field for the attachment. the hyper link works. it looks like this:
https://mysharepointsite/Accounting/documentation/Lists/Expense%20Receipts/Attachments/302/01-22-2014%20122621.jpg
here is the command that runs when the button is pressed:
concat("SetValue /xpath=/my:myFields/my:receipts/my:Receipt[", count(xdXDocument:get-DOM()/my:myFields/my:receipts/my:Receipt), "]/my:Link /value=", d:Attachments/attachmentURL)
here is the result when its added to the below section:
https://mysharepointsite/Accounting/documentation/Lists/Expense Receipts/Attachments/302/01-22-2014 122621.jpg (SPACES !!)
it has spaces rather than %20.
HOW do I get the QRULES command to the correct ULR in the field below when it runs??