How to reset a @property/ @AttributeDefinition value | Community
Skip to main content
Basheer_Pinjari
Level 2
May 7, 2018
Solved

How to reset a @property/ @AttributeDefinition value

  • May 7, 2018
  • 2 replies
  • 860 views

Hello

Am trying to figure out how can we reset the @property (scr version) or @AttributeDefinition (osgi version) values?

For e.g. I have a simple component with a property greetingMessage and deployed the component to AEM and updated the value in /System/console/components using configuration manager (http://localhost:38600/system/console/configMgr/org.aem.samples.aem_samples.core.servlets.SimpleComponent)​ and now I would like to reset the value to whatever is in my java component value.

Thanks

Basheer

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by joerghoh

If you have not created a configuration for a service yet,  but started to modify its default configs via webconsole, deleting the configuration via webconsole helps. If you create a config within the repo and then delete the configuration via webconsole, this repo-based configuration will be gone.

Jörg

2 replies

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
May 7, 2018

If you have not created a configuration for a service yet,  but started to modify its default configs via webconsole, deleting the configuration via webconsole helps. If you create a config within the repo and then delete the configuration via webconsole, this repo-based configuration will be gone.

Jörg

Basheer_Pinjari
Level 2
May 11, 2018

Thanks! Worked for me (though I was not able to delete the configuration from web console but unbind and installing my code again reset the values to java code version.