Book a Demo

Author Topic: Importing Access-forms to EA User Inferfaces?  (Read 4641 times)

wolfgang.uhr

  • EA User
  • **
  • Posts: 38
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Importing Access-forms to EA User Inferfaces?
« on: June 08, 2006, 03:07:05 am »
Hello

I want to import some access-forms into the EA. Does anyone know the proper Access-Export and EA-import parameters to do it?

Thanks for any help
Wolfgang

Graham_Moir

  • EA User
  • **
  • Posts: 749
  • Karma: +10/-15
    • View Profile
Re: Importing Access-forms to EA User Inferfaces?
« Reply #1 on: June 08, 2006, 04:32:16 am »
If this is possible, I too would be very interested !

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Importing Access-forms to EA User Inferfaces?
« Reply #2 on: June 08, 2006, 06:15:24 am »
I don't remember seeing this particular case in the forum. [That does not imply it is not here, just that I either failed to notice it or forgot.]

However, I believe that import of Windows UI elements has been discussed, at least in some paradigms. The answer - once again as far as I can remember - was that EA is not primarily a UI development tool, and does not have this functionality.

All that said, Access forms are fairly regular, at least in some versions. You should be able to create an add-in that would do a good job of this. Coming up with some form of forward engineering would be somewhat more difficult, but also possible.

You'd have to read up on the backgound libraries MS used. These have changed a bit over the years. Documentation on some versions is very difficult to find, but its out there.

Not what you wanted to hear, but at least this may point you in a useful direction.
No, you can't have it!

wolfgang.uhr

  • EA User
  • **
  • Posts: 38
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Importing Access-forms to EA User Inferfaces?
« Reply #3 on: June 08, 2006, 07:29:05 am »
Hello

Thanks for that information. In the first time it should be a better idea, to convert thoose data manually. This are only three dialogs.

But there are furthermore some problems

a) The UI-controls placed onto a form are moveable in the complete diagram area and not only in the screen area.

b) The tab-control does not work like a tab-control in c#, java or VB. It is only a rectangle.

The idea is to use EA as a gui-store. The date should be used to generate either a c#-dialog-class or a java-dialog-class just like the decision for developement language in future forces to use.

But I do not see any MDL-Export for user interface isn't it?

So the problem ist: Not only the import/export has some problems, the infrastructure in EA does not exist.

Do you know any other tool to store GUI-Data language independed?

Thanks for any help
Wolfgang

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Importing Access-forms to EA User Inferfaces?
« Reply #4 on: June 08, 2006, 08:51:14 am »
Wolfgang,

Last question first: I don't think there is much out there. It seems that most tool developers who might be interested in this area are oriented towards Windows (and often specifically MS tools), anything but MS (and often Java specific in that camp), or Mac. I'm sure there's others, but I haven't run into anything like what you want from them.

As to the rest, I wonder if you could somehow make use of an XMI export from EA. This could be produced from an automation tool. [Remember that EA only reads and writes XMI data (versus the XML project interface) via files, not memory streams or strings.] I suspect, without proof that the export contains all the information EA holds, so might give you enough to perform whatever downstream manipulation you need.

You'll have to come up with your own representation of tab controls and the like. Perhaps you can use Shape Scripts, but you might have to wait for the documentation to be updated - I know Sparx is actively working on that. The hitch is that I do not know whether EA will allow scripts for UI elements.

This is not so bad, since you will would have to deal with this problem at some point. If you are working on a general tool you are certain to encounter UI elements beyond those EA handles, and a general way of handling them should be one of your early priorities.

BTW, you should also note that the Tab control in Access (at least up to 2000 inclusive) is different than that used elsewhere in the MS world. There are some other controls that are also different but the Tab control is one of the more profound. You would have to deal with that at some point regardless of visual aspect issues.

Sounds like you have an interesting project. Regardless of the work, there are significant advantages to managing this kind of information in the same tool as the rest of your model. Keep me up to date if you proceed further.

David
No, you can't have it!

wolfgang.uhr

  • EA User
  • **
  • Posts: 38
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Importing Access-forms to EA User Inferfaces?
« Reply #5 on: June 08, 2006, 10:13:01 am »
Hello David

> Sounds like you have an interesting project.

It's my first EA-project and it should be a small demo of possibilities. So I try to put the maximum amount of information to EA before starting a project by a first MDL-conversion step.

And refering to the iconix-process, it seems to be a good idea to complete a program design with some guis.

> As to the rest, I wonder if you could somehow make use of an XMI export from EA.

I've exported the xmi-data of a form. But I'm missing some topological informations. A form contains a group and this group contains a set of radio-buttons. Then you have a tab control with n-tab-areas and each tab-area contains further elements. XMI is only a listing of all elements in a diagram without any structure.

It seems the best to use a screenshoot in Word.

Thank you very much for your hints.
Best Regards
Wolfgang

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Importing Access-forms to EA User Inferfaces?
« Reply #6 on: June 08, 2006, 10:48:52 am »
Wolfgang,

As I understand it EA XMI exports either the diagram information only, or the diagram information with the diagram image. It sounds like the only way to get the positioning is to include the image. That would probably mean rendering the diagram in another instance of EA, which would just leave you back where you started.

You'd probably have to open up the diagram via the automation API and enumerate the diagram objects. From each you could retrieve the size and position. That might be enough.

Note that there is an EnumDiagramElements function in the EA project interface. I don't know if it retrieves position information and there is nothing in the examples. However, my guess is that it does, which should solve your problem nicely. Just parse the XML stream as you would any other. This would be handy because the function is scoped to a diagram.

David
No, you can't have it!

wolfgang.uhr

  • EA User
  • **
  • Posts: 38
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Importing Access-forms to EA User Inferfaces?
« Reply #7 on: June 08, 2006, 11:32:54 am »
Hello David

>  You'd probably have to open up the diagram via the automation API and enumerate the diagram objects. From each you could retrieve the size and position. That might be enough.

Sorry that isn't enough. A tab-control has a topological structure different from a group or a user-control. I've added a little demo for a dialog-topologie (http://applikationssoftware.de/Sonstiges/TopologieDemo.jpg). If EA cannot handle this structure you cannot use it for dialogs.

Best regards
Wolfgang

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Importing Access-forms to EA User Inferfaces?
« Reply #8 on: June 08, 2006, 11:49:19 am »
I take it you mean this difference is in EA's UI diagram. If you are referring to the fact that the background classes in Windows are different, I'm aware of that, as I mentioned earlier.

What am I looking for in the picture? Are you showing me the other elements, but not the Tab control?
No, you can't have it!

wolfgang.uhr

  • EA User
  • **
  • Posts: 38
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Importing Access-forms to EA User Inferfaces?
« Reply #9 on: June 08, 2006, 12:25:17 pm »
Quote
What am I looking for in the picture? Are you showing me the other elements, but not the Tab control?


Yes, I think that you know a tab-control and its topologie. Furthermore it is imposible to show in in one picture. A dialog - independently of its basic programming language - should handle this structures. That ist the most important functionality of the gui-diagram.