question

PD avatar image
0 Likes"
PD asked Jeanette F answered

No options of To Table about database connector export data to

I have already connected with database. Why no options of "To Table" can let me export my flexsim table?

Could you provide me the coding to export my data to dasebase?

dbexport.png

FlexSim 22.2.0
export datadatabase connectorflexscript coding
dbexport.png (59.6 KiB)
· 6
5 |100000

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

Borja Lorenzo avatar image Borja Lorenzo commented ·

Hello @PD

The same thing happens to me. You can use the following syntax detailed in the manual:
Database Connectors (flexsim.com)
FlexScript Class - Database.Connection (flexsim.com)

The question is to understand why the Database Connection tool does not show the tables of the database we are connected to. I have several queries made about it, if I get any satisfactory response, I will let you know.

If the code I wrote could be of help and confirmed that there was a connection to the database and I was able to write two values, it is this one:
1727783567249.png

0 Likes 0 ·
1727783567249.png (12.5 KiB)
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @PD,

We haven't heard back from you. Were you able to solve your problem? If so, please add and accept an answer to let others know the solution. Or please respond to the previous comment so that we can continue to help you.

If we don't hear back in the next 3 business days, we'll assume you were able to solve your problem and we'll close this case in our tracker. You can always comment back at any time to reopen your question, or you can contact your local FlexSim distributor for phone or email help.

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

Hello,
The export function of the DataBase Connector is still not working. To perform the export, I had to do it through the code, using this part of the manual. However, I would like to know if I have a configuration problem or if it is a software bug.


FlexScript Class - Database.Connection

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ Borja Lorenzo commented ·
The Development team has been notified.
1 Like 1 ·
Show more comments

1 Answer

Jeanette F avatar image
0 Likes"
Jeanette F answered

Hello @PD ,

This has been submitted to the development team. A workaround for the time being is to go into the tree node and add in the table name there.

MODEL:/Tools/DatabaseConnectors/DatabaseConnector1>variables/exporters/1/tableName

1730907831881.png

I did not have the UI open when writing the table name. This will prevent the UI from overwriting what you wrote in the tree node. You can open the UI after you have added the table name.

5 |100000

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