Uniface User Forum

 View Only
  • 1.  UnifAce 10 and how to duplicate a model

    Posted 10-08-2020 15:23

    Hi Freaks

    We have to migrate to Uniface 10 as UnifAce 9 is out of support end of this year.
    Okay, we will still develop in UF 9 and upgrade our components to UF 10 only for the purpose to deploy the application 🙂
    But there a few things to modfy so our compnents will run under UF 10
    One of this is that we are using a few tables from DICT to get meta information at runtime .
    Thist will not longer work by default, as the entities are modified

    So I want to duplicate DICT to APP_DICT with the old definitions.
    And curious how I am, I tried to duplicate under UF 10.


    But how to do so?
    Where can I duplicate a whole model, what's under UF 9 an easy task?

    Regrads Ingo



  • 2.  RE: UnifAce 10 and how to duplicate a model

    PARTNER
    Posted 10-09-2020 07:43

    A view?



  • 3.  RE: UnifAce 10 and how to duplicate a model

    Posted 10-12-2020 06:50

    Hi Peter

    A view could be a solution, if we only us DICT for our runtime/deployed environment.
    But for working with DICT (searching, modifying,...) we need the UnifAce-version of DICT
    So the best way is to create a new model DICT_application with the old definition from UF 9
    So I did a copy of the model in UF9  and move (export/import) it into UF 10

    But if I have a close look into UF10, just to check how to do such a task in UF10, I did not find a possiblity to duplicate a model under UF10
    And that's my question: How to duplicate a model in UF10 ?

    Ingo



  • 4.  RE: UnifAce 10 and how to duplicate a model

    PARTNER
    Posted 10-12-2020 08:18

    Hi Ingo,


    In U10 there is, as far as I know, no such thing as a model anymore. The model name is a placeholder in the name of the modelled entity.


    To answer the question. You can duplicate an entity and change the model name.

    You can do this by adding the original to a project. Open the entity in it’s editor (by double clicking for instance in the project editor) and choose ‘Duplicate’ from the ‘Actions’ menu.

    This will open the duplicate entity in a new tab (aka the editor) with a new name Uniface has given it. Change the name by clicking once on the name.

    This works for all objects in Uniface!


    Besides answering the question ‘how to duplicate an object in Uniface’, I wonder if importing the U9 dict in U10 is without  any consequences….


    Regards, Peter


    PS. I replied to the emails I received. But that does not work.... It's a noreply mailaddress.. 😉



  • 5.  RE: UnifAce 10 and how to duplicate a model

    Posted 10-12-2020 08:40

    "To answer the question. You can duplicate an entity and change the model name."

    Replace "an entity" by "all entites of a model" and you got the tasks to do 🙂

    All together now! Sing:
    Where have all the features gone?
    Long time passing
    Where have all the features gone?
    Long time ago
    Where have all the features gone?

    ...




  • 6.  RE: UnifAce 10 and how to duplicate a model

    Posted 04-03-2023 02:56
    Hello everybody,
     
    I would like to put this thread to front again, because I've facing the same issue as Ingo.
     
    I have to duplicate a model in Uniface 10.
     
    So I would like to ask you if it's a good idea to try it with an export of the model definition 
    and doing a "replace all" to the <modelname> with the <duplicatemodelname> in the xml file.
     
    Best regards



    ------------------------------
    Michael Rösch
    Abrechnungszentrum Emmendingen
    ------------------------------



  • 7.  RE: UnifAce 10 and how to duplicate a model

    Posted 04-04-2023 04:09
    Edited by Osman Shariff 04-04-2023 04:11

    That would definitely be my preferred method... At least you can see what you are getting.

    I had a quick look and for the entities it seems quite easy with only 2 searches necessary
        <DAT name="U_RVLAB">MYMODEL</DAT>
        <DAT name="U_VLAB">MYMODEL</DAT>
    ...not including model level source code...
        
    However, many other xml's need to be considered too... components, snipets, maybe even menus etc etc etc

    Nevertheless, it should be quite easy.



    ------------------------------
    Osman Shariff
    ------------------------------



  • 8.  RE: UnifAce 10 and how to duplicate a model

    Posted 04-06-2023 07:03

    Hi Osman,

    thank you very much. It works for my purposes as expected :-)

    Best regards



    ------------------------------
    Michael Rösch
    Abrechnungszentrum Emmendingen
    ------------------------------