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
Yes, I understand, but it would be nonsense to have a menu, with the only option About, for the add-in. For me it's definitely most natural to display the add-in version in the Manage add-ins window.

I'm not sure, what you mean with Context. Is it context menu? If it is, I can't imagine, where the About option would appear. Our add-in is a window for editing properties of tables. It replaces standard EA window, so it has no special option in the context menu, because it responds to standard Properties option or simply double-click.

And where does the menu appear?

We plan to relocate some tags. It looks, according to my tests, that it's enough to sync stereotypes and everything will be ok. Is there any other impact I should know bout?

It's bad :-( I'm looking for some place where to display add-in version.

Yeah, notes field of MDG, visible in the MDG Technologies window. I know it, but it's not what I'm asking about. I'm interesting in description of description of add-in (not MDG).

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?

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

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

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.

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?

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

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!

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

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"
               Session.Output "1: " & col.Name & " " &  col.Type
               '1: TABLE_NAME char
            Case Else   
            End Select
         End If      
      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
End Sub

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

Pages: [1] 2 3 4