This works for Job Traveler because the system has a “validateFilter.Jobs” process that it runs.
If you’re just using a BAQ report, its not so friendly.
I was able to hack around it, if you’re interested. Unfortunately, I couldn’t get it to right-click paste insert… but I COULD get it to work with CTRL+V.
You’ll need a custom layer on your BAQ Report Form.
I added a custom textbox where a user could paste in their excel values. We need a “Paste Here” text box because we need to modify the list coming from Excel (or other sources):
I gave the textbox an ID of Filter1PasteInsert… and then bound that to TransView.Filter1Paste.
I then created an event:
Trigger is onBlur of that added textbox
Row-Update #1: I’m taking my pasted value from TransView.Filter1PasteInsert and cleaning that up. When you paste in from excel, it contains carriage returns, line feeds, etc. So, the row update is going to take your pasted value and write the new value to a second TransView field I called “CleanFilter1”
Here is my full expression:
"{TransView.Filter1Paste}".split("\\r").join("~").split("\\n").join("~").split(" ").join("~").replace(/~~+/g,"~").replace(/^~|~$/g,"")
The end result SHOULD be a tilde (~) delimited list.
ON SUCCESS of that row-update… perform Row-Update #2
This one takes the “cleaned” tilde delimited list from TransView.CleanFilter1 and passes that value to ReportParam.Filter1.
Here’s the preview results… I pasted in (3) values copied from Excel. The row updates turned that into a tilde delimited list… and the ReportParam.Filter1 accepted those as individual values.
Again… not pretty… but if your users are “paste-dependent”… it will work.
