question

Lena Young avatar image
0 Likes"
Lena Young asked Jeanette F commented

Adding Customer Code to FlexSim Webserver

Hi,


I have successfully installed the webserver, and it can upload and run instances normally. Is it possible to connect the webserver to a local script that is stored on the same machine that webserver is fixed to, so that the webserver can display the content of the local script ?


Any help will be appreciated. Thank you!

FlexSim 22.0.16
webserverflexscript coding
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Joerg Vogel avatar image Joerg Vogel commented ·

@Lena Young, can you try to load a workspace with an open tree view? I am not sure, if this is possible at all.

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Lena Young, was Jason Lightfoot's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jacob Gillespie commented

Hi Lena, I'm a little unclear exactly what you're trying to achieve but you can edit the html of index.html which is the webserver launch page.

You can also customize the page you see for a model using the serverinterface customization in the model.

1716393313999.png


1716393313999.png (68.2 KiB)
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Lena Young avatar image Lena Young commented ·
Hi Jason,


Thank you for replying. I was trying to customize the Webserver Interface and adding more features to it (e.g. Enable user to open Excel files that are stored in the same directory with the uploaded models, change experiment parameter values, etc.). I'm new to Web Programming, so I was wondering if this is possible to be done based on the current webserver interface setup.

0 Likes 0 ·
Jacob Gillespie avatar image Jacob Gillespie ♦ Lena Young commented ·
@Lena Young Like Jason said the Developing Custom Web Interfaces documentation is what you should read. It details how to make your own custom "default page" or another custom page. It also tells you how to make a custom query handler. The current default page functionality is written into the page's HTML, the JavaScript files it loads, and the query handlers it calls.


Since this is very custom stuff it is all left to the developer / advanced user to figure out. If you have any specific questions about custom pages or query handlers ask away.

0 Likes 0 ·