In my last post I showed you How to create a Menu Widget using the News Reader Widget. The News Reader has another hidden feature – it can be displayed as a checklist!
This view is great for a step by step process. If you launch the link the check box gets checked automatically. Now the process needs to be completed during the Lawson Smart Office session, it will not store your progress if you log off or close LSO.
You need to change your RSS xml and include a “completed” element for each item. The element is not in the RSS specification, it was added just to support this kind of view.
This is the XML for my example.
<?xml version="1.0" encoding="utf-8" ?> <rss version="2.0"> <channel> <title>Process list</title> <description>This is an example of an RSS feed</description> <lastBuildDate>Mon, 06 Sep 2010 00:01:00 +0000 </lastBuildDate> <pubDate>Mon, 06 Sep 2009 16:45:00 +0000 </pubDate> <ttl>1800</ttl> <item> <title>Wiki</title> <completed></completed> <description></description> <link>http://www.wikipedia.org/</link> <pubDate></pubDate> </item> <item> <title>Customer - CRS610</title> <completed></completed> <description></description> <link>mforms://crs610</link> <pubDate></pubDate> </item> <item> <title>Entry with comment</title> <completed></completed> <description>This is an item with a comment.</description> <link>mforms://crs610</link> <pubDate></pubDate> </item> </channel> </rss>
Any other hidden features in there that I can take advantage of? 🙂
Hum… not in the News Reader but there is much more to explore. Have you tried using *.jade files for Canvases or widget configurations? You can send a widget to a friend by saving the configuration from the context menu found on the widget title. Great for those widgets that takes some effort to configure such as the S3 Browse widget.
And it is available to all users not just administrators.
Is there the possibility to add a widget automaticlly on the canvas of all users and maybe additional that the user cannot close this widget?
But everything without using a locked predefine canvas where the users cannot store their shortcuts anymore.
Maybe possilbe with a Script?
No, there is no such support. You could add a script that would add the shortcut if it was deleted but there is no way prevent users from deleting it. See the blog post on How to create a Canvas shortcut from JScript. Is this a big requirement? Because I don’t think it would be that hard to implement. Like a setting.
Thanks for your answer! How can i add a script on the canvas? Is there an example somewhere?
Hi, No I’m sorry there is a misunderstanding. I wasn’t clear enough. There is no Scripting possible for the canvas. You would have to add a script that runs in every M3 program. At least I thought it was possible but I checked and as it turns out you would have to write an MForms Extension (SDK Feature) and that would require using LSO SDK which is only available to partners. I was thinking that you do a script that checks the canvas for the shortcut and then stores a value in the session cache so that it will only check once per session. But there is no much hassle to set it up if there is no generic way to run a script in all programs (which isn’t exactly what you want). Contact support and request the functionality if it is important to you.