Does anyone know if it is possible to dynamically change a datalink's source? What I basically want to do is to use data entry expert to allow someone to enter in a parameter name (i.e. module/param1.f_cv) and have that saved off in a variable local to that graphic. Then write a script in the background to replace a datalink's source with the string that was entered (module/param1.f_cv).
Then, later someone could change the data source by updating the string they entered (i.e. module/param1.f_cv to module/param2.f_cv)
Yes it's possible, I would recommend renaming the animation name instead of leaving the default.
Thing you should be worried about is the data entry and if that parameter would actually exist. To resolve this make sure you add [_NOT_CONFIG_OK_] to the end of the animation so the interface won't give error dialog or you can have the user pick the supported names to ensure they don't fat finger.
Once you have this named, saved, you can write logic similar to below for button to update link:
Just be aware that the debugger will give you an error first but if you save, close and reopen the display the error will go away.
In reply to Matt Stoner:
In reply to Alex Lutz: