Hi all, I cannot manage to have the following project run correctly: one of my views (MeterView) has an EmbeddedView
whose path
property is dinamically bound to a parameter coming from the URL (e.g. /meters/temperature
should load my MeterView, loading the Temperature view in the EmbeddedView
component - the URL in the Page Configuration is defined as /meters/:sensor
and sensor
is a param
of the MeterView). I use a MenuTree
to load my views, hard-coding the URLs in the target
property. The behavior is as follows:
- click an item in the MenuTree: the MeterView loads, showing the View not Found scaring message
- if I press F5 in the browser and force a reload of the URL which was set by the MenuTree item, the MeterView loads as expected with the correct sensor view.
I tried to add time.sleep(..)
here and there, thinking that as soon as the main view is shown, URL parameters are not parsed/ready yet, but with no success.
Any idea?
Thanks in advance
Ignition version: 8.1.31