Dear all,
how to display the green plus sign of the minimized view when the widget has new feed items?
i've tried use reference from http://dev.widsets.com/wiki/Syndication_widgets but the green plus sign still not display.
Any ideas?Thank you.
regards,
vis'
This is my code
wigdet.xml
<parameters>
<parameter name="widgetname">Syndication Service</parameter>
<parameter type="url" name="url" editable="false">
<value>http://rss.detik.com/index.php</value>
</parameter>
<service type="picviewer" id="widgetImages"/>
</parameters>
<services>
<service type="syndication" id="syndService">
<reference from="url" to="feedurl"/>
</service>
</services>
syndication_service.he
class
{
void startWidget()
{
setMinimizedView(createMinimizedView("viewMini", getStyle("default")));
}
Shell openWidget()
{
fetch();
return null;
}
void fetch()
{
Value arg = [
"refresh"=>true,
"max" => 20
];
call(null, "syndService", "getItems", arg, ok, nok);
}
void ok(Object state, Value ret)
{
setBubble(null, "Got "+ret.size()+" items");
printf(ret);
foreach (Value item : ret) {
printf("subject: "+item.title);
}
}
void nok(Object state, String error)
{
setBubble(null, "Syndication get failed: "+error);
}
} //class




