cancel
Showing results for 
Search instead for 
Did you mean: 

Copying a Calculation View

Former Member
0 Kudos

We have a package consisting of Attribute Views, and Calculation Views that consume those Attribute Views.

>Content

    > Dept1

        > ProjectA

            > Attribute Views

                > A_AT

                > B_AT

                > C_AT

            > Calculation Views

                > AB_CV

                > BC_CV

                > CA_CV

I now want to 'clone' this entire package to a new location , e.g:

>Content

     > Dept2

          > Project A

Now I am ok with copying the Attribute views, that's straight forward enough.

But how the heck could I copy the Calculation views ?
If I just use right-click copy/paste to the new package... they still  point to the original project for the Attribute View sources.

So how to 're' point ?

Frustrated, I did begin manually recreating the Cvs in the new location, but there are hundreds of fields that need renaming, and I can't even copy/paste the field names from the original views.

Any advice/pointers much appreciated.

Many Thanks

Accepted Solutions (1)

Accepted Solutions (1)

vivekbhoj
Active Contributor
0 Kudos

Hi Simon,

You can export the package in HANA Developer Mode and then all views will be available in xml file format.

Then you can change folder name(current package name) and import them and they will be imported in new package

Regards,

Vivek

Former Member
0 Kudos

Thanks Vivek.

Given your description, I Googled 'HANA Developer Mode' and found the following article which explains some more options too.

Hana does it's usual good job at confusing you, like asking you to select a 'destination' when in fact you are selecting a 'source' to import 'from'.

For the manual repointing, I'll make some notes in case anyone else finds them useful.

When you export the XML, it exports the whole structure as folder/files:
> system

     > folder

          > folder

               > package

                    > calculationviews

You have to rename the folders & package to reflect the destination you are importing to.

Under package folder, there is a file called <packagename>.properties
I'm not sure if the contents have to be renamed, but I did open it and edit to reflect new destination.

Inside the calculationviews folder, you will find the xml file <viewname>.calculationview

Open this up, replace any originalpath names with your new path names.

** BEWARE : case sensitive

Save and Import (see article above)

Former Member
0 Kudos

Hello Simon

Can you add some screen shots please to your answer.

i'm not able to do the export import as you describe it.

Thank you.

Soufiane

Answers (0)