Jump to content

Input Parameters / PiWeb Report


---
 Share

Recommended Posts

---

Hi all! Wondered if anyone could assist with editing and getting the Input Parameters to show correctly in my PiWeb report. I am running Calypso 2020 and was able to get my Input Parameters updated to what I want (although I don't know how to change the order if it is possible). Now that I run a part and expect it to show up in the report, it isn't showing up. I added it to the UserFields Editor and set it as example SAP Lot Number with a name of u_saplotnumber.

Then when I go to the report and edit it, I add the title SAP Lot Number and do a right click, Variable, Data Provider, General, Name-Value Pair and I type "u_saplotnumber" but it still doesn't work when I spit out a report. Any advice? I'll attach some snips that I took of what I have done and what I am doing. Thanks all!

piwebreport.png

reportwithtext.png

inputparameters.png

userfields.png

Link to comment
Share on other sites

---

I'm not a fan of doing it this way. Go to the Mapping settings in the UserFields Editor, and drag each of your variables into a blank field. Pay attention to the K field that it assigns it to. 

image.png.2c44749a34e052733494825985abde33.png

Now in your text field just set it to the respective K field. 

${Qdb.Measurement(20001, -1)}

 

  • Like! 1
Link to comment
Share on other sites

---

Also another main reason for mapping them is that if they are mapped, then you can sort for them inside of PiWeb. 

Link to comment
Share on other sites

---

Please sign in to view this quote.

Thanks for this Richard! I had already dragged them over into the Mapping section but didnt realize that it was giving me the K value to enter into my PiWeb report. Also, if you are saying you aren't a fan of doing it this way, is there an easier or better way for me to do this that might be easily explained? If not, I'll give this a try and see if it gets me up and running with a custom report finally! 🙂

Link to comment
Share on other sites

---

Please sign in to view this username.

 I meant I'm not a fan of using the QDB.Property way. 

  • Like! 1
Link to comment
Share on other sites

---

If I am reading this correct, and mind you I might not be, I think you have an extra set of quotation marks in the qdb.property call. It should be something like ${Qdb.Property("u_saplotnumber")}. The additional quotation marks, especially since they are escaped out, is making it look for something else.

image.thumb.png.70c3b53712324ede8bf560a60e7c1206.png

 

That being said, what Richard said about mapping does make things easier, assuming there isn't any sort of conflict elsewhere.

  • Like! 1
Link to comment
Share on other sites

 Share

×
×
  • Create New...