cancel
Showing results for 
Search instead for 
Did you mean: 

Properties of custom component not updating?

Former Member
0 Kudos

I created an addon using the instructions in the tutorial, the random image display. That (eventually) worked fine.

I then tried adding my own properties, ant clean all, installed the addon, "updated" in the admin UI. I see my new properties, but the old ones are there too. Any ideas? I have removed the old properties from the "items" XML.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Makes sense. Thanks for all the info. This is just a dev system so reinitialization is fine.

Former Member
0 Kudos

HI Holly,

i know if your application is running on production then you can't initialize, other way you can remove your unused column, connect your database wih SQL developer and drop the column what column want want, i hope this will be user full for your requirement.

Former Member
0 Kudos

Thanks! What is meant by "reinitialize Hybris"? I assume this means "update" in the Admin console. There are several options on that screen too --

Update running system Clear the hMC configuration from the database Create essential data Localize types

Do these all need to be checked? That takes a long time to run. I tried it with the first and last options checked already but the old properties didn't go away.
raghavendra_desu
Contributor
0 Kudos

No, i asked to initialize the system, update system will not remove the columns from the table, which got removed from items.xml. Only way to get clear table with only the attributes from items.xml is to initialize the system.

former_member387866
Active Contributor
0 Kudos

Hi Holly,

What Raghavendra means, is to wipe the system and stgain.

http://localhost:9001/platform/init

Before reinitializing the system, ensure that all you products, cronjobs, catalogs, classifications, orders, customers and everything else that you've put into the system are backed up, by exporting them.

Pay heed to what Jeetendra is saying about not reinitializing a production system, as it will take the website offline for the customers.

Regards,
Luke

raghavendra_desu
Contributor
0 Kudos

Hi Holly,

Update system in hybris will adds columns to the new attributes added in the itemtype, but it will not remove the old removed attributes which got removed from items.xml file. If you want to remove the removed attributes or to clean the system you need to reinitilize hybris, then only it will remove old attributes from database. Please initialize your system and recheck. The attributes will not be available any more.