Re: Calling grubbgroovy device from form field

2023-01-27 Thread Ernest Hocking
Hi Nicolas and Taher here's the solution that worked: I also found an example in the codebase under Catalog -> Stores -> facility that was useful thanks for the pointers kind regards Ernest On Tue, Jan 24, 2023 at 3:00 PM Ernest Hocking

Re: Calling grubbgroovy device from form field

2023-01-24 Thread Ernest Hocking
Thanks Nicolas and Taher, I'll give that a try, I'm currently on 18.12.05 to set up a proof of concept. Hopefully 22.01 will be out soon and I can implement on that thanks and kind regards Ernest On Tue, Jan 24, 2023 at 2:49 PM Nicolas Malin wrote: > To complete > > You can define a reque

Re: Calling grubbgroovy device from form field

2023-01-23 Thread Nicolas Malin
To complete You can define a request-map                         on This works only on OFBiz 22.01, on previous version you need to use javascript call dir

Re: Calling grubbgroovy device from form field

2023-01-23 Thread Taher Alkhateeb
Hello, So you cannot call groovy, or any other programming language for that matter, from your browser. The only thing you can call from the browser is javascript and the DOM. So if you want to wire a button to some piece of code that you would like to execute, then this is simply a good-old

Calling grubbgroovy device from form field

2023-01-23 Thread Ernest Hocking
Hi everyone I'd like to use groovy to implement some business logic and call that logic from a button in a form. E.g Add a button on the product measures form to calculate the volume given a product's dimensions.. I've tried