Jump to content

Button filter automatic


---
 Share

Recommended Posts

---
Dear the community,

I have some problems with PiWeb Designer, with a ProcessProtocol. I want to add a button which applied a filter like measurement attribut but directly on the report which is show after a program

For example :
We produce the same piece on 3 machines name : A / B / C.
We measure all pieces with one MMT. When we measure, we enter the machine name in ahead data
6241_3cdb42732d3d411c3e3d19f916b46f4d.png
When i see the processprotocol, i would clic on button "A" or button "B" or button "C" which filter the measure by the attribut previsouly mentionned
6241_0c34dd5f2b0413408fba824b1ea2e359.png
Someone can help me ??
Link to comment
Share on other sites

  • 3 weeks later...
---
Hello,
If I am understanding you correctly, here is one way to accomplish this.

First, create a favorite measurement selection for each of the machines you wish to filter by. To do this, set your measurement selection, click the star shaped button, and select create new favorite. In the image below, I show how to do this for a machine in my database named Mill C.
4639_cd63cecab8ea3e2f7548f0f95aa449d6.png
I have also done this for a machine named Mill B. I now have two favorites, one named Mill B and one named Mill C.

Now, place a button in the header of the protocol, which I see that you have done. Navigate to the properties of the button and click on hyperlink. By default, there should be the label "None". You can also set the displayed text of the Button.
4639_9ac6174f05ed96f7a203eed12a1f220e.png
In the hyperlinks menu, add the action "Open Page". Set the page to open as the SPC table page (or whatever page it is you want to apply the filter to). Then, click the checkbox next to "Apply measurement selection to target page" and choose the option for "Apply from favorites". Then select one of the favorite measurement selections that you made.
4639_4ef1bfbc37152f588ccc7758f447f0e7.png
Add a second action to the button, below the Open Page action. This time, choose the "Fetch Data" action. You can choose to have the data fetch occur for only the current page or for every page in the report. I have chosen the select only the current page for this example.
4639_4eb67f5f47575c1a14c16ba3ed28d50d.png
Repeat these steps for each of the machines that you want to create a button for. Now the header of your report has two buttons, clicking on either will open the page you are on, apply the filter, and fetch the appropriate data.
Link to comment
Share on other sites

 Share

×
×
  • Create New...