Action Bar - Programmatic insertion of action buttons with callbacks?

I’m currently researching on how best to insert action buttons into the action bar preferably using C API (but also open to other methods… except changing of db template).

Is it possible to insert buttons without actually needing to save the form back to the db? i.e. I do not want the button to persist across subsequent Notes sessions.

Any inputs will be much appreciated, thanks in advance!

Subject: Action Bar - Programmatic insertion of action buttons with callbacks?

Did you consider DXL yet for this? Export the form, add an action button at the wanted location, then import the form?

Greetings,

Martin Vereecken

http://www.bizzybee.be

Subject: RE: Action Bar - Programmatic insertion of action buttons with callbacks?

Yes, was reading up on the DXL import and export… haven’t tried it out yet though.

Does it allow the action button insertion to dynamically appear on the current UI document (rather than being applied to the entire db)?

E.g. depending on the document being viewed, different action buttons will be inserted.

Subject: RE: Action Bar - Programmatic insertion of action buttons with callbacks?

No, the action buttons must always be in a form, in design somewhere. Perhaps adding the action buttons in subforms creates more possibilities?

As an alternative, you could use buttons in the document itself, that way they’re not in the design, but DXL could help adding them in the document?

If this doesn’t point you to your goal, please tell a bit more about what exactly you want to achieve.

Regards,

Martin Vereecken

http://www.bizzybee.be

Subject: RE: Action Bar - Programmatic insertion of action buttons with callbacks?

Thanks very much for your inputs.

An example:

  1. User replies to an email
  • Depending on the content of the original email, the action bar will have various additional buttons inserted dynamically
  1. User clicks on one of the custom action button
  • Custom plugin code will be executed to perform the predefined task

Subject: RE: Action Bar - Programmatic insertion of action buttons with callbacks?

I assume you don’t want to add this in the mailtemplate, because it’s hard to maintain? (every new version=implement customisations)I think I would try using a subform, and put some hide-when formulas on my action buttons. With the notes upgrade, you only need to move the subform and add it to the forms again.

Greetings,

Martin Vereecken

http://www.bizzybee.be

Subject: RE: Action Bar - Programmatic insertion of action buttons with callbacks?

Actually, the main reason of not making any changes to the mail template is that customers tend to be very apprehensive about it.

Many thanks for your inputs - I’ll be exploring other alternatives in the meantime… :slight_smile:

Subject: RE: Action Bar - Programmatic insertion of action buttons with callbacks?

I know it’s late and I’m sure you realized that there is no good way to do this for soo many reason. You are left with a menu addin and the client toolbar.