New Event "on Trigger"

Andreas Neumann shared this idea 6 years ago
Completed

Often it is necessary to create the same functionality at different places. For example the actions to calculate the different sums in the following table have to be created at each input field in the “on Change” event.


b580b28f3c0bcbce296558a14751841a


This would be much easier with a new “on Trigger” event. With this new event you only have to fire the right trigger in the “on Change” event of the input fields and this will trigger the “on trigger” event at the sum fields. So the calculation formula has to be implemented only once for each sum field. This can be maintained much easier than to maintain the calculation at every input field.


It should be possible to create different triggers (for example one trigger for the calculation of one table and an other for an other table). For that the “on Trigger” event should have a parameter to identify on which trigger the interactions should be processed (a kind of condition at event level or a name of the trigger event).


This idea also will cover my other topic: New event on Status Change

Comments (7)

photo
1

Thank you Andreas for this idea. Yes, that would be very useful, to encapsulate some events in one place and to allow one event call/launch other event.

photo
1

Thank you for your reply.


What about an implementation? Will you plan an implementation? If yes, when will you rollout the implementation?


For us an implementation is very urgent, because it will save a lot of time to create and maintain out prototypes.

photo
1

Supplement to my idea:


I suggest to create definition of a trigger like selecting a key at the "on Key Pressed" event. Instead of a key a trigger type shoud be selectable (Values may be: Data change on variable or Data change on Master Data). Like at the "on Key Presse" event it should be possible to add a condition (e.g. When a variable has a specific value). So you are able to react on data changes at any component on your screen without reloading the page. Until now you are able to do so only by using the "on Page Load" event (at the component you want to influence other components you have to save the changed value in an variable and then you have to go to the actual page to trigger the "on Page Load" event).

photo
1

Solution for calculating in an table like shown above:


Meanwhile I found a solution for calculation of the different sums:


- I created a master data with the four colums shown above


- The master data has two additional colums:


- ID and


- Row type


- I created a data grid with a filter on colum row type (show only "Input lines")


- I created an other data grid with a filter on colum row type (show only "Total line"); this data grid has a header row which has a height of 0 pixel


- For each input field I created an on change event which


- modifies the actual row including the line sum and which


- modifies the data set with the row type "Totel line"


This solution works well and so I got the result as I want.


But the idea is nessecary to solve the problem described in my last reply and the problem decribed in the topic New event on Status Change!!!!!


So please implement the new event type "on Trigger" in the next version!

photo
1

Thanks for the idea Andreas, I'm afraid we won't be able to do it for the next update but we will work hard to have it in the update after that.

photo
1

The update after the next update will be suitable and I hope I can get it soon!

photo
1

What about the implemention of this idea?