1
Bugs and Issues / Re: Shape Scripts not executing in Azure SQL
« on: November 27, 2023, 12:13:01 am »
Update - nothing to do with the underlying SQL schema - I checked and the 1558 update script was run successfully when the repository was set up.
I have found the problem though!
There is a property that you can't see (I haven't seen, anyway) on the properties dialogue window. However it is visible in the properties browser. It is in the diagram appearance section, and is the check box for "Custom Style". If ticked, it prevents Shape Scripts from running.
I have been thinking why it was set to Custom Style for the diagram in one case but not another. I checked the profile, and there's no way (I can see) to set the property for the new diagram type. I would have remembered doing so, anyway. By creating a new diagram using my toolbar, shape scripts do work on that diagram. I think it happened to a diagram I created in the model when I unloaded the MDG from the model, in order to bring in an updated version of the MDG. Hypothesis - when an MDG created diagram is divorced from its MDG, it gets the Custom Style check box checked? Maybe.
I have found the problem though!
There is a property that you can't see (I haven't seen, anyway) on the properties dialogue window. However it is visible in the properties browser. It is in the diagram appearance section, and is the check box for "Custom Style". If ticked, it prevents Shape Scripts from running.
I have been thinking why it was set to Custom Style for the diagram in one case but not another. I checked the profile, and there's no way (I can see) to set the property for the new diagram type. I would have remembered doing so, anyway. By creating a new diagram using my toolbar, shape scripts do work on that diagram. I think it happened to a diagram I created in the model when I unloaded the MDG from the model, in order to bring in an updated version of the MDG. Hypothesis - when an MDG created diagram is divorced from its MDG, it gets the Custom Style check box checked? Maybe.