How to update the composite genie instances with new template

Hi community !

Is it possible to change the composite genie template and automatically update the instances to the new template keeping entered paramets ?

I would like to modify Meter genie to dynamically show/hide alarm limits based on instance configuration tag. I suppose the correct way will be to create a copie of sa_meter\alarm_limits_xxx_x genies, add required functionality and then modify meter composite genie (with new GUID) to include customized alarm_limits genies.

Finally i will have to update all my standard meter instances with new composite genie. Is there a way do do this automatically?

BR
pf

Parents
  • Hi Petr,

    A very good set of questions.

    1. If you plan to modify the composite genies, then yes you should definitely create a copy of them and change their unique ID (Guid) at the top of the file (as per guidance in help). That is absolutely critical otherwise you will forever have a conflict with our libraries.
    2. If you do take a copy please, realise it will now be your responsibility to merge template changes that we may do as part of Updates.
    3. Yes, if you make modifications to templates it will keep your values. We put work into supporting this scenario and the Comp Genie Presentation Options form will guide you on what needs to be fixed. This is why that little checkbox at the bottom of the form exists - "Show only parameters with invalid input".
    Obviously you will have work to do if your changes are too damaging. e.g. change a parameter from a string to a number type for example.
    4. Now can you migrate from one template to another? Hmm. I will have to get back to you on this. My gut feel is yes, as the key information is held in your composite cache (which is really your CG instance data) folder in your active project. You can see each instance xml lists which template it is using.
    I will need to check with the dev team whether it is safe, and/or there other things in place to prevent you from doing this.
    If we are able to do this, then a simple Update Pages should be all you need.

    Cheers,
    bradley
Reply
  • Hi Petr,

    A very good set of questions.

    1. If you plan to modify the composite genies, then yes you should definitely create a copy of them and change their unique ID (Guid) at the top of the file (as per guidance in help). That is absolutely critical otherwise you will forever have a conflict with our libraries.
    2. If you do take a copy please, realise it will now be your responsibility to merge template changes that we may do as part of Updates.
    3. Yes, if you make modifications to templates it will keep your values. We put work into supporting this scenario and the Comp Genie Presentation Options form will guide you on what needs to be fixed. This is why that little checkbox at the bottom of the form exists - "Show only parameters with invalid input".
    Obviously you will have work to do if your changes are too damaging. e.g. change a parameter from a string to a number type for example.
    4. Now can you migrate from one template to another? Hmm. I will have to get back to you on this. My gut feel is yes, as the key information is held in your composite cache (which is really your CG instance data) folder in your active project. You can see each instance xml lists which template it is using.
    I will need to check with the dev team whether it is safe, and/or there other things in place to prevent you from doing this.
    If we are able to do this, then a simple Update Pages should be all you need.

    Cheers,
    bradley
Children
No Data