NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: rjolda on January 23, 2015, 12:59:20 PM

Title: How to set paramater to pass in the URL line
Post by: rjolda on January 23, 2015, 12:59:20 PM
Hi
Trying to pass the value of a VARIABLE as a parameter on the URL line for a Lookup button.
For the Lookup button, Parameters(n=v&n=v) seem to pass the string and not the value of the string itself - e.g.
I want to pass the contents of CLS:DX1 field which is actually = '250.55'
Setting the Parameters line   lookfld=CLS:DX1  actually passes the text   'lookfld=CLS:DX1' in the URL parameter list - I want it to look like  'lookfld=250.55'
so that I can get the value in the called procedure.
What is the trick?
THanks
Ron
Title: Re: How to set paramater to pass in the URL line
Post by: MyBrainIsFull on January 23, 2015, 08:20:08 PM
I'm not sure which parameters line you are referring to Ron, but its obviously wrapping your entry into one big string.

You might get it to work like    lookfld= ' & Cls:Dx1 & '
note the single quote at the end
that will take the 'lookfld='  as a literal,  then the value of the variable and a single quote as Bruce will add a single quote to the end of your expression, so it will add a nothing to the end

In the module you should go to "Source" and find lookfld=
You will see how NT8 is constructing the expression.

K
Title: Re: How to set paramater to pass in the URL line
Post by: rjolda on January 24, 2015, 05:54:40 AM
Hi,
Thanks - that was the correct setup to get the actual value passed in the URL!
Thanks,
Ron