|
| WinDev to WebDev migration |
| Iniciado por guest, 02,nov. 2015 05:00 - 9 respuestas |
| |
| | | |
|
| |
| Publicado el 02,noviembre 2015 - 05:00 |
I have finally started a long anticipated project - making a WebDev version of a fairly large, complex WinDev project.
So far, so good. It appears to have passed the 'proof of concept' stage, and I can replicate complex workflow and processing in WebDev.
I am just wondering if anyone else has already been down this path, and can offer any advice or caveats. So far - I have basically followed the same structure as the WinDev application, using PageDisplayDialog() which practically mimics the WinDev application.
So far, it just seems "a bit too easy", and I am a little concerned that I might hit a few brick walls after I commit to the project. Is it really this easy - or am I missing some unknown unknowns.
TIA for any advice ... |
| |
| |
| | | |
|
| | |
| |
| Publicado el 02,noviembre 2015 - 09:05 |
Hi Derek,
I have converted several Windev programs to Webdev and there are no real caveats. All errors are reported by the compiler, so you just have to work around them. Most of the work is the creation of templates for pages and styles for controls. I always exclude all windows from the current configuration to get rid of all errors and then pick the windows one by one, rename them PAGE_ and then when done include them back in. You'll need to find a workaround for progressbars and splitters (splitters are converted into statics). Since working with Webdev I don't use anchoring anymore, because I find it's much easier to create a well designed fixed page then having to worry about resizing. Also, editing in tables, although possible, is not ideal, so I always use dialogs or popups now. Some tips: * Entry and exit code from an edit control are placed into a local procedure by the conversion, because there's no entry and exit server code for an edit control. To use it you can put this code in an invisible link or button and do an executeprocess trtClick to this link in the edit controls browser code. * Use an animated gif as progress indicator, the Ajax progressbar didn't work in all browsers. (Perhaps now it does, but I haven't tried yet) * Create your own directory for temporary files (uploads, pdfs for printing). It's easier to keep your server clean that way.
If you run into something, just ask, I'm sure I forgot a lot of stuff.
Regards, Piet |
| |
| |
| | | |
|
| | |
| |
| Publicado el 02,noviembre 2015 - 10:21 |
Thanks Piet
That's good news and it gives me more confidence that my project s viable.
So far, it all looks pretty amazing - taking a C/S application and (basically) just running it as SaaS.
Regards, Derek |
| |
| |
| | | |
|
| | |
| |
| Publicado el 02,noviembre 2015 - 10:57 |
Hi Derek,
don't happy too fast. watch out for those functions that exist in WD and not exist in WB or the function exist in both but the parameter not support in WB .  |
| |
| |
| | | |
|
| | |
| |
| Publicado el 02,noviembre 2015 - 11:57 |
Hi CCC2
Yes, but that's alright. I usually walk-around brick walls rather than try to smash them down. If some function doesn't work then I'll do something else. But all-in-all - it does look like 'most' of the code base and logic will work without changes. I don't really have to 'redesign' much other than some of the GUI.
This is a 'big deal' - being able to move code from PC to iPad/Android, and Web Applications. It's actually what Windev is all about.
But anyway, I do not dismiss your caution. Thanks.
Regards, Derek |
| |
| |
| | | |
|
| | |
| |
| Publicado el 10,noviembre 2015 - 05:25 |
I am encountering a number of issues that I think are 'resource' issues - i.e I have hit the limits of the capabilities of the WebDev 19 editors.
I have a fairly complex data-entry form - ie a header part - several pages called from here - and a multi-part TAB form (8 tabs) - to edit various associated records.
I finally got this almost completed when the editor started 'playing up' - and will not load this page anymore. It has also been extremely difficult to try to create a new project and "import" work done to date. (Regenerate and repair has obviously also been tried..
When tying to start the project (WebDev 19 64 bit) - I get a message like:
Problem loading -.wwh page: Problem reading edit part. Error building edit part.
To me it seems like the page is too complex. I am trying to avoid ending up with several hundred pages, and would like to have the 'core' data entry programs fairly close to the WinDev counterparts.
So my general call for any assistance or input is (a) has anyone encountered this error (google doesn't turn up anything in English or French) and (b) can anyone offer any advice on the practical limits of WebDev.
So far, my "migration" efforts have been "reasonably" successful - so I am quite prepared to work around whatever limits there are in WebDev. My problem at the moment is that I don't yet know it's capabilities and would like to avoid needlessly chopping the application into too many small bits.
ANY input or assistance GREATLY appreciated 
TIA Derek |
| |
| |
| | | |
|
| | |
| |
| Publicado el 10,noviembre 2015 - 09:34 |
Hi Derek,
I have never run into limit issues with WB19, but sometimes converted pages suddenly turn problematic for no apparent reason. In that case use a backup to go back to the state where the page still loaded.
You did not explain very well what is complex about the page you describe. You say it is calling several several pages, but what is complex about that? Are they internal pages? What technique do you use to load several pages in one page?
I use tabs all the time, each tab holding "slave" tables without any problems.
Regards, Piet |
| |
| |
| | | |
|
| | |
| |
| Publicado el 10,noviembre 2015 - 10:34 |
Hi Derek,
what you are trying to achieve is IN GENERAL a bad idea, as the web behavior is very different than a windows application behavior and you will run in a series of problems at some point.
Now, in some specific case, one HAS TO do it that way. The last time for me was a customer who wanted his access application to be ported EXACTLY on the web and I ran into problems of page size too. However, it was in WebDev 11 at the time, and the problems manifested not in the editor but in the page generation, clearly because of a position counter on a short int.
One of the main solutions I used at the time was iFrame controls opening secondary pages of the site. This allowed me to dump secondary processes in secondary pages and load them only when needed. Of course, some dancing around data transmission between pages became necessary, but that's manageable.
So -IF- your problem is a page size one, that would be one way to go.
And yes, the webdev 11 site has been moved to all versions, one after the other, and is still running today.
Best regards |
| |
| |
| | | |
|
| | |
| |
| Publicado el 10,noviembre 2015 - 10:58 |
Hi Piet
Thanks once more for the feedback.
Well, no, not complex for a WinDev program. In the header part, there are buttons for lookup pages (PageDisplayDialog). When a record is selected, procedure code is used to populate data in all the tab pages. Some tab pages are master/detail records and most also have several data-linked combo boxes or similar.
I am happy that the only issue may be converted or copied-in code, and your answer is what I was looking for. As long as it's all do-able then I can happily work through the issues. I have already been caught by a few 'traps for young players' with WebDev, when seemingly major obstacles were eventually solved very easily (one was that I had a mandatory field in one of the tab pages - and the button code on the header page would not fire At first I thought maybe there is a 'nesting' limit for Dialog pages)
Your feedback is really helpful as most WebDev example programs are fairly small, and other than your feedback, there isn't much more than a leap of faith that this is all do-able in WebDev. The WinDev application that I am converting has some 400 Windows (many with multiple planes and tab pages) and 4-500 tables, hundreds of thousand lines of code etc etc - so no doubt I will have some WebDev expertise by the time I am finished 
Regards Derek |
| |
| |
| | | |
|
| | |
| |
| Publicado el 10,noviembre 2015 - 11:41 |
Hi Fabrice
Thanks. For sure - if I do run into size limits then I will simplify. There are only a few data entry modules in this category, and if it looks too difficult then I'll break it into smaller bits. Actually, that might also be an opportunity to improve the user interface, because some of these "8 tabs" are seldom used, and it might be better to get rid of them and provide other pages to fill them only if required.
Regards, Derek |
| |
| |
| | | |
|
| | | | |
| | |
|