2021-09-26, 12:44
Hi together,
let's take the following example:
Call of this include somewhere in a skin xml file:
This example works as expected. But what i need and want to do is to use a dynamic value for the "top" parameter, for example a Window Property (set by a python script). So if i try to call the include in the following way:
the example does not work. The parameter is passed as string "$INFO[Window.Property(top)]" and not as the value of the info label.
When i use $PARAM[top] in the <label> tag of an label control, then it works correct again, but only because there info labels are resolved. In <left>, <top> ... and almost any other tag info labels are not resolved. But i need to be able to use those kind of "dynamic parameters" in any arbitrary tag...
Has anybody an idea how to solve this? Or is this not possible at all?
Cheers Louis
let's take the following example:
html:
<include name="testinclude">
<param name="top" />
<definition>
<control type="label">
<top>$PARAM[top]</top>
....
</control>
</definition>
</include>
Call of this include somewhere in a skin xml file:
html:
<include content="testinclude">
<param name="top">300</param>
</include>
This example works as expected. But what i need and want to do is to use a dynamic value for the "top" parameter, for example a Window Property (set by a python script). So if i try to call the include in the following way:
html:
<include content="testinclude">
<param name="top">$INFO[Window.Property(top)]</param>
</include>
the example does not work. The parameter is passed as string "$INFO[Window.Property(top)]" and not as the value of the info label.
When i use $PARAM[top] in the <label> tag of an label control, then it works correct again, but only because there info labels are resolved. In <left>, <top> ... and almost any other tag info labels are not resolved. But i need to be able to use those kind of "dynamic parameters" in any arbitrary tag...
Has anybody an idea how to solve this? Or is this not possible at all?
Cheers Louis