Hi, I have created a simple BAQ and dashboard that lists part numbers and their manufacturing comments, and that takes PartNum as the parameter. I have put this dashboard as a context menu option when right-clicking on a PartNum, however when I do it does not pull through the part number and show the comments for it, I still have to refresh the dashboard and manually enter the part number.
Is there a way to have the dashboard automatically pull in the PartNum when selected on context menu and display the manufacturing comments? Thanks in advance!
Below is a picture of the dashboard:
Yes, however it’s not quite that simple, unless there is something I am unaware of,
which is of course always possible.
The “Open With” functionality works by passing values from the parent to the child or sibling form
via LaunchFormOptions. The data you want will either be passed via an object you can
pub/sub to, or pull in code inside your form.
You’ll have to handle what you do with it from there in code.
Parameters in dashboards can be tricky, may want to either nix it, and add filters, or just add a grid
to a udform and call the BAQ yourself with the info you get from the open with launchformoptions.
Thanks for the info! Is it possible to add a filter to a dashboard then and get context menu to pull in PartNum that way, or is that equally complicated?
You could use @josecgomez method for pub/sub and set the filter and then refresh programatically.
It’s not super complicated, but I can see how it would look that way at first glance.
Now that he’s pinged, he might drop some words of wisdom on us.