Wednesday, June 3, 2015

How to export/import your MorphX VCS settings and history

When using MorphX for version control, sometimes you need to restore a backup of a database, and you don't want to lose all of your check in/out history.  I wrote this job to export and import your MorphX VCS settings.

Use at your own risk, but it's worked fine for me.


static void AKBackupMorphXVCData(Args _args)
    SysDataExport           sysDataExport;
    SysDataImport           sysDataImport;
    Dialog                  dialog = new Dialog();
    FormBuildRadioControl   fbImportExport;
    FormRadioControl        radioResults;
    dialog.addText("Warning, if you choose Import, this will replace your VCS data and is not reversible!");
    // Add the radio button, name it anything
    fbImportExport = dialog.formBuildDesign().addControl(FormControlType::RadioButton, 'RadioButton1');
    fbImportExport.caption("Choose Import/Export");



    if (dialog.closedOk())
        radioResults = dialog.formRun().control(;
        if (radioResults.selection() == 0) // Export
                sysDataExport = new SysDataExport();
                sysDataExport.addTmpExpImpTable(tableNum(SysVersionControlMorphXItemTable), false);
                sysDataExport.addTmpExpImpTable(tableNum(SysVersionControlMorphXLockTable), false);
                sysDataExport.addTmpExpImpTable(tableNum(SysVersionControlMorphXRevisionTable), false);
                sysDataExport.addTmpExpImpTable(tableNum(SysVersionControlParameters), false);
                sysDataExport.addTmpExpImpTable(tableNum(SysVersionControlSynchronizeLog), false);

                if (sysDataExport.prompt())
        else if (radioResults.selection() == 1) // Import
            sysDataImport = new SysDataImport();

            if (sysDataImport.prompt())



  1. Hi Alex

    I documented another way to do this on my blog post at I didn't include the version control parameters table in my solution although there's no reason why you couldn't.


    1. Ah, different way of accomplishing it. I'd have thought you'd have had issues with RecId's, but it sounds like you didn't.

      I just quickly wrote the job because I was about to refresh a database and didn't want to lose it without much google searching.

  2. A lot of students consider Morphx quite difficult as the settings are not easy to understand but essay writing services has made it quite easy and for the professionals as well as thee students who are new in this field and want to grow.

  3. This article was written by a real thinking writer without a doubt. I agree many of the with the solid points made by the writer. I’ll be back day in and day for further new updates. Shipping Container

  4. DumpsCafe is a Premium Supplier of Real Exam Questions and Certification Exam Dumps. is the ultimate choice for IT students to pass their final exams in a quick time.

  5. I might endorse composing a initial DCCR (DECLARATION OF COVENANTS, CONDITIONS AND RESTRICTIONS). You can try this earlier than you even keep for a deliver. Write your model of the way you envision the shared possession of a cruise deliver because it have to be.Shipping from china

  6. Good evening guys! We have been in writing business for an extended period where we have understood the challenges students go through in their education life. Writers from have developed the right skills to customize each student’s need and deliver the service that suits them. When it comes to quality, we are among the leading establishments that deliver premier papers.

  7. Use the information out there on casino blogs and casino sites to your advantage. Browse through forums, spend some time on Reddit, and 원 엑스 벳 skim what Las Vegas and Atlantic City gamers say about every sport. Space Wars is a fast-paced video slot with 5 reels, four rows, and forty paylines. Instead of focusing on the generic tips and tips you find on all casino guides on the web, it focuses on proven methods to enhance your odds when you choose the video games to play. Thirdly, the final knowledge is that you simply wish to make the maximum guess if you play. Many slots solely provide their largest prizes to people who guess the max.