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.
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.
Hi @Fu P, was jason.lightfoot's answer helpful? If so, please click the red "Accept" button on 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 unaccept and comment back to reopen your question.
See the database connector documentation.
You can import all data using:
treenode dbc=Model.find("/Tools/DatabaseConnectors/DBConnector1"); function_s(dbc, "importAll");
or a single import (the example show that at rank 2) using:
treenode dbc=Model.find("/Tools/DatabaseConnectors/DBConnector1"); treenode importer=dbc.find(">variables/importers/2"); function_s(dbc, "importSingle",importer);
Thank you and sorry for the late reply,I am new to this software and I don't really understand how to use the code you posted.
My global table and Custom GUI look like this
I want import execl and automatically replaces my global table
Can you please show me how to do it with a simple example I made?
I would appraciate it .
Thank you.
You can add the above code where appropriate and will trigger. For example: ONPress properties of import button. This part is very detailed in the user manual.
The OnPress event specifies code that will be executed when the button is pressed. It should have text data containing flexscript code. Within the code, c accesses the button view.
In addition, if you are the official version of 19.0 users, welcome to contact Beijing CSN for more technical Q & A and related support.
15 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved