Get and set the URL of an HttpClient control at runtime


Yang Ghua

I have a HttpClient Control name:"HttpClient3",and Set the "Url":'testurl'

if run

and it will show "undefined "

if run

it will show "HttpClient3.Url"

therefore if

seem would not set the "HttpClient3.Url" property

??was I missing something???


DecSoft

Hello Joshua,

As you can see in the HttpClient control reference, the "Url" variable is a "designtime" variable, convenient to set the URL during designtime. In runtime you can access the URL using the control "HttpClient.Request.url" variable.

On the other hand, remember we have also the HttpSetUrl action in order to set the URL of the HttpClient control, in addition to use the refered control "HttpClient.Request.url" variable.

Hope this information can be useful for you.



Yang Ghua

sorry,I did not carefully read the manual


DecSoft

Hello,

sorry,I did not carefully read the manual

No problem! This time... :D


Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.

This website uses some useful cookies to store your preferences.

I agree. Hide this note. Give me more information.