Focal Point
HTML Composer: Where is the error message supposed to display?

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/2497086226

July 28, 2012, 09:51 PM
Francis Mariani
HTML Composer: Where is the error message supposed to display?
HTML Composer.

Set a Control to Selection Required: Yes.

When I run the form and click on Submit without selecting a value in the dropdown list, I get a red border around the Control, but there is no message - am I not supposed to see a message, perhaps in the Status Bar at the bottom of the browser window?

Thanks,


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
July 29, 2012, 07:12 AM
Alex
You're right. There should be a popup dialogue. I don't recall running into the situation since using 7.7.x but up through 7.6.11 there was a dialogue along with the red border. That's probably something to open a case for to report a bug.


WF 7.7.04, WF 8.0.7, Win7, Win8, Linux, UNIX, Excel, PDF
July 30, 2012, 07:30 AM
David Glick
At the status bar at the bottom of the active browser window is a message that states to select a value. Unless you have done something to prevent that.


David Glick
Director WebFOCUS App Studio
and WebFOCUS Developer Studio
WebFOCUS Division
Information Builders, Inc.
Direct (917) 339-5560
Voice Mail (212) 736-6250 x3560
Fax (212) 947-5168
Email david_glick@ibi.com
July 30, 2012, 07:31 AM
BarryS
There is no error message with the red box around the control. You could request a New Feature or validate the control in JavaScript and if the value of the control is empty send an alert and provide your own message.


WebFOCUS 8103, Windows, App Studio
July 30, 2012, 07:36 AM
David Glick
There is no dialog, just a message in the status bar.


David Glick
Director WebFOCUS App Studio
and WebFOCUS Developer Studio
WebFOCUS Division
Information Builders, Inc.
Direct (917) 339-5560
Voice Mail (212) 736-6250 x3560
Fax (212) 947-5168
Email david_glick@ibi.com
July 30, 2012, 10:28 AM
Alex
There's no message in the status bar in IE 9. In Firefox 14 you have to download an add-on to have a status bar and even then there is no message shown.

This message has been edited. Last edited by: Alex,


WF 7.7.04, WF 8.0.7, Win7, Win8, Linux, UNIX, Excel, PDF
July 30, 2012, 12:19 PM
MAdams1
@David,
Is there an WF amper variable that can be tested to see if validation has failed? I want to test to see if all parameters have been satisfied before enabling a button on submit.
Thanks


WebFOCUS Server 8.1.05
Windows 2008 Server
WebFOCUS AppStudio 8.1.05
Windows 7 Professional
IE 11 and Chrome Version 43.0.2357.124 m.
Mostly HTML, PDF, Excel, and AHTML
July 30, 2012, 12:45 PM
Francis Mariani
No message in the status bar if IE 8 - just a red rectangle around the control.

"Unless you have done something to prevent that" - I wonder what that could be, since I didn't do any customization.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
July 31, 2012, 09:43 AM
David Glick
Here is a screenshot of IE9 with the red box and the message in the status bar. I've never tried to show an image on Focal Point, so I hope this works...




David Glick
Director WebFOCUS App Studio
and WebFOCUS Developer Studio
WebFOCUS Division
Information Builders, Inc.
Direct (917) 339-5560
Voice Mail (212) 736-6250 x3560
Fax (212) 947-5168
Email david_glick@ibi.com
July 31, 2012, 10:33 AM
David Glick
There is a security setting that controls this. It is called "Allow status bar updates via script". For the Intranet Zone, it is enabled, for the Internet Zone, it is disabled.


David Glick
Director WebFOCUS App Studio
and WebFOCUS Developer Studio
WebFOCUS Division
Information Builders, Inc.
Direct (917) 339-5560
Voice Mail (212) 736-6250 x3560
Fax (212) 947-5168
Email david_glick@ibi.com
December 27, 2012, 11:59 AM
Marc97229
The reporting part of our product (implemented using WebFOCUS) is embedded in our product and therefore should look and feel the same. In the rest of our product, like almost everywhere else I can see on the internet, not providing a selection for a mandatory parameter results in the display of a red asterisk, plus a text indicating what the asterisks mean.
So my question is: "How can we make this happen in WebFOCUS?"

If the answer is "Do it yourself in JavaScript" I'd like to know whether WebFOCUS provides any support. I mean, can I detect somehow that WebFOCUS has put a red rectangle around an input control, and is there an array of input control IDs somewhere accessible that tells me what mandatory parameters are missing, and when the user enters one of these values can I detect this (e.g. by means of an update of this array)?

This message has been edited. Last edited by: Marc97229,


WebFOCUS 8.0.0.8, Windows 7
January 02, 2013, 11:39 AM
Francis Mariani
I use jQuery and do my own validation.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server