Get self.control.id with skin engine
#1
So I'm trying to pull out some xml coding stunts here. Having a fixedlist container with id="$param[widgetid]".
While 
Code:
Control.HasFocus($param[widgetid])
works fine,
something like 
Code:
Integer/String.IsEqual($param[widgetid],1510)
does not.

What I'm trying to achieve is to give different ids different includes. But I can't figure out to get the current control (after assigned with id) to identify itself (with no focus).
Is there a proper way of doing this?

EXAMPLE:
Code:
<control type="$PARAM[containerType]" id="$PARAM[widgetid]">
<include condition="CONTROLID == 1510 (pseudu-code)">foo</include>
<include condition="CONTROLID == 1520">bar</include>
etc...
</control>

Thanks.
Reply
#2
just name the indclude differently

Code:

<include>my-include-for-id-$PARAM[widgetid]</include>
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
#3
(2019-01-15, 15:23)sualfred Wrote: just name the indclude differently

Code:

<include>my-include-for-id-$PARAM[widgetid]</include>
 I didn't get ur suggestion. Can you give a more concrete ex?

@sualfred ?
Reply
#4
Code:

<control type="$PARAM[containerType]" id="$PARAM[widgetid]">
<include>foo-$PARAM[widgetid]</include>
</control>

Code:

<include name="foo-1510">
...
</include>

<include name="foo-1512">
...
​​​​​​​</include>
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
#5
(2019-01-21, 15:51)sualfred Wrote:
Code:

<control type="$PARAM[containerType]" id="$PARAM[widgetid]">
<include>foo-$PARAM[widgetid]</include>
</control>
Code:

<include name="foo-1510">
...
</include>

<include name="foo-1512">
...
</include>
one of those 'how didn't i think of it' moments Smile
Thanks a lot!
Reply

Logout Mark Read Team Forum Stats Members Help
Get self.control.id with skin engine0