Problem hiding button on X-Page

Hi,Rather new to x-pages I’m working my way through the tutorial on http://www-10.lotus.com/ldd/ddwiki.nsf/dx/Tutorial-Introduction-to-XPages-Exercise-1.

Exercise 6 shows me how to hide page-elements over a computed visibility-formula. The statement I’m supposed to use is “!dominoDocument1.isNewNote()”. Adding the formula causes a Command Not Handled Exception on loading the x-page (which loads just fine when I don’t try to hide the button)

Where do I miss the obvious??

Arthur

Subject: is dominoDocument1 defined

Open your XPage and access the Data palette. If there is a document defined, make sure the data source document name matches your JavaScript. For example, the new document data source I defined named is document1. Hence, the corresponding JavaScript would be:

!document1.isNewNote()

If you don’t have a document data source defined, then define one to map your form(s) to the XPage.

Subject: Thanx Oscar, that did the job (eom)