Creating Java Script for Actions

Instead of letting Domino create the Java Script for an Action Button, I wanted to do it myself. Looking at the parameters generated for the Java script _docClick function in a Domino generated Web page, I see that they include $V5ACTIONS/0.966 or something similiar. Is the 966, an offset to the CDEVENT CD record for a particular Action in the $V5ACTIONS field?

Subject: Creating Java Script for Actions

The important question is this: If some actions are added or deleted over time, will the remaining actions retain the same number in the $V5ACTIONS field (ie 0.966) so it is safe to use this number in static HTML?

Subject: RE: Creating Java Script for Actions

Your guess was correct (it is indeed a CD offset), and no, don’t count on it remaining stable. Any Formula button/action that you want to use on a web page really ought to appear on said web page, although you can click them programmatically and hide them from the user.