![]() |
Set properties |Edit "Edit Dialog" |
Post Reply
|
| Author | |
Andy
Member
Joined: 12.Mar.2009 Location: Austria Points: 3 |
Post Options
Thanks(0)
Quote Reply
Topic: Set properties |Edit "Edit Dialog"Posted: 15.Mar.2009 at 16:01 |
|
Hi @ all
I've three questions: Is it possible to set properties like "Name" with MERL? I found a post in the forum, which shows the possibility with the API, but not with MERL. The second question is: May I change or edit the "Edit Dialog"? For Example add more Buttons or disable some input-fields, depending on properties. My concrete example: I would like to write automatic values to properties, if the users wants (Dialog with the choice "Man / Auto" so enabling some input-fields in the dialog should be done ). If you start the generator, this values should be written in the object properties. The last question: What would you recommend? API or MERL? Are there all functions in both methods available? Currently I'm working with MERL, but now I got some problems.. Thanks in advance Andy |
|
![]() |
|
stevek
MetaCase
Joined: 11.Mar.2008 Points: 643 |
Post Options
Thanks(0)
Quote Reply
Posted: 16.Mar.2009 at 15:48 |
|
Hi Andy,
You can do what you want with the API. MERL is for turning models into text, so read-only; the API is for manipulating models, so includes create, read, write and update operations. You can of course combine the two: MERL can call a program you have written that uses the API, or you can use the API to call MERL generators.
For the dialog, my recommendation would be to collect all the input fields that you want to enable for manual values into their own object type. You can then have in your main object a property that is initially empty but can contain an object of that type. When writing a code generator or generators for the object symbol you can check if the object is there, and if so use its manual values; otherwise, your generator would produce the automatic values.
|
|
![]() |
|
Andy
Member
Joined: 12.Mar.2009 Location: Austria Points: 3 |
Post Options
Thanks(0)
Quote Reply
Posted: 16.Mar.2009 at 17:16 |
|
Hi Steve
Thanks for the answer! I'll try the API-functionality. Andy |
|
![]() |
|
Post Reply
|
|
| Tweet |
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |