IS it possible to generate Action Buttons on the fly?

I’ve run into a requirement that I’ve never tried before, and wanted to see if anyone had any ideas…

I’d like to generate Actions in the R6.5 Client, based on form data.

For example, on an approval form, the end user selects a number of items from a checkbox, and submits the form for approval. When the approver opens the form, I need to create an action for each category.

All actions do the same thing – they call a LotusScript function with the category as a parameter.

I’m trying to avoid creating the actions in the DB design because of the dynamic nature of the categories - it would amount to hard-coding in the app. I also do need to stick with an action for each category to match the user interface of today’s current version (which is hard-coded.) I can think of many ways to reach this goal were I allowed to change the UI, but I cannot do so at this time.

If anyone has ideas, I’d love to hear them…

Thanks…

Subject: RE: IS it possible to generate Action Buttons on the fly?

You can’t create actions at runtime, but you can calculate the labels with a formula, and you can hide actions with a formula. So you might decide on some limit – say, 10 categories – and create that many actions, so that the nth button displays the nth category the user selected, and the LotusScript code of the action likewise reads the field and goes to the nth entry in that field.

Subject: RE: IS it possible to generate Action Buttons on the fly?

That idea worked great –

I have potentially up to 100 categories, but no single approver will see more than 5-6, so this concept works. I just wrote a hidden field to compute which categories the current user is the approver for, and keyed the actions off the values in that field.

Your assistance is appreciated… Thanks!

-Dave