2019-10-25, 12:22
Hi.
In my Example i want to fill and refresh a panel container (id=5001) based on the input of an edit control (id="100002")
Which works pretty well, but once my the panel container is empty, it cant refresh due to my visible condition
The simplest solution will be to get rid of the visible condition,
BUT I DONT WANT AN EMPTY AREA USING SPACE
So that leads me to try the following:
issues :
- once numitems=0, no more refresh/visible till reload due to visible condition
- if i add static item container seems to get numitems issue ?? (sorry i cant descripe better) 2 items flickering around - HELP NEED FIND CORRECT VISIBLE CONDITION
test to resolve
- add to content path : &reload=$INFO[Window(home).Property(EmbuaryWidgetUpdate)] - no succes
- removed vis condition (container) - ok, but group always visible unwished
- added a static item as content - ok, but jumps around due to visible cond :
!Integer.IsGreater(Container(5001).NumItems,1) | Container(5001).IsUpdating
or
Integer.IsLess(Container(5001).NumItems,2) | Container(5001).IsUpdating
( + if static item is placed as second 'content' tag , container still focus static item first onfocus )
Code:
Video Describe/Show Off
EDIT:
also tried refresh via button and different actions, without succes
Container(5001).Refresh , Container.Refresh(5001) , Container.Refresh
Container(5001).Update , Container.Update (5001) , Container.Update
In my Example i want to fill and refresh a panel container (id=5001) based on the input of an edit control (id="100002")
Which works pretty well, but once my the panel container is empty, it cant refresh due to my visible condition
xml:<visible>[Integer.IsGreater(Container(5001).NumItems,0) | Container(5001).IsUpdating]</visible>
The simplest solution will be to get rid of the visible condition,
BUT I DONT WANT AN EMPTY AREA USING SPACE
So that leads me to try the following:
issues :
- once numitems=0, no more refresh/visible till reload due to visible condition
- if i add static item container seems to get numitems issue ?? (sorry i cant descripe better) 2 items flickering around - HELP NEED FIND CORRECT VISIBLE CONDITION
test to resolve
- add to content path : &reload=$INFO[Window(home).Property(EmbuaryWidgetUpdate)] - no succes
- removed vis condition (container) - ok, but group always visible unwished
- added a static item as content - ok, but jumps around due to visible cond :
!Integer.IsGreater(Container(5001).NumItems,1) | Container(5001).IsUpdating
or
Integer.IsLess(Container(5001).NumItems,2) | Container(5001).IsUpdating
( + if static item is placed as second 'content' tag , container still focus static item first onfocus )
Code:
xml:
<control type="panel" id="5001">
<description>hardcoded content artist</description>
<left>5</left>
<width>1600</width>
<!-- <height max="850" min="360">auto</height>
need to make include based on vis content,3 more ids :-(
-->
<height>850</height>
<top>50</top>
<preloaditems>2</preloaditems>
<orientation>vertical</orientation>
<onleft>11999</onleft>
<onright>500160</onright>
<onup>9000</onup>
<ondown>5002</ondown>
<scrolltime tween="quadratic">400</scrolltime>
<autoscroll>true</autoscroll>
<pagecontrol>500160</pagecontrol>
<visible>[Integer.IsGreater(Container(5001).NumItems,0) | Container(5001).IsUpdating]</visible>
<itemlayout height="300" width="420">
<control type="group">
<height>243</height>
<width>405</width>
<include content="HUB_Landscape">
<param name="colordiffuse" value="$VAR[Container_item_nf]" />
<param name="autoscroll" value="false" />
<param name="bordersize_bg" value="6" />
</include>
</control>
</itemlayout>
<focusedlayout height="300" width="420">
<control type="group">
<height>243</height>
<width>405</width>
<include>Item_Focus_Animation</include>
<control type="group">
<include content="HUB_Landscape">
<param name="colordiffuse" value="$VAR[Container_item_fo]" />
<param name="autoscroll" value="true" />
<param name="bordersize_bg" value="4" />
</include>
<include>FocusOverlay</include>
</control>
</control>
</focusedlayout>
<content>
<item id="999">
<description>workaround to refresh via edit,5001 shouldnt remain empty</description>
<label>No Results Found</label>
<label2 />
<visible>!Integer.IsGreater(Container(5001).NumItems,1) | !Container(5001).IsUpdating</visible>
<icon>$VAR[emptywidget]</icon>
<thumb>$VAR[emptywidget]</thumb>
</item>
</content>
<content target="music" limit="50">$VAR[HUB_content_artists_1]</content>
</control>
...
...
...
<variable name="HUB_content_artists_1">
<value condition="!String.IsEmpty(Control.GetLabel(100002).index(1))">musicdb://artists/?xsp=%7B%22order%22%3A%7B%22direction%22%3A%22ascending%22%2C%22ignorefolders%22%3A0%2C%22method%22%3A%22sorttitle%22%7D%2C%22rules%22%3A%7B%22and%22%3A%5B%7B%22field%22%3A%22artist%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Control.GetLabel(100002).index(1)]%22%5D%7D%5D%7D%2C%22type%22%3A%22artists%22%7D&reload=$INFO[Window(home).Property(EmbuaryWidgetUpdate)]</value>
<value>musicdb://artists/</value>
</variable>
Video Describe/Show Off
EDIT:
also tried refresh via button and different actions, without succes
Container(5001).Refresh , Container.Refresh(5001) , Container.Refresh
Container(5001).Update , Container.Update (5001) , Container.Update