Web client auto refresh

I have a webclient where the url is being populated from a switch / table bind.
is there a way I can do a dat execute where OnTableChange it auto hits the request button?

two ways you can archive that.
op('webclient1').par.request.pulse()

or call teh request function (but you have to pass the url and method directly)
op('webclient1').request( "myurl.de", "GET")
Seonds one can be nice as you already have the dat in your callback, so you can create the url directly in the callback.

1 Like

place a Parameter Execute DAT to pulse your request button upon url change.
See attached example

auto_update_on_url_change.tox (846 Bytes)

that worked perfect, thanks guys

Hi! I’m looking for some information about Webclient Data: more specifically I would like to pass the url stored in a Text Dat to Webclient Dat.
I’m following a tutorial to use webapi but I had to change some things.
Thank you!

You could use a python expression in the Web Client DAT’s URL parameter to grab its value from a
Text DAT’s contents:

eg. op('text1').text