Project migration from 4D/Qodly to Qodly.com (Saas)

What do you think would be the best way to migrate a project started with 4D/Qodly to Qodly.com?

  • data model : recreate manually? or is there another solution?
  • translate 4D code into Qodly script : this can probably be done in a 4D method.
  • transfer translated code to classes and data classes : copy/paste manually ? or is there another solution?
  • qodly pages : copy contents of “WebFolder” ?
  • asset, shared css, shared datasources, custom-component… : copy content of “Shared” folder ?
  • any other steps ?

i have not done this since around beta 2 or so. i’m sure things have changed, since then.
you can do some things via the sftp transfer method.

  • i have had mixed results with the data model. while 4d lets you abuse the catalog file, qodly can be less forgiving.
  • translation is not as easy as you might hope. yep, it’s doable, but the language is enough different that there is a lot of hand work to do

Hi @laviregen

4D structure and Qodly model are different, even though they share a lot.
If I were you, I would go for the manual way, you’ll save time.
You probably noticed that relations are not handled the same way.
Plus Qodly allows you to declare aliases directly in the model editor, without coding them.

If you still want to pursue the hard way:

But in the end, I think you may loose more time adapting 4D json file than redoing it manually.

Some changes are easy to spot and manage with a 4D method. It can speed up your work. But some others will be harder. You will anyway need to properly test your code back.

You can copy paste manually for sure. You can also generate .4qs files (instead of .4dm) and upload them through SFTP: Application Management | Qodly Developer Center

You can use SFTP for this.
You can also just copy/paste Qodly Pages json content directly through Qodly Studio: Page Editor | Qodly Developer Center

Be careful:
Shared datasources, shared CSS won’t be copied (these are separated files).
So you Pages won’t work directly unless you migrate them as well.

Also give a tour to your Qodly pages events and refresh them to ensure they are properly bound.

A lot can be done with SFTP:

  • shared css and datasources have their file in the Shared folder,
  • saved conditions as well if you use States in your pages
  • custom components as well
    So the best is to copy the whole Shared folder.

Identity/user management should probably be reviewed.
Pay attention to roles and privileges as well.

And you also probably have data to migrate.
Qodly model editor proposes a csv import: Import Data | Qodly Developer Center

But you can also do it your way.

And I guess that’s it.

Good luck!

Mathieu

Thank’s for your response