Script or Module?
Author: liam_davison
Publication Date: 11/10/2016 10:19
Hello developers,
When do you write a script, and when do you write a module running on the server? I have written several long scripts and I am beginning to think they should be modules on the server instead. I'm expecting that modules written in Java will run faster than Beanshell scripts. I think it would also be easier to write good object-orientated code in Java, with the support of an IDE like Eclipse or IntelliJ.
If I do start doing this - how do I call my module from an FS_BUTTON? How are parameters passed down? Is context.getElement() the same in web client as it is on the server? Can a module interact with the web client, for instance triggering a navigation from one page to another?
I have attached a sample script that I'm thinking of moving to a server on the module.
It creates a copy of an existing page, and updates various links and form elements on both the original and new page.
I know this is a vague subject - I was just hoping for some ideas and inspiration!
With thanks,
Liam Davison
Tags: modules, scripting
-
Author: sebastianc - 11/17/2016 9:41
Hello Liam,
do you need further help or did Michael's reply already help you? If so, it would be great if you marked his reply as "correct answer" so that other community users find the solution easily.
Best regards,
Sebastian
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar