Working with Buttons and Methods

Hello Servoy Masters!

We have a solution deployed in Servoy 4.1.

At this time, the solution runs under SmartClient.

We are looking to port to a web-based option too, and hoping to use existing forms and methods.

The big issue we came across is how we made our buttons.

For instance, we may use 2-3 images to represent a button. This allowed us to mix and match and didn’t require us making an image for every button ever. So, we’ll have a gray box image with a smaller icon image of say an invoice form and then a plus image to indicate New Invoice. So the 3 objects are layered over each other. The gray box image is the one that has the method connected to it.

This works fine in SmartClient, but when we try to use that in WebClient, the WC does not fire the method when we click on our button… obviously because the images on top of the gray button image do not have methods tied to them.

We realize that we could fix this by either making new images for all buttons. (which would then require a bunch of onShow methods to be modified because the elements would be removed)

OR, making the TOP image have the method tied to it. Both require a lot of busy work to go through each form and button.

We would of course like it if the webclient would behave such as the smartclient does. Does anyone know if there’s a reason why it doesn’t?

I know we have solutions, but they both require a bunch of recoding. Could this be a feature request? Does it work differently in 5.2?

Thanks… and sorry we did it this way! :)

It works the same in servoy 5.2.2, please make a Feature Request into the servoy support system: www.servoy.com/s

+1

Feature request made!