OK - let me try again :-)
First, I'm not where p variables are used or if they are callable in the dbr function.
I have a report with a number of user-configurable u variables and it also uses some automatic variables (e.g. inLogin). But to make the report as re-usable as possible, I also wish to include variables not exposed to the user. Normally this can be done by appending it to the URL as a query parameter (&myHiddenValues=1234)
So a report with url https://mydomain/report.php?r=206&u4=A&u5=B&u6=C&u7=D&u8=E&u9=F&m=1&h=0123456789abcdef
Makes all 'u' parameters visible to the user: none can be hidden so they can't be change via the interface
The only way I currently know how to add a unlisted/hidden variable would be to append the url like:
Then in the report code I'd like to call it to use like
sp_DBR_myfunction (inA, inB, inC, inD, inE, inF)
SELECT inA, inB, inC, inD, inE, inF, Z;
But I don't know how to access query variable 'Z' for the report to use it.
Another option would be to make 'hidden'/'unlisted' a possibility for the 'u' variables, but that requires more coding on your end and I was trying to find a way to reference query variables without changes on your side.
If there is a way to do this with 'p' variables then let me know how I'd call it in the 'myfunction' code.
Does that clarify?