I’m back to working on the barcode scanning from before (But I’m smarter than I was back then, so hoping for success this time). You can see some of the history in this thread.
I still don’t have the skill, and really don’t like the drawbacks anyways for trying to make a listening system for barcodes. I have a prototype dashboard working where I can click in a field, scan the barcode, then the C# code that @fredmeissner posted to split the string into parts and populate the filters and refresh. That works pretty good except for the fact that there is this text box that I have on the screen that people can type stuff into and fires my event on field leave, so it’s too easy to tab through the dashboard or accidentally type something in that field, or confuse the end user to know that they have to click in that field… etc.
So workaround that I would like to implement is a button that pops open a BPM form so it’s more clear to the end user that if he needs to scan something, he clicks the button, then a screen opens up and I can control the focus so that the text box is selected, they can scan, and the scanned string can be stored in BPM context and distributed after form close. Here are a couple of threads that talk about calling BPM forms. Neither with any definite solutions.
So I would like to know if anyone has any good tricks for hanging a BPM form off of some event that works well with an on demand button. My current theory is to try to call the form on a dummy BAQ, and I guess call it with a DynamicQueryAdapter, but I haven’t tried it yet, and I figured if anyone else had a creative solution I’d be all ears.
As I’m typing this, I’m wondering if I can call a custom action from my base dashboard, since I could make this an updateable dashboard anyways?
So I’m getting the custom action set up, is the link for the custom action the name of the base processing BPM for RunCustomAction? I got it working, but it seems like one of those “magic string” type linkages and I get warned about all of the time. I just want to make sure I understand the mechanism that I am using.
One more question (for now anyways), do custom actions always have to be called through code then? I was sort of expecting these to show up in the actions menu of a deployed dashboard, but it doesn’t. Is that expected behavior?
Any slick ideas on how to do this? Should I just look at customizing the parameters form? Can I do that? I’ve seen where I can get in and customize it, but I don’t know how to apply it. I would imagine that I have to set the customization in the Processes section of the Menu Maintenance?
Although it is technically possible to customize the parameter screen I don’t think that’s going to be too fisible. Why not just take the parameter as a whole string and “parse” it in your BAQ?
Meaning wherever you are using your param in your BAQ use an expression to get the pieces you need.
so basically call the same parameter in an expression for each criteria in the BAQ and then have the expression grab the requisite piece? That could work. Good idea.
Back to the customize the parameter screen, what makes that difficult? Is it applying it? The customization screen seems to work fine, it was just not knowing how to make it work without customization mode.