MetaCase Homepage
Forum Home Forum Home > > MetaEdit+
  New Posts New Posts RSS Feed - Set properties |Edit "Edit Dialog"
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Set properties |Edit "Edit Dialog"

 Post Reply Post Reply
Author
Message
Andy View Drop Down
Member
Member
Avatar

Joined: 12.Mar.2009
Location: Austria
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Andy Quote  Post ReplyReply Direct Link To This Post 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
 
Back to Top
stevek View Drop Down
MetaCase
MetaCase
Avatar

Joined: 11.Mar.2008
Points: 643
Post Options Post Options   Thanks (0) Thanks(0)   Quote stevek Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Andy View Drop Down
Member
Member
Avatar

Joined: 12.Mar.2009
Location: Austria
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Andy Quote  Post ReplyReply Direct Link To This Post Posted: 16.Mar.2009 at 17:16
Hi Steve

Thanks for the  answer!
I'll try the API-functionality.

   Andy
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.05
Copyright ©2001-2022 Web Wiz Ltd.

This page was generated in 0.039 seconds.