Category Archives: LSO Administration

My web application does not work in Smart Office!

If there is a web application that does not work in Smart Office there are a few know limitations and work arounds that you should be aware of. In this blog post I’ll cover some of the issues with web applications as well as some work arounds that you can try. Most of this information applies to Smart Client and Smart Office.

Knows issues
- Only web browser plug-ins that support 64-bit mode in Internet Explorer will work in Infor Smart Office when running on 64-bit. This is becuase Smart Office is a 64 bit application on a 64 bit machine and it will run the browser control as 64 bit.
- The default render mode for the Browser control is IE7. As more and more applications are HTML5 they will not work in the IE7 render mode.
- Focus is not maintained between WPF and the Browser control. This means that as you switch between native applications in Smart Office and web applications the focus in the web application will be lost. There is no focus support from Micrososft in a mixed environment. Even if there is a new Browser Control the control is still not pure WPF. Which leads us to the last problem.
- The z-index – web browser is always on top issue. When including a web browser in a WPF window it will always be on to of other content.

Internet Explorer in 64-bit mode

Only web browser plug-ins that support 64-bit mode in Internet Explorer will work in Infor Smart Office 10.0.5 and earlier. For example the Silverlight plugin only exists as a 32-bit plugin.

Note that as of Smart Office 10.1 the application has changed to be a 32-bit application on all operating systems so this should no longer be an issue.

Workaround for a demo would be to use a 32-bit OS. Another workaround would be to configure and use External Applications in the profile.

ExternalApplication

In External applications it is possible to define a path to Internet Explorer and pass in a URL. Defining an External Application will create a node under Other in the Navigator. In my example the resulting URL is ext://exe/?value=iexplore&parameters=http://www.infor.com.

Unfortunately IE will use a launcher process and then open the URL in an existing process or a new and Smart Office will not be able to find the window handle to the web page so it will not be visible in Smart Office toolbar. So this is more an external launch and you leave Smart Office. So there is no good workaround in place. The option to add external application links works best for applications that starts one process and keep that same process. This is not the case with Internet Explorer.

There are a bunch of command line switches that you can read more about.

In Smart Office 10.1 as we there is no upgrade support for previous clients we have decided to build the client in 32 bit for all platsforms. That means that all 32 bit plugins will work as of Smart Office 10.1.

Render mode

The default render mode in Smart Office is IE7. This can be verified by opening http://www.whatsmyuseragent.com/.

useragent

This render mode works well for old web applications like M3 IBrix but not with the UX3.0 Infor HTML5 controls for web applications. It does not matter if you have IE 8, 9 or 10. The default render mode for the Browser control that Smart Office uses is IE7. Specifying a tag is supposed to force the Browser Control to use a different rendering engine, but that only seems to work if the page hasn’t been launched by another window (window.open). You can try and add these meta tags if you have access to the application.

<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="X-UA-Compatible" content="IE=9">

The work around that will always work is to add a registry setting for the LawsonClient.exe that all browser content should run in a specific render mode. Note that this will affect all applications so if you have some applications that requires to be in compability mode and others that need to be in IE9 render mode you have to make a choice. There is only one setting and it is for all web content within Smart Office.

For LawsonClient.exe (Smart Office up to version 10.0.5) you should use:
HKEY_LOCAL_MACHINE (or HKEY_CURRENT_USER)
SOFTWARE
Microsoft
Internet Explorer
Main
FeatureControl
FEATURE_BROWSER_EMULATION
LawsonClient.exe = (DWORD) 00009000

For Smart Office 10.1 the exe name is MangoClient.exe.

For Smart Office 10.1 (on a 64-bit system) you should use:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION

On my 64-bit machine I added a 9999 for LawsonClient.exe.

registry3

Table with emulation modes for Internet Explorer on MSDN.

There is no current way to configure this via Smart Office but there are other ways for an administrator to change the registry on corporate computers.

You need to restart Smart Office for the changes to take effect.

Many Feature Control keys can also be controlled by network administrators by using Group Policy. When a group policy is modified, a value similar to the one above is written to the policy hive in the Windows registry. Because Feature Controls can be configured in multiple places, Internet Explorer will look for values in the following order of precedence:
- HKEY_LOCAL_MACHINE policy hive (administrative overrides)
- KEY_CURRENT_USER policy hive
- HKEY_CURRENT_USER preference hive
- HKEY_LOCAL_MACHINE preference hive (system default settings)

Focus is not maintained when switching between applications

Keyboard focus is lost when switching between native Smart Office applications and web applications. This is a known design deficiency in WPF’s focus management combinded with HwndSource / Web Browser. There is no workaround that will work for all web applications.

Web Browser always on top

In Smart Office all windows exist on the Canvas which is one window. Widgets can pop over windows and windows always have rounded corners. In Smart Office we will replace any web content with a screenshot of the content as soon as that window is not the active window. This means that you might see some issues as the web content is replaced with an images. On windows XP there have been reported issues and we have even had a case with Microsoft that there is an issue when taking the image on some of the webapplications, inlcuding IBrixes. So on XP we can’t take an image so we replace the content with a default image with the text “Click to activate”. There is no workaround for the z-index problem with web content. Ot the workaround is exactly what we are doning – replacing the BrowserControl with an image as soon as it is not the active window. Therefore it is very important that you use our ExtendedWebBrowser and not the default controls if you need a BrowserControl in your feature or JScript.

If you have any issues releated to switching between Web application or as the web application launches a new window you can try and disable the preview image. This can be done in the profile by adding a web/EnableDefaultWebBrowserImage. In 10.0.5 this should be available in the advanced view of the profile.

EnableScreenshot

More reading

Table with emulation modes for Internet Explorer on MSDN.
http-equiv attribute | httpEquiv property

URI shema overview for Infor Smart Office

In this post I’ll present a short overview of the different application schemas that we use in Smart Office. As you know we use URL syntax to identify applications within Smart Office. We build our big product lines around one schema per application and use the host part of the URI as the program name. Continue reading

Moving user favorites from Smart Office 9.x to Smart Office 10.0.4

In Smart Office 10.0.4 the one administration change was that settings and user files moved from the File Area into a database on the server. As a part of that work we enabled user and application settings to be controlled via User Roles so that you don’t need to use Group Policies any more. Continue reading

Connecting a Mashup to a role or user in 10.0.5

In Smart Office 10.0.5 we introduced support for connecting Mashups to roles. This is something that we should have implemented from day one but there are a few reasons why we haven’t. First of all Smart Office is a platform for different applications, we did not want to create yet another custom tool where you manage and create LSO roles. M3 have their roles, S3 has there roles, roles are related to Security and there is another team who handles Security. We were pushing for a common solution for Lawson. The Smart Office server has moved to the Grid (9.1.3).

Authentication is handled by the Session Provider in the grid and in the grid it is possible to connect users to roles. The session provider can be connected to for example IFS, Infor Federated Services, were you set up claims and claim rules. Continue reading

Changing Smart Office settings files without Smart Office client

From Smart Office 10.0.3 all settings files are located in the GDBC database instead of the file system. Sometimes an administrator needs to change a setting without opening the Smart Office client. In Smart Office 10.0.5 there is an external tool called SettingsTool.exe that can be used to access the settings files on the server. Continue reading

Enabling Process Flow (or other applications) for a group of users

In Smart Office you can work in a number of different applications, S3, M3, LBI, LPA the abbreviations goes on and on :-) . Last week I got this question. Our customer A has 3000 M3 users but not so many LPA (Process Flow) users. Is there a way to aviod this inbasket error message for existing M3 users but non existing LPA users? There are different ways to enabled/disable applications and in this post I’ll cover all the options that are availble to you. This post applies to all versions of Smart Office and Smart client but the details on how to do the configurations will differ in early versions (pre 10.0.4). Continue reading

Tip of the Day – Safe Mode, System Profile and Log file

Today I would like to share a few useful tips that will make your life easier as a Smart Office Developer. First we have ‘how to run Smart Office in Safe Mode’, then ‘how to force the System Profile Selector’, followed by some extra tips for checking the log and finding the isolated storage for the installed application. Continue reading

It’s all in the URL – Client Configuration

Smart Office is installed via ClickOnce. The link that you click on to launch Smart Office can have a number of paramaters on the URL. In this post I will cover a few of those parameters and the most common misstakes people do when composing a URL that will open a program after Smart Office is started. Continue reading

Conditional Styles with Dynamic Dates

With conditional styles you can take control over the lists in M3 and S3. Dynamic dates are an important concept when it comes to comparing dates. I’m not the developer who implemented the feature, in fact I have never used it before today. But I understand that this is a topic that quite a few are interested in. In this post I’ll use the requested delivery date on an order and use different styles for if the order has a requested delivery date the coming week or if the requested delivery date is passed. Continue reading

Working with multiple Canvases

In Lawson Smart Office your home is the Canvas. You have your informative widgets and your shortcuts just one click a way. But what if you would like to completely swith the canvas for a specific task so that the widgets and shortcuts reflect the type of work that you need to get done? I’ve written about How to create a Menu Widget using the News Reader Widget, you can take this one step further by having the links in the RSS Xxml to point to different Canvas files. Continue reading

Import / Export Manager

In Smart Office 10.0.4 settings files and pre-defined widgets definitions have been moved into the GDBC database instead of reside as files on disk. At the same time as using a database instead of files increases the possibilities on new functionality in Smart Office it also reduces the simplicity of viewing configuration files.

With the new Import/Export Manager administration tool it is possible to export all settings files, pre-defined widget definition file and also M3 and S3 links files (even if they are still located in the file system). Continue reading

Connect Settings to roles, now made easy

In version previous to Smart Office 10.0.4 the possibility to connect Smart Office settings to users or groups of users existed but had to be done through Active Directory with group polices. Adding new group polices can be a bit tricky and sometimes the trickiest part is to get access to the Active Directory it self.

In Smart Office 10.0.4 there is a new way that let you create different settings values and connect them to user(s) and/or group(s) of users. Continue reading

News Reader Widget as a Check list

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. Continue reading

How to create a Menu Widget using the News Reader Widget

The news reader widget is for displaying a news feed. You can configure the News Reader Widget with a specific URL and publish it to the Widget Library. The tip of the day is that you can create your own RSS xml and have the News Widget as a Menu Widget with a list of different programs that can be launched directly from the widget. In this post I’ll show you the syntax of the XML and how to publish the widget to the Widget Library. Continue reading