Action Button in Embedded View - OpenCalendar function

Hi,

I have a view with an action button. The action takes a value from the currently selected document and plugs it into the OpenCalendar function to open someone’s calendar. This all works fine. Except I need to use this view embedded in a page. When I embed the view, the action button doesn’t work properly any more. It seems like when you click the action button, it moves the focus off the selected document so that it doesn’t get the user’s name from the document and instead, pops up with a dialog box so you can select which person’s calendar you want to open. The only way I can see to get round this is to write some Lotusscript to do the following:

  • get the note id of the currently selected document

  • get hold of the currently selected document and retrieve the username from it

  • locate the Domino Directory (bearing in mind that the user may be working offline)

  • locate the selected user’s person document in the Domino Directory

  • retrieve the server name and path name of the selected user’s mail file from their person document

  • open their mail file

  • switch to the calendar frameset

This seems like an awful lot of lines of code to be writing when there’s a single @function which effectively does it all for me.

Can anyone confirm that I’m on the right track here and am not about to do a load of coding that I don’t need to when there’s some way of making my formula action work in an embedded view correctly?

Thanks,

Emily.

Subject: SOLVED - Action Button in Embedded View - OpenCalendar function

I’ve just found a way to get out of writing all that Lotusscript! Turns out you can use the following which will work in an embedded view:

nName:=@GetViewInfo ( [ColumnValue] ; 2) ;

@Command([OpenCalendar];nName)

Hope this helps someone else in a similar predicament!

Emily.

Subject: SOLVED - Action Button in Embedded View - OpenCalendar function - Thx! [EOM]