Use parameter to decide when to import from excel

Use parameter to decide when to import from excel

marc_r5
Not applicable
100 Views
1 Reply
Message 1 of 2

Use parameter to decide when to import from excel

marc_r5
Not applicable

[ FlexSim 22.1.1 ]

Hello,

I am dealing with a model, meanwhile we are creating a custom db to import the data.

To make tests I use also an excel model to import data.

For the db import, I create a parameter and a custom code so I can decide if I import from the db or not, with a simple conditional.

Is something similar for the excel import?

I see that in the excel import/export menu there is a post import code option, but I would like to be able to do it in custom codes and using parameter, specially for the import decision.

Thanks!

0 Likes
Accepted solutions (1)
101 Views
1 Reply
Reply (1)
Message 2 of 2

jose_antonio_mad
Not applicable
Accepted solution

Hello @Marc R5,

You can use a parameter condition (f.ex.: if....else...) and if the condition is tue,use the following code to import excel files:

excelmultitableimport()

I hope I have been helpful.

0 Likes