question

Fu P avatar image
0 Likes"
Fu P asked Ben Wilson commented

Use DBConnector inside GUI

I already created my own GUI page,if I want to use DBConnector to connect MySQL to import a table inside my GUI page,is this possible?If possible,how can i do it?

FYI:all my action is inside GUI.

Thank you.

FlexSim 19.2.4
flexsim 19.2.4gui
· 1
5 |100000

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

1 Answer

Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered CSN commented

See the database connector documentation.

You can import all data using:

  1. treenode dbc=Model.find("/Tools/DatabaseConnectors/DBConnector1");
  2. function_s(dbc, "importAll");

or a single import (the example show that at rank 2) using:

  1. treenode dbc=Model.find("/Tools/DatabaseConnectors/DBConnector1");
  2. treenode importer=dbc.find(">variables/importers/2");
  3. function_s(dbc, "importSingle",importer);



· 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.