Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 393
  • Last Modified:

Lotus Notes/Domino - Web App hanging if you click Dialog boxes that refresh the document too quickly.

Hi

I've just finished my 1st domino web app.   It generally works well, but had an annoying glitch.  

I have a few dropdown fields that are set to refresh the document on change, so the choices for other dependant dropdowns get updated, depending on what's chosen.

This works fine, apart from if you quickly click another dropdown before the page has dissapeared and reloaded. It just hangs.  

I've treid hiding the dropdowns if @IsDocBeingLoaded or @isDocBeingRefreshed, but they either still show, or don't ever appear.

I'm not sure it's relevant but the code for my dropdown field options is similar to this:-

"<SELECT DEPARTMENT>":@DbLookup("":"NoCache";"":""; "Departments";location;"Department";[FailSilent] )

And I have some other computed fields. e.g

@DbLookup("":"NoCache";"":""; "Location And Departments";location+ " " + department;"DepartmentApprover";[FailSilent] )

Any suggestion?

Thanks.

0
IanWood
Asked:
IanWood
  • 3
  • 2
1 Solution
 
Sjef BosmanGroupware ConsultantCommented:
Yep: throw the code away, and use Ajax-calls. Using Ajax, your page will stay on screen and only portions of it are rewritten. You can easily adapt dialog-box optiones etc. Required knowledge: JavaScript. If you look on the Web you'll find lots of sample applications for Java in Domino.
0
 
Sjef BosmanGroupware ConsultantCommented:
For a working example: GMail !
0
 
Bill-HansonCommented:
I couldn't agree more.

Ditch the @Formula language in this case and use ?ReadViewentries with AJAX.

There's no elegant solution using @Formula since every change requires a round trip to the server.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
IanWoodAuthor Commented:
Thanks.  I liked how easy knocking the forumlas up was.  I haven't got a lot of time to spend on it at the mo.    

Although I do know Javascript.  Anybody got a good simple example?

Is there no other way to stop the problem short term?
0
 
Sjef BosmanGroupware ConsultantCommented:
Hmmm, yes, but it isn't a proper solution. Add a hidden DIV to your form, and when the form is submitted to the server (OnSubmit-event), show that DIV. The DIV should cover most of the screen (transparently??), so users can no longer click the other elements.
0
 
IanWoodAuthor Commented:
Thanks.  How do I create a div?  With html somewhere?
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now