Doclick issue from R5 to R6

Our Web based application is having doclicks for Shared Actions in the Java Sript.But the doclick code in R5 and R6 are different so every form is failing to submit.

R5 : _doClick(‘6ee1bacd0ac061b865256b270042125e/$V5ACTIONS/0.3D6’, this, null);

R6 : _doClick(‘6525700C00167978.6ee1bacd0ac061b865256b270042125e/$V5ACTIONS/0.410’, this, null)

How to get the doclicks in R6 same as R5. Application is having such cases at approx 100 places so it is very difficult to change by going at and each every place. Pls suggest a way out.

Regards,

Sufiyan.

Subject: doclick issue from R5 to R6

You should never have hard-coded the values in the first place. The last number in the first parameter is a CD record offset pointing to the storage location of the action in the $Body field of the design note. These offsets change from version to version. When you want to use a Formula action or hotspot, use the Formula action/hotspot rather than hard-coding it in your HTML.

And no, there is no fast-and-easy way to translate from the R5 CD offset to the ND6 one.

Subject: RE: doclick issue from R5 to R6

Thanks for your prompt response.The application was designed long back. Moreover can you pls let me know how to avoid the hard coding of doclicks in Javascript.In our application after doing all the Java script validations we call doclick which executes some formula language/Lotus Script Agent.

Waiting your reply.

Subject: RE: doclick issue from R5 to R6

Allow the actions to appear on the form. If they are hidden (using hide-whens), then unhide them. You can hide them in HTML using CSS with this hack:

In the HTML Body Attributes object, enter:

“<div id="actionsDiv" style="display: none">”

Then, at the top of your form, put (in passthru HTML). That will hide the action bar if you don’t want it to be seen. Then rather than calling _doClick(), call the click() method of the appropriate action.

It would be preferable, though, to use formula actions and hotspots as they are meant to be used, and do your validation in a function called from the form’s onsubmit event. Your user actions should not call the validation function directly.