cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to update HCP application from WebIDE

BenedictV
Active Contributor
0 Kudos

Hi,

I am trying to redeploy an application(Template-BUILD) from my webIDE to the HCP and I am not seeing the changes getting updated in HCP.

A little background,

I imported a BUILD project into WebIDE and deployed it to HCP without any problem. I wanted to remove a column from a table in my app. I made the necessary changes to the view.xml in WebIDE. Deleted the existing app in HCP and deployed the changed app from WebIDE. But I still see the original application when I click on the link in HCP.

I tried everything from deleting the app from HCP and WebIDE and starting from scratch with no change in result. Tried this a few times over and over sometimes renaming the application etc. I wonder if the HCP has a cache which is not getting updated.

When I run the application in WebIDE as ' run as web application', this is what I see,

But when I click on the application link in HCP link, the original table column is still getting displayed.

I do not understand where it picks the first column from because I do not see it in the code nor in the layout editor.


I have no prior experience with web applications and am trying all this out for the Fiori openSAP course develop challenge


Benedict

Accepted Solutions (1)

Accepted Solutions (1)

michal_keidar
Active Contributor
0 Kudos

If you have a Component-preload.js file in your app, delete it and redeploy

Former Member
0 Kudos

Thank you very much

This worked beautifully

BenedictV
Active Contributor
0 Kudos

Thank you so much Michal. That worked

Can you please tell me what was happening there? It would help me understand the issue.

Benedict

BenedictV
Active Contributor
0 Kudos

Never mind...found this explanation

https://scn.sap.com/thread/3486179

Former Member
0 Kudos

Hi ,

I am struggling with the same issue where in the old application is cached in HCP and not reflecting new changes.i deleted Component-preload.js file in my application and redeployed but still same issue.

Any pointers.

Thank you.

Regards

Radhika

michal_keidar
Active Contributor
0 Kudos

Try to add the hc_reset parameter to the URL when you preview your app from HCP

javierrubio_01
Explorer
0 Kudos

Hi Michal,

I came across your answer as i had a similar issue, so thanks for having answered first some years ago :-). Can i ask please what are the consequences of deleting the Component-preload.js file ? is it not spoiling anything else ?

Regards,

Javier

Answers (4)

Answers (4)

Former Member
0 Kudos

hi Benedict

Did you have any luck fixing this issue?

We are having the exact same issue and are looking around SCN for a solution before we raise our own question

thanks

Ross

michal_keidar
Active Contributor
0 Kudos

If you have a Component-preload.js file in your app, delete it and redeploy

michal_keidar
Active Contributor
0 Kudos

Hi Benedict,

Can you attach your app so we can try and reproduce it?

Regards,
Michal.

BenedictV
Active Contributor
0 Kudos

Hello Michal,

I cannot attach it here, since the discussion thread is not editable. Please let me know if there's a support mail ID that I can use to email the exported application.

michal_keidar
Active Contributor
0 Kudos

Yes you can email it to me

BenedictV
Active Contributor
0 Kudos

I am not able to send a mail attachment. The mail fails. I will see if I can upload it somewhere and share the location with you.

BenedictV
Active Contributor
0 Kudos

Additionally, I exported the application from HCP and checked the code with WebIDE and they both match. I even tried running the app on my phone with the same result. I am baffled about how this first column keeps showing in the application in HCP. Here is a screen shot of dev tolls in chrome when I did a 'inspect element' for the first column,

And here is the code for the view showing the column definition(does not have the first column),

former_member225463
Participant
0 Kudos

Hello Benedict,

You can do a work around by changing any of the column name or binding property (or by adding some extra columns to check the behaviour) and deploy it and. check weather its reflecting in both HCP and WEB IDE.

Regards,

Vikash

BenedictV
Active Contributor
0 Kudos

Hi Vikash,

Thank you for the suggestion. I tried your suggestion but the results are still the same.

I copied the existing application, renamed it, removed a few columns, renamed a few etc but the changes are only reflecting when I run in WebIDE but HCP still displays the original table. But the code import from HCP matches the code in WebIDE.

I don not want to spend too much time on this since maybe it could be a bug.

I will keep this discussion open for sometime to see in case someone else has the same problem which they resolved.

former_member225463
Participant
0 Kudos

Hello Benedict,

You can do one more thing. Just delete the previous versions of your application, which you have deployed and deploy a fresh version.

Regards,

Vikash

BenedictV
Active Contributor
0 Kudos

Tried that too. In fact, one time instead of deploying directly, i exported the app from WebIDE and imported it in HCP manually and activated it. Nothing works.

former_member225463
Participant
0 Kudos

Hello Benedict,

Try to run the application after doing empty cache and Hard Reload from chrome using F12.

Regards,

Vikash

BenedictV
Active Contributor
0 Kudos

Hi Vikash,

I did run it in incognito tab and also I tried emptying cache and cookies from F12 > Resources. Nothing seems to work. Like I mentioned earlier, I even deleted everything and imported the BUILD and redeployed the application again in HCP using different name, but still the first column keeps showing up.

former_member185414
Active Contributor
BenedictV
Active Contributor
0 Kudos

Hi Ankit,

I came across this 'cache buster' in another discussion but I did not know how to use it.

I will add it to my index as mentioned below in the document,

Application Cache Buster: Configuration - UI Development Toolkit for HTML5 (SAPUI5) - SAP Library

But, there is some nore information in the document which I do not understand or know where to put.

Application Cache Buster: Index File - UI Development Toolkit for HTML5 (SAPUI5) - SAP Library

Your help on this is appreciated.

former_member185414
Active Contributor
0 Kudos

Hello Benedict,

What I understood from browsing online resources is that the index files will be automatically generated and corrected picked up once you enable application cache buster mechanism.

I suggest, you enable the mechanism, make some changes and check output.

BR.