Focal Point
[SOLVED] Form validation and RIA

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

May 18, 2013, 06:28 AM
Mike in DeLand
[SOLVED] Form validation and RIA
OK, I've applied an RIA theme to my HTML forms, and it's gorgeous (Ocean rounded is the only one that I like).

First, I updated an HTML form that prompts for a bunch of parameters, and it had a lot of javascript code in it to validate dates, etc. I noticed that the RIA-ized form dropped all of the javascript. So, I tried to copy and paste the javascript from my original form. A lot of it didn't work right away, and I had to do some tweaking. Next thing I noticed is that when you hit the submit button, it runs the fex even if the edits fail. What's going on here? The original worked fine.

I saw that down in the area where webfocus puts in all of the RIA junk, it has something like "submitstr=OnExecute(this)". I was able to change that to "submitstr=form1submit_onclick(this)" and my edits seemed to work and not submit the form, but I know that we're not supposed to modify the generated code. Does anyone have any tips on the correct way to do this? I'd post my code, but it's all broken right now. Somehow it ate up a lot of the code and I'll have to re-do it on Monday. Have a great weekend. I know I won't.

This message has been edited. Last edited by: <Kathryn Henning>,


Webfocus 8
Windows, Linux
May 29, 2013, 04:11 PM
BarryS
Hi Mike

Applying an RIA theme may not be the best thing to do. Very few people used the RIA themes and the division is stabilizing the RIA themes. The issue with the RIA themes is that all the tags and names have to be change when converting to RIA and you cannot go back which is a maintenance issue.

In my opinion the biggest advantage with RIA is the styling. You maybe able to make your reports look like RIA by use of CSS files and putting controls around controls and style the controls with shades of color. Best of luck

You can always open a case with tech support and ask for Barry and I will try to help you.


WebFOCUS 8103, Windows, App Studio
May 30, 2013, 08:10 AM
Mike in DeLand
I managed to solve it myself. If I remember correctly, I just removed the form itself, keeping all of the fields and the button. I was then able to get the javascripts to execute when they should. Thanks.


Webfocus 8
Windows, Linux