Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Passing URL to a Web Widget
#1
Is it possible to pass a name to a Web Widget?  I was trying to clean up some templates, and one thing that would help would be if I could pass a webserver URL to a template that only contains a Web Widget.  This would allow just one template .vs. 9 templates all with different URLs.

I placed this: http://cqcserver/%(GVar:GraphName)  into the URL for the Web Widget (With the variable GraphName containing the name), but couldn't get it to work.  Is this possible?
Reply
#2
That won't work. But, you can do that in the OnPreload of the parent widget. Build up the URL and you can set it on the web widget there on the fly. Doing it in the preload means that it doesn't try to load and then load again, it just gets stored on the web widget as the initial URL to load.
Dean Roddey
Explorans limites defectum
Reply
#3
(10-03-2018, 09:35 AM)Dean Roddey Wrote: That won't work. But, you can do that in the OnPreload of the parent widget. Build up the URL and you can set it on the web widget there on the fly. Doing it in the preload means that it doesn't try to load and then load again, it just gets stored on the web widget as the initial URL to load.

That worked, I was using a Static Web Image widget, so I used the SetImage() to adjust the URL.  Thanks for your quick reply.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Increment web image widget NishanF 5 155 10-24-2019, 08:16 AM
Last Post: Dean Roddey
  Web Camera Widget Questions znelbok 4 667 01-03-2019, 03:27 PM
Last Post: sic0048
  Widget table doesn't update Attributes tab rbroders 6 1,625 09-11-2018, 07:52 PM
Last Post: Dean Roddey
  Has there been changes to Slider Widget? pjgregory 11 4,114 03-10-2018, 10:32 AM
Last Post: Dean Roddey
  IFTT and HTTP Trigger parameter passing setup Shaky 5 2,999 03-09-2018, 10:20 PM
Last Post: Dean Roddey
  Interface Template editor widget view gone? rbroders 3 1,637 02-03-2018, 07:22 PM
Last Post: rbroders
  Passing device name as variable jokermac 12 4,302 11-18-2017, 12:38 PM
Last Post: jokermac
  Field Boolean Text Widget issue greymatter 5 3,277 08-26-2017, 04:45 PM
Last Post: greymatter
  Widget Locator zra 6 3,118 08-09-2017, 06:06 PM
Last Post: Dean Roddey
  Camera Widget dogman 1 1,373 07-08-2017, 04:54 PM
Last Post: Dean Roddey

Forum Jump:


Users browsing this thread: 1 Guest(s)