Has anyone done script development for inclusion of the scripts in MDG Technologies with EA14? I've encountered a bug that renders this almost impossible...
It seems that, if you write a script, then include it in an MDG Technology and finally load the Technology into the project, your local copy of the script gets overwritten by the version from the Technology each time you load the project. Thus, you loose any changes you made to the script and didn't export into the Technology...
To replicate,
- Create a new project
- In the Scripting window, create a new Normal Group "test"
- In this group, create a new script "mytest" (script type seems to be irrelevant, I tested Javascript and VBScript with identical results)
- Now generate an MDG Technology "testMDG" (I created the testMDG.xml in the folder where my .eapx file was located; gave other settings ID: testMDG; Version: 1; Notes: testMDG)
- In the MDG Technology Wizard, remove the checkmark at Profiles and check Scripts
- Then choose to include "mytest" from the scripts
- Import the generated testMDG.xml into the model
- A group "testMDG" appears in the Scripting window. The group is empty (expected behavior: the group should contain the script "mytest")
- Now open "mytest" from the local group created in step 2
- Make any change in the script's code
- Save the script
- Close the script editor and reopen the script. The changes are still there, as expected.
- Close the project and reopen it
- Open "mytest" as in step 9. The changes from step 10 are gone. Expected behavior: changes should be there.
Seems like a bug to me, probably caused by the scripts from the MDG Technology retaining some internal ID.
If you delete the script ("mytest" from group "test" created in step 2), close and reopen the project, the script now correctly appears under the group testMDG from the Technology.
Has anyone experienced this?
Best wishes,
Benno
Tested with EA14, Build 1421