Undesirable Document-Refresh in R 6.5.3

Hello,

in my Webapplication-Test für Migration 5.0.11 to 6.5.3 I`ve got a undesirable Document-Refresh.

My Problem: I complete a new Document in a Web-Application. When I forget to complete a mandatory field, I get a Messagebox “Pleace complete the mandatory fields …”. Then I press OK.

Now the document lose all values, that I write so far. But the document should keep all values.

Probably it`s a problem with refreshing of documents or with my Web-Browser (IE 6.0.2800.1106)

Has anybody an idea, who can solve this problem?

Thanks for your help!

Greatings from Regina

Subject: Undesirable Document-Refresh in R 6.5.3

It sounds like you are doing server side (agent) validation. You should try and use Javascript for your validation. This allows the field values to be tested without doing the round trip to the server and back to the client.

Subject: RE: Undesirable Document-Refresh in R 6.5.3

Hello Michael,

thank you for your very quick answer. It`s right, I use LotusScript-Agents to check my

mandatory fields. But additional I have routines to check more things in my Notes-Document.

Therefore I use Lotus Script. I can`t build all routines in Java Script.

Perhaps you or everyone have a solution, without changing the code in my applications.

Many Thanks

Regina

Subject: RE: Undesirable Document-Refresh in R 6.5.3

I’ve found this code in the Input Validation event works quite well on the web:

REM “type the jv:= in one line !!!”;

jv :=“<script language="JavaScript">alert('Missing Last Name');history.go(-1)”;

@If(AppLastName =“”; @Failure(jv); @Success)

Brian

Subject: RE: Undesirable Document-Refresh in R 6.5.3

Why in the validation event rather than using a JavaScript validation script that requires no refresh?

Definitely an interesting approach though!:slight_smile:

Subject: RE: Undesirable Document-Refresh in R 6.5.3

Both is better – JS for user convenience, speed and light weight, server-side for actual data validation using server settings. Browser validation is too easily avoided to be the only line of defence, but yes, it will generally improve overall performance and avoid unwanted data changes (server-side refreshes can be murder).

Subject: Thats cool.