Workflow error in IE7 and 8
I have added a workflow to the HTML viewer (1.1). It works in most browsers (FF, Chrome, IE9), but when started in IE7 or 8, I get a messagebox with this error message: "Workflow error: Error while executing this activity: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus". If I click on OK the workflow stops immediately.
The first activity in the workflow is a 'Prompt' activity. After I replaced the 'Prompt' with a 'Display Form', I got rid of the error message, but a few steps later, I get the same error message, just before another 'Display Form' is shown. This time however, the workflow continues, and the Display Forms show correctly.
Has anyone seen this error, and is there a solution or workaround?
Regards, Berend
-
Hi Berend,
This an issue with older versions of IE. When a form loads, the viewer tries to focus the first element in the form and for certain form elements in IE this doesn't work.
What is the first element in your second Display Form activity? Is it a select box? A workaround may be to put a text field as the first element in the form.
I should note that IE7 and IE8 are not HTML5 browsers at all. Using these browsers will offer a bit of a degraded experience in terms of map performance, and certain functionality (i.e. Geolocation) is simply not available.
- Jason
0 -
Hi Berend,
Just to add to Jason's post, you can see the level of HTML5 support of different browsers at http://html5test.com/results/desktop.html
regards,
Edmond
0 -
Jason,
Thanks, the first element is indeed a selectbox (listbox).
Inserting a textbox fixed the problem, but is there a way to hide that textbox? Even setting it's width to 0 still shows a vertical edge. I tried other controls, but the only ones that seem to work are the ones that can actually receive user input, such as a checkbox or a textbox. An image or a hyperlink do not work.
0 -
A possible workaround is to hide the textbox with CSS. While this workaround hides the textbox, it will still leave an empy vertical space where the textbox was.
In the form designers in workflow designer, assign the textbox a unique title, e.g. "invisible".
Next, navigate to the Resources/Styles/Custom folder of the viewer and open Desktop.css.
Add the following CSS style:
input[title=invisible] {
height: 0 !important;
width: 0 !important;
overflow: hidden;
margin-left: -9999px;
}0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
4 Kommentare