Problem in getting field value using an embedded view action button

Hello,

I have an embedded view on the page which has action button in notes client.

I am trying to get the value of the field and trying to display the field value to the user. But it is not working.

View Action button formula:

@Prompt([OK];“Test”;Field1);

I am selecting a document and then click on the view action button to get the Field1 value for that selected document.

But it is returning blank.

Please suggest me any solution.

Thanks

Subject: Problem in getting field value using an embedded view action button

@Prompt in an embedded view document will not definitely work. The workaround on your proble is to use Lotus Script in your view action. Here is your reference script

Set NotesUIView = NotesUIWorkspace.CurrentView

Set NotesDocumentCollection = NotesUIView.Documents

Set NotesDocument = NotesDocumentCollection.GetFirstDocument

Messagebox NotesDocument.FieldName (0)

Subject: RE: Problem in getting field value using an embedded view action button

Using both the provided approaches are running successfully and action button is detecing which document is selected.

But I am not able to understand why it is not detecing the document in case I use @Prompt.

Subject: Problem in getting field value using an embedded view action button

Hi,Try something like this:

Set db = s.CurrentDatabase

Set dc = db.UnprocessedDocuments

Set doc = dc.GetFirstDocument

Msgbox doc.Field1(0)

Konrad