question

Ankur A3 avatar image
0 Likes"
Ankur A3 asked Ankur A3 commented

Global Table Name Change Issue?

Hi Team,

I would like to know best way of using the global table name so that we will be able to change it later with minimal change in code if required.

For eg:

1. We have global table name "GT_Material_Info" and we have written a custom code with same table reference.

2. Now, we have to change the global table name to "GT_Product_Info" since it looks more meaningful, we have to change it everywhere in custom code also which is little difficult.


Is there any way so that new table name may reflect automatically in custom code?

or

What is the best way to approach this problem?


Thank you!

FlexSim 23.0.0
global tablecodechangename
5 |100000

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

Felix Möhlmann avatar image
1 Like"
Felix Möhlmann answered Ankur A3 commented

Youi can use the search and replace function in the model tree to change all occurences of the original name to the new name.

1679036630951.png

In general, if you suspect that you might have to change a table name later I would try to use the explicit name as rarely as possible. For example if a process flow token will have to access the table multiple times, you could write the table name on the token as label. Each subsequent activity then only uses the label and if you want to the change the name, you only have to do so in the label assignment.


1679036630951.png (8.8 KiB)
· 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.

Ankur A3 avatar image Ankur A3 commented ·
Thank you! @Felix Möhlmann
0 Likes 0 ·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Ankur A3 commented

There is not a feature updating name references over an instance of FlexSim. In such a Case you reference a name string or a string array from the beginning of using any table.

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

Ankur A3 avatar image Ankur A3 commented ·
Thanks! @Joerg Vogel
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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