Edit Webserver DOM for instance

Edit Webserver DOM for instance

aaavu
Not applicable
23 Views
2 Replies
Message 1 of 3

Edit Webserver DOM for instance

aaavu
Not applicable

[ FlexSim 24.2.1 ]

Where could we access the code files that are generated upon an instance creation for the webserver query?
webserver_question.png

I looked through the model tree and could find the default page template, but could not correlate how the graphs and tables are generated and sent to the client. (the screenshot is from MODEL:/proj/exec/globals/serverinstance.)


We would like to be able to debug and change the style of rendered elements in an instance view. Particularly the width and positioning the DOM elements (as you can see in the first screenshot, the graphs are rendered awkwardly, without the ability to expand to full screen width the rendered dashboard view)

1730973799889.png

1730973153708.png


0 Likes
24 Views
2 Replies
Replies (2)
Message 2 of 3

logan_gold
Community Manager
Community Manager

You may already know about this, but you can override the default page to customize what is displayed in a web browser. If you look in the Default Page section of Developing Custom Web Interfaces, you can see how to do that.

In FlexSim 24.2 (and probably other versions), line 320 of the page template calls the dashboard's generatedHTMLLayout. This function loops over the charts/widgets and adds some HTML. You would need to loop over the charts to get that HTML, but I believe you can change the layout code to do what you're trying to do.

0 Likes
Message 3 of 3

logan_gold
Community Manager
Community Manager

Hi @Alex-Adrian, was my answer helpful? If so, please click the "Accept" button at the bottom of the 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