Print Page | Close Window

Set properties |Edit "Edit Dialog"

Printed From: MetaCase
Category:
Forum Name: MetaEdit+
Forum Description: All topics relating to MetaEdit+ or DSM
URL: https://www.metacase.com/forums/forum_posts.asp?TID=87
Printed Date: 27.Mar.2026 at 02:18
Software Version: Web Wiz Forums 12.05 - http://www.webwizforums.com


Topic: Set properties |Edit "Edit Dialog"
Posted By: Andy
Subject: Set properties |Edit "Edit Dialog"
Date 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
 



Replies:
Posted By: stevek
Date 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.


Posted By: Andy
Date Posted: 16.Mar.2009 at 17:16
Hi Steve

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

   Andy



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.05 - http://www.webwizforums.com
Copyright ©2001-2022 Web Wiz Ltd. - https://www.webwiz.net