Solved

Java for refresh?

Posted on 2003-12-11
4
221 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

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…
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

708 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

15 Experts available now in Live!

Get 1:1 Help Now