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.
