500 Exception : Problem previewing XPage in Notes Client

Hi,

I am working on XPages to get it displayed in 8.5.1 Notes Client and am able to view my xpages on the client. I created a button and an edit box by the names, BUTTON_STANDARD_CONVENTION_1 and FIELD_STANDARD_CONVENTION_1.

I have put the following code on my button (Client side script)

[b]var fieldVal=‘#{javascript:document.getItemValue(“FIELD_STANDARD_CONVENTION_1”)}’;

alert(fieldVal);[/b]

When I save and preview the XPage on notes client in 8.5.1, I get the following error message…

[i]

Unexpected runtime error

The runtime has encountered an unexpected error.

500 Exception

Error while executing JavaScript action expression

Script interpreter error, line=1, col=10: Reference error: ‘document’ not found

Reference error: ‘document’ not found[/i]

Can you help me resolve this issue,

Thanks in advance

Subject: Re: document not found

It looks like you’re trying to get a value from a dominoDocument data source. In this case document should be the name of a dominoDocument data source on your XPage. It sounds like there’s a discrepancy in the name. If you’ve used the default data source name it will be document1

Subject: How?

How are you able to launch xpage application in the Notes client. I keep getting “operation time out” error message.