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 - Christer Lindh

Pages: [1]
1
I've created an MDG with a code module. When importing it in my model my language appears in the section Source Code Engineering in the private Preferences dialog with the "Options for the current user" containing "Default Attribute Type". But I can't change it! It becomes grayed out when I select it and I can't enter or select any value. According to "Eve" in the topic https://sparxsystems.com/forums/smf/index.php/topic,43998.msg259685.html#msg259685 it should be possible, if I understand it correctly...

Even better would be if I could have the Default Attribute Type as a code option in the MDG, but it doesn't seem to be among the possible options according to this: https://sparxsystems.com/enterprise_architect_user_guide/15.2/modeling/define_code_options.html.

All I want to do is to define my own datatypes and set one of them as default. The first part is easy, but I don't manage to set the default (which continues to be "int"). Any suggestions?

2
Thanks, I'll try calling VBScript from JScript at work on Monday.

Can just confirm that Session.Input works perfectly in EA 11 when I try it at home. And there is documentation in the help too.    :)

Thanks for your help
Christer

3
I'm running EA 10. So that is possibly the problem then...

My problem is that I'm at a big company and can't decide which version to run... Is there a workaround?

(I do have EA 11 at home, though, so I will try if it works when I get home. :)   ).

4
When trying to use prompt("Some message") as explained in your linked example, I get an error:

An object is expected
(My translation from Swedish)

I suppose I need an object to call the prompt method on... But I don't have a Window object as in the example, as I'm not in a browser...    :(

5
I'm trying to do some automation in Enterprise Architect using JScript. This is quite new to me, so it's probably a trivial question:

How do I ask for user input? I want to ask the user to enter a string that I can use in the script.

I have searched the EA help and examples and found Session.Input and Session.Prompt. I haven't found any documentation, though. When trying Session.Input nothing seems to happen, and Session.Prompt is only used in the examples with the second argument set to promptOK - I can't find any documentation of what other choices there are...

Pages: [1]