Does anyone know if how I might go about calling a Form from a custom button in the client? I know how to call the form and even fill in info, but the info I need is part of something else. So for example, here is the code behind the button:
"C:\Program Files\Internet Explorer\iexplore.exe" "http://servername/Forms/VATS-Invoice?invvendoraccountno=1234"
This works just fine, it passes 1234 to the form field invvendoraccountno. However what we want to pass is not hardcoded it is a variable in the foldername. So replace 1234 with %(FolderName)
However the number we want to pass is the last part of the name. Here is a sample folder name:
Awarded: 3/2/2016, 1000.00, 1000.00, 1600000038
I want the 1600000038 and not the whole thing. It does not seem I can do pattern matching or token edits from inside the custom button screen. I need to pass this number to the Form and the Form will then do a lookup off this number and fill in many of the fields.
I did do a workaround a created a Business Process. This workflow simply retrieves the field information on the folder (it is there as well as the in the name), does an Invoke Business Process activity to the Form we want, and passes everything along and creates the task for the Initiator. However it does not launch the Form. Our client wants the button to open up the Form and all the business process can do is create the task for them.
Any ideas or would this be some kind of custom program?
I suppose I could pass the whole thing to a hidden field and then use jquery to get that number and pass it to another field... Was wondering if there was something a touch easier.
Thanks,
Chris