cancel
Showing results for 
Search instead for 
Did you mean: 

How to Restore UIcomponent in Cloud Application Studio?

lessip
Participant

Hi experts,

I deleted an embedded component (EC) from the Project Explorer in Cloud Application Studio by mistake, but I saved the XML code.

Now, my question is, how is it possible to restore the EC, using the saved XML code, to avoid the time consuming process of redoing all configurations/ developments manually. If I paste the XML into the EC-file within the solution copy on my hard drive this file seems to be not considered. Opening the EC in the UIDesigner shows the previous empty EC.

My idea was to paste the XML into the EC-file on the local hard drive and activate this file - but for some reason this file is not opened when clicking in the CAS. I assume either the online version from the cloud is directly opened or there must be an other hidden repository, which is used instead.?

Please tell me how to restore the EC - it would save much time, if it is possible to recreate the EC without doing all steps manually once again.

Best regards,
Patrric

Accepted Solutions (1)

Accepted Solutions (1)

kushal_gupta2
Participant
0 Kudos

Hi Patrric,

There is no option from a Partner side to restore a deleted UI Component. You can create a ticket on AP-RC-BDS-UI with all the details of solution, system and the EC name. We will check in backend if it can be restored or not. Also attach the xml if you can.

If this can not be done then the last option is to recreate another EC and do the same modeling as stored in the xml which you have.

Regards,

Kushal Gupta

lessip
Participant
0 Kudos

Hello Kushal Gupta,

I created an incident at SAP and provided all information, including the xml-code of the uicomponent.

Unfortunately I had to manually recreate everything though, which is time consuming and annoying, especially considering the fact, that I could save the xml representation of the uicomponent. With a proper versioning system it would be even possible to restore the deleted file itself...

Another disadvantage is, that it is not possible to manually fill in the code into the file in the locally (on the hard disc) stored solution and to activate this file, instead of the one from the online repository. This local one is simply not considered by Cloud Application Studio.

To make a long story short: Once you need a deleted file again, you have to manually recreate it from scratch 😞

Best regards,
Patric

Answers (2)

Answers (2)

former_member234906
Participant
0 Kudos

Hi ,

I second this question. Is there a way to restore ECs from their XML files? In my case I didn't accidentally deleted them, it was the Cloud studio that crashed and while trying to recover from the onslaught of errors, by doing Refresh/Clean solution, it managed to delete the ECs.

I have raised a ticket and provided all the information, including the files. Is there anything I can do from my end? I have tried putting these files in the folder structure that the Studio creates but these made no change.

Thank you very much.

Kind regards,

Tiago

kushal_gupta2
Participant
0 Kudos

Hi Tiago,

As stated earlier Partner can not restore it by their own.

But, SAP colleagues can check if that component was saved in repository or not hard deleted. If that is the case, they can reactivate the UI Component or they can share the component XML with you and you can use it by changing the component name and ID and it should work.

This is only possible if XML is retained in repository and hard cleanup is not done. Now if you have such case, seek help of SAP cloud support and you can give this reference for faster solution.

Kindly accept the solution if it fulfills your query.

Regards,

Kushal

lessip
Participant
0 Kudos

Hi Tiago,

@SAP unfortunately there is still no proper source code versioning included into Cloud Application Studio (CAS). To me this is a major issue. It cannot be that complicate, as all files are saved as sort of txt or xml, which is easy to manage for current source code versioning tools.

In the UI Designer you have at least the possibility to switch between formerly saved versions.
But I did not check yet, if this is also possible after CAS crash...

Best regards,
Patric

anant_acharya
Advisor
Advisor
0 Kudos

Dear Patric,

Once its deleted, i am not sure you can restore it from XML. However, I am cross checking with our UI experts and checking if any feasible solution still exist.

Regard

Anant.