How to introduce custom behaviour to widgets ?

Dear all,

Can someone post a standard way of adding a behavior after on a ‘onclick’ event related with e.g. a table ?
My goal is to automatically fill some input widget with the selected record data.

I am a bit lost on how to start. I have the version 7.4.1 and in past posts I see that one should use the HTML widget.
Is that available on this version ?

Thanks

For Security purposes AngularJS generally doesn’t allow HTML in text fields and the HTML widget has disappeared in 7.

See here however for a method of creating and using HTML in forms that are truly dynamic in nature, in the Green answer section.

Note - I’m not giving you everything that’s for you to sort out :slight_smile:

http://community.bonitasoft.com/questions-and-answers/custom-widgets-sce

You might also be interested in seeing this post where we wanted to take a Select and repopulate a Text (HTML) field for further processing…where you need to add a watch to the Custom Widget (Thanks to Lionel for helping there)…

http://community.bonitasoft.com/questions-and-answers/how-fire-custom-widget#node-26282

regards
Seán

PS: As this reply offers an answer your question, and if you like it, please Mark UP and/or as Resolved.

— You’re absolutely right. Just moved this answer as your answer comments. —

Hi,

Sorry to say that’s way over my head. I’ve spent some time trying to decipher those posts but hit my inner walls.
Is there any example on the community site where I can see a working example of clicking a widget and that affecting other widget ?
I’ve chosen this platform as a RAD and find myself swamped up to my waist :confused:

Thanks a lot.

Sorry to hear that, but first things first. Please don’t give an answer to an answer, there is a comment (link/button) under the post that you should use. It keeps things together.

The other thing is Bonitasoft is not a RAD platform, it is a BPM platform that allows BPM RAD. Something quite different and needs to be learnt as much as any other platform. So what do you also need to learn?

These are mentioned somewhere in Bonitasoft’s documentation but this is my list of what I’ve had to learn (in no particular order):

  • BPM - yes really
  • JAVA
  • AngularJS
  • JavaScript
  • CSS
  • SQL for MySQL, PostgreSQL and H2
  • and how Bonitasoft puts it all together.

If I have time I will throw something together later today…

A new product always needs time to get into the recesses of the brain, it will come.

regards
Seán

Some binding documentation would be probably enlightening, specially for the non hardcore developers.
In my particular case, I’d need to make some more use of the widgets interaction in the UI editor. At least at this point in time.

For H2 vs Postgres, I’ve followed your hints in some other posts and managed to use it successfully so far…

Thanks for all the help you give the community users.

Something else to learn - install an email service (hmailserver or something equivalent) that will enable you to fully test email sending etc. from your processes rather than using the corporate network.

Hi,

That I got it myself.
That and timers management, work like a breeze.

My head bump right now is on the widget interaction. I “only” want to populate other widgets after a table record selection (sigh…)
Could any Angular handy man develop a widget to link a widget/variable to table selection (onClick?) event or just describe how to do it by customizing a table widget ? Would be highly appreciated by any community member, I guess.