Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - bilon

Pages: 1 [2] 3 4
16
Automation Interface, Add-Ins and Tools / Setting add-in description?
« on: August 08, 2018, 11:17:12 pm »
There's a "description" field in the Manage Add-Ins window. What is the source for this field? Am I able to set it?

17
I've contacted sparx, they said it's an issue, it should be fixed sometimes :-) in the future.

18
Yes, this way it is described in the documentation: "Should be called after adding a new item or after deleting an item".

19
In this case, it isn't definitely without issues. The issue is, that after setting datatype to "char" in step 1, it is displayed as "varchar" in step 2. They should be same.

20
We need to create parametrized script and enable users to set parameters interactively. My idea is to open add-in window from the script, which would enable to change the parameters, and then continue with the script or to call another script which would do the rest of work. Is it possible to do something like this or is it absolute nonsense?

21
What do you mean with "worked with no issues"? Does it mean, that the output looked like this:
1: TABLE_NAME char
2: TABLE_NAME char

22
The reason why tab.Attributes.Refresh is commented, is, that tested it but it didn't work, so I commented it. Even tab.Refresh doesn't work!

23
As you can see, Refresh is already there. But commented, because it doesn't help.

24
I have simple script changing single property of elements attribute and subsequently iterating through elements attributes to display the new value. But the old value is displayed. Here is the script:

Sub Main
   Dim tab AS EA.Element
   Dim col AS EA.Attribute
   For Each tab In Repository.GetTreeSelectedElements
      For Each col In tab.Attributes
         If col.Name = "TABLE_NAME" Then
            Select Case col.Type 
               Case "varchar"
               col.Type = "char"
               col.Update
               Session.Output "1: " & col.Name & " " &  col.Type
               '1: TABLE_NAME char
            Case Else   
            End Select
         End If      
      Next
      'tab.Attributes.Refresh
      For Each col In tab.Attributes
         If col.Name = "TABLE_NAME" Then
            Session.Output "2: " & col.Name & " " &  col.Type
            '2: TABLE_NAME varchar
         End If
      Next
   Next
End Sub

The new value is correctly saved to model, so why it is not displayed in the script?

25
General Board / Columnstore indexes for Sql Server tables
« on: January 02, 2018, 09:52:28 pm »
Hi,

when modelling index for Sql Server table, I can't see any option for columnstore indexes. Is there any way how to accomplish this?

Libor

26
Hi,

we currently face the same error as described in this topic
http://www.sparxsystems.com/forums/smf/index.php/topic,5480.msg125188/topicseen.html#msg125188
It is marked as solved, but I can't see there any solution. Is anybody able to help me? After adding new element to the collection and setting it's properties, subsequent update of this element ends up with mentioned error. Interesting is, that when not setting StereotypeEx property, it works fine. It works fine too (even when setting StereotypeEx property) when used against eap file. But in MySQL repository it ends up with the error.

Libor

27
In my case, the elements are relatively simple, so I can't see any problems in duplication. Anyway, if duplication is possible through user interface, why it is not possible in scripting?

28
Same as the original.

29
Looks to be pretty hard work  :(

30
Any idea how duplicate element from script? I need to do in script the same as do the browser functions "Copy element to clipboard" and "Paste element from clipboard".

Pages: 1 [2] 3 4