I have two databases, one for properties and one for applicant to purchase properties.
Anyway, there are a couple of buttons that lookup the other database to see if there are any applicants for a particular property. The button code is:
@If(@IsError(@DbLookup(“Notes” : “NoCache” ; computer_server_name : MailingDatabase ; tview ; key ; 6)) ;
@Prompt([Ok] ; "NOI not found" ; "No Notes of Interest can be found for this property") ;
@Do(@Command([FileOpenDatabase]; computer_server_name : MailingDatabase ; tview ; key ; "" ; "1" ) ; @Command([ViewExpand])))
i.e. the @Prompt is the THEN , the @Do is the ELSE with the relevant variables all defined okay.
The problem is when I include the @Dblookup to check if an entry exists in a view before I open it, I get a strange phenomenon.
The view it opens is a categorised (one category) on the other database and on previous versions of Notes client and Domino server, would scroll to the relevant point in the list, expand that catgory and show you the viewings for that property.
What happens now is that all categories are already expanded, although the aren’t really - the twisties are pointing right, but the contents are listed below. If you expand the twisties you get a document listed twice. It’s as if the cache for the view gets confused by the @Dblookup command that occurs before the @Commands. I’ve taken the @DbLookup out and it works, but then it doesn’t check for a valid entry before opening the database (which I want to do).
To add another strange element into it, if I open both databases before pressing any buttons, the formula works okay. It only happens if the button is doing the lookup and @commands on the database before it’s opened in the client.
Hope this makes sense. I’ve searched the forums here and can’t see anything like it. I wonder if anyone has encountered a problem like it?
We are running 6.5.4 and 6.5.4FP3. I’m sure we didn’t get the issue on 6.5.2. (I’m having diffculty getting the patch files to work for the upgrade to 6.5.5). I’ve had this issue on client 6.5.4 and on 6.5.5.
Thanks in advance for any pointers.