Solved

Java for refresh?

Posted on 2003-12-11
4
224 Views
Last Modified: 2013-12-18
I'm designing a form that has various lines of text that I want to hide depending on some calculated values, so that the user only sees the appropriate one. It all works fine using @functions in the hide formula.

Now if I change the data, the computed value (that is also shown on the form) changes straight away when i move from the field I was altering. However if the result is such that the lines hidden should have changed, they don't - I have to press F9 to get them to change.

Now it occurs to me that I might be able to put something into the "onMouseOut" event such as doc.Refresh - but alas I see it's expecting some Java code. Unfortunately I  know even less about Java than I do about - well almost anything really.

Does this look a feasible way to solve the problem? If so , can anyone offer me the code?

Thanks,

Stuart
0
Comment
Question by:StuartOrd
4 Comments
 
LVL 14

Expert Comment

by:p_partha
ID: 9924757
enable automatically refresh fields in the form properties .....


Partha
0
 
LVL 24

Accepted Solution

by:
HemanthaKumar earned 50 total points
ID: 9925356
If this is notes app then you cannot use onMouseOut.. that is only for web. Instead use Exiting and the code to refresh in exiting event would be

DIm ws as New NotesUIWorkspace
ws.CurrentDocument.Refresh

~Hemanth
0
 
LVL 31

Expert Comment

by:qwaletee
ID: 9926599
Hi StuartOrd,

Reply JavaScript, not Java, and it isn't what yu want to do.  The automatica refresh sugegsted my madheeswar will work easily, but it tends to make things run slowly.  Hemanthas works better,though you end up with more maintenance.

Best regards,
qwaletee
0
 

Author Comment

by:StuartOrd
ID: 9927313
Hi all,
Thanks!
Partha, qwaletee, I'd already got that enabled, but past experience has told me not to be surprised when it doesn't work
Hemanth, it's a case of my tunnel vision, I hadn't looked down the list past onMouseOut - Exiting works fine
Regards,
Stuart
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Notes 8.5.2 application on web 4 204
How do I delete a user in IBM Lotus Notes 2 200
Disable Return Receipt In Lotus Notes 15 177
Lotus Notes Calendar Help 6 98
Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now