Comments (4)
Hi!
I believe it will work, if it doesn't, please add an example (dfm) to this issue :)
from dfm-to-json.
Hi,
Is it great challenge to make such conversion? Widget mapping seems to me possible, if talking about properties only, not sure about events...
Yes, it's quite a challenge. Major factors that come to mind are:
Your delphi codebase, for instance: how much runtime form manipulation happens.
The target platform, you might end up with events that cannot be easily mapped, or even components/widget.
from dfm-to-json.
Hi Jean,
actually, no runtime form manipulation at all.
Components may be different, but in such case maybe it is possible to use component mapping?
Regarding events, we use restricted number of different events ( Pre $ Post events, OnClick, OnStart, OnDisplay, OnClose, OnChange...) As I see, all this events are used in WPF.
Btw. I am using events based on widget name in WPF, that is a bit unusual, but enough flexible, so expecting no problem with this. This means XAML file has no code behind on no direct referencing to c# code. It behaves similar as DFM to Delphi code.
from dfm-to-json.
Hi!
Of to a good start!
Components may be different, but in such case maybe it is possible to use component mapping?
Yes, it is possible :) might be a lot of work still.
For events, and other info that is not loaded directly from the DFM (combo box data for instance, that can be loaded directly from the database), you can use this tool to explore your DFM and query for such instances! The original use of this library for me was actually to query our codebase forms, you can use the tool jq
(https://stedolan.github.io/jq/) and/or any database that supports json data.
If you know your way around Haskell, you might want to use it to write the converter. It's probably easier than exporting to json, and processing it on other languages.
from dfm-to-json.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dfm-to-json.